pub struct AddIndicatorDivisorI32 {
divisor: i32,
multiplier: i32,
shift: u32,
}Expand description
A i32 divisor whose magnitude isn’t a power of two, see DivisorI32
It uses the signed multiplier from figure 5.1 of Granlund and Montgomery, “Division by Invariant Integers using Multiplication” (1994).
Fields§
§divisor: i32§multiplier: i32m' in figure 5.1
shift: u32sh_post in figure 5.1
Implementations§
Trait Implementations§
Source§impl Clone for AddIndicatorDivisorI32
impl Clone for AddIndicatorDivisorI32
impl Copy for AddIndicatorDivisorI32
Auto Trait Implementations§
impl Forget for AddIndicatorDivisorI32
impl Freeze for AddIndicatorDivisorI32
impl Move for AddIndicatorDivisorI32
impl RefUnwindSafe for AddIndicatorDivisorI32
impl Send for AddIndicatorDivisorI32
impl Sync for AddIndicatorDivisorI32
impl Unpin for AddIndicatorDivisorI32
impl UnsafeUnpin for AddIndicatorDivisorI32
impl UnwindSafe for AddIndicatorDivisorI32
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