MCPcopy Create free account
hub / github.com/F-Stack/f-stack / xadd

Function xadd

freebsd/kern/kern_rctl.c:466–480  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

464}
465
466static uint64_t
467xadd(uint64_t a, uint64_t b)
468{
469 uint64_t c;
470
471 c = a + b;
472
473 /*
474 * Detect overflow.
475 */
476 if (c < a || c < b)
477 return (UINT64_MAX);
478
479 return (c);
480}
481
482static uint64_t
483xmul(uint64_t a, uint64_t b)

Callers 1

rctl_enforceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected