12 extern size_t ceil_div(
size_t a,
size_t b);
14 uint64_t
udiv64_slow(uint64_t a, uint64_t b, uint64_t *rem_out) {
15 uint64_t quot = 0, rem = 0;
24 size_t bits =
sizeof(uint64_t) * 8;
25 for (
size_t i = 0; i < bits; ++i) {
28 rem |= (a >> (bits - i - 1)) & 1;
40 if (rem_out != NULL) {