arrow_buffer::bigint::div

Function div_rem_word

Source
fn div_rem_word(hi: u64, lo: u64, divisor: u64) -> (u64, u64)
Expand description

Perform narrowing division of a u128 by a u64 divisor, returning the quotient and remainder

This method may trap or panic if hi >= divisor, i.e. the quotient would not fit into a 64-bit integer