Skip to main content

Module uint

Module uint 

Source
Expand description

Stack-allocated big unsigned integers.

ModulesΒ§

add πŸ”’
Uint addition operations.
add_mod πŸ”’
Uint modular addition operations.
array πŸ”’
hybrid-array integration with Uint.
bit_and πŸ”’
Uint bitwise AND operations.
bit_not πŸ”’
Uint bitwise NOT operations.
bit_or πŸ”’
Uint bitwise OR operations.
bit_xor πŸ”’
Uint bitwise XOR operations.
bits πŸ”’
boxed πŸ”’
Heap-allocated big unsigned integers.
cmp πŸ”’
Uint comparison operations.
concat πŸ”’
ct πŸ”’
Constant-time support: impls of Ct* traits and constant-time const fn operations.
div πŸ”’
Uint division 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 for Uint.
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 πŸ”’
Uint multiplication operations.
mul_mod πŸ”’
Uint modular multiplication operations.
mul_signed πŸ”’
neg πŸ”’
neg_mod πŸ”’
Uint modular negation operations.
pow πŸ”’
Uint exponentiation operations.
rand πŸ”’
Random number generator support
ref_type πŸ”’
Unsigned integer reference type.
resize πŸ”’
Support for converting between Uint instances with different sizes.
root πŸ”’
Support for nth root calculation for Uint.
shl πŸ”’
Uint bitwise left shift operations.
shr πŸ”’
Uint bitwise right shift operations.
split πŸ”’
sqrt πŸ”’
Uint square root operations.
sub πŸ”’
Uint subtraction operations.
sub_mod πŸ”’
Uint modular 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.