Macros§
- Implement assignment operator using OpInline trait.
- Implement infix operator using assignment version.
- Implement infix operator using assignment version. It is assumed
OpAssign<&Type>
is implemented. - Implement infix operator using OpInline trait, preferring _assign versions where possible.
- Implement infix operator using OpInline trait, preferring _assign versions where possible.
Structs§
Traits§
- This is a subset of
num_traits::PrimInt
- Numbers which have upper and lower bounds
- Unary operator for retrieving the multiplicative inverse, or reciprocal, of a value.
- Fused multiply-add. Computes
(self * a) + b
with only one rounding error, yielding a more accurate result than an unfused multiply-add. - The fused multiply-add assignment operation
*self = (*self * a) + b
- Defines a multiplicative identity element for
Self
. - Binary operator for raising a value to a power.
- Defines an additive identity element for
Self
.
Functions§
- Compute a + b + carry, returning the result and the new carry over.
- Compute <hi, lo> / d, returning the quotient and the remainder.
- Compute a + (b * c) + carry, returning the result and the new carry over. Both
a
andcarry
can be the full 64-bit range - Compute a - (b * c + borrow), returning the result and the new borrow.
- Compute a - (b + borrow), returning the result and the new borrow.
- Slow but compile time constant version of
to_montgomery
.