Expand description
Stack-allocated big unsigned integers.
ModulesΒ§
- add π
Uintaddition operations.- add_mod π
Uintmodular addition operations.- array π
hybrid-arrayintegration withUint.- bit_and π
Uintbitwise AND operations.- bit_not π
Uintbitwise NOT operations.- bit_or π
Uintbitwise OR operations.- bit_xor π
Uintbitwise XOR operations.- bits π
- boxed π
- Heap-allocated big unsigned integers.
- cmp π
Uintcomparison operations.- concat π
- ct π
- Constant-time support: impls of
Ct*traits and constant-timeconst fnoperations. - div π
Uintdivision operations.- div_
limb π - Implementation of constant-time division via reciprocal precomputation, as described in βImproved Division by Invariant Integersβ by Niels MΓΆller and Torbjorn Granlund (DOI: 10.1109/TC.2010.143, https://gmplib.org/~tege/division-paper.pdf).
- encoding π
- Const-friendly decoding/encoding operations for
Uint. - from π
From-like conversions forUint.- gcd π
- This module implements Binary (Extended) GCD for
Uint. - invert_
mod π - lcm π
- This module implements Least common multiple (LCM) for
Uint. - macros π
- Macros used to define trait impls on aliases of
Uint. - mod_
symbol π - Support for computing modular symbols.
- mul π
Uintmultiplication operations.- mul_mod π
Uintmodular multiplication operations.- mul_
signed π - neg π
- neg_mod π
Uintmodular negation operations.- pow π
Uintexponentiation operations.- rand π
- Random number generator support
- ref_
type π - Unsigned integer reference type.
- resize π
- Support for converting between
Uintinstances with different sizes. - root π
- Support for nth root calculation for
Uint. - shl π
Uintbitwise left shift operations.- shr π
Uintbitwise right shift operations.- split π
- sqrt π
Uintsquare root operations.- sub π
Uintsubtraction operations.- sub_mod π
Uintmodular subtraction operations.
StructsΒ§
- Uint
- Stack-allocated big unsigned integer.
Type AliasesΒ§
- U64
- 64-bit unsigned big integer.
- U128
- 128-bit unsigned big integer.
- U192
- 192-bit unsigned big integer.
- U256
- 256-bit unsigned big integer.
- U320
- 320-bit unsigned big integer.
- U384
- 384-bit unsigned big integer.
- U448
- 448-bit unsigned big integer.
- U512
- 512-bit unsigned big integer.
- U576
- 576-bit unsigned big integer.
- U640
- 640-bit unsigned big integer.
- U704
- 704-bit unsigned big integer.
- U768
- 768-bit unsigned big integer.
- U832
- 832-bit unsigned big integer.
- U896
- 896-bit unsigned big integer.
- U960
- 960-bit unsigned big integer.
- U1024
- 1024-bit unsigned big integer.
- U1280
- 1280-bit unsigned big integer.
- U1536
- 1536-bit unsigned big integer.
- U1792
- 1792-bit unsigned big integer.
- U2048
- 2048-bit unsigned big integer.
- U3072
- 3072-bit unsigned big integer.
- U3584
- 3584-bit unsigned big integer.
- U4096
- 4096-bit unsigned big integer.
- U4224
- 4224-bit unsigned big integer.
- U4352
- 4352-bit unsigned big integer.
- U6144
- 6144-bit unsigned big integer.
- U8192
- 8192-bit unsigned big integer.
- U16384
- 16384-bit unsigned big integer.
- U32768
- 32768-bit unsigned big integer.