21 mod = *dividend % divisor;
35 uint32_t high = *dividend >> 32, low = *dividend, umod = 0;
39 umod = high % divisor;
43 asm (
"divl %[divisor]"
44 :
"+a" (low),
"=d" (mod)
45 : [divisor]
"rm" (divisor),
"d" (umod));
47 *dividend = (((
uint64_t)high) << 32) | low;
static uint32_t divmod64(uint64_t *dividend, uint32_t divisor)
Common declarations for all tests.