pub struct AddIndicatorDivisorU64 {
divisor: u64,
multiplier: u64,
shift: u32,
}Expand description
A u64 divisor that isn’t a power of two, see DivisorU64
It uses the N + 1-bit multiplier from figure 4.1 of
Granlund and Montgomery, “Division by Invariant Integers using Multiplication” (1994).
Fields§
§divisor: u64§multiplier: u64m' in figure 4.1
shift: u32sh2 in figure 4.1
Implementations§
Trait Implementations§
Source§impl Clone for AddIndicatorDivisorU64
impl Clone for AddIndicatorDivisorU64
impl Copy for AddIndicatorDivisorU64
Auto Trait Implementations§
impl Forget for AddIndicatorDivisorU64
impl Freeze for AddIndicatorDivisorU64
impl Move for AddIndicatorDivisorU64
impl RefUnwindSafe for AddIndicatorDivisorU64
impl Send for AddIndicatorDivisorU64
impl Sync for AddIndicatorDivisorU64
impl Unpin for AddIndicatorDivisorU64
impl UnsafeUnpin for AddIndicatorDivisorU64
impl UnwindSafe for AddIndicatorDivisorU64
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more