Searched refs:div_info (Results 1 – 3 of 3) sorted by relevance
23 void div_init(div_info_t *div_info, size_t divisor);26 div_compute(div_info_t *div_info, size_t n) { in div_compute() argument34 size_t i = ((uint64_t)n * (uint64_t)div_info->magic) >> 32; in div_compute()36 assert(i * div_info->d == n); in div_compute()
30 div_init(div_info_t *div_info, size_t d) { in div_init() argument51 div_info->magic = magic; in div_init()53 div_info->d = d; in div_init()
7 div_info_t div_info; in TEST_BEGIN() local8 div_init(&div_info, divisor); in TEST_BEGIN()16 &div_info, dividend); in TEST_BEGIN()