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

Function xmul

freebsd/kern/kern_rctl.c:482–490  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

480}
481
482static uint64_t
483xmul(uint64_t a, uint64_t b)
484{
485
486 if (b != 0 && a > UINT64_MAX / b)
487 return (UINT64_MAX);
488
489 return (a * b);
490}
491
492/*
493 * Check whether the proc 'p' can allocate 'amount' of 'resource' in addition

Callers 1

rctl_enforceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected