Module uint

Module uint 

Source
Expand description

Stack-allocated big unsigned integers.

ModulesΒ§

add πŸ”’
Uint addition operations.
add_mod πŸ”’
Uint addition modulus operations.
array πŸ”’
generic-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 πŸ”’
cmp πŸ”’
Uint comparisons.
concat πŸ”’
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 operations for Uint
from πŸ”’
From-like conversions for Uint.
inv_mod πŸ”’
macros πŸ”’
modular
Implements modular arithmetic for constant moduli.
mul πŸ”’
Uint addition operations.
mul_mod πŸ”’
Uint multiplication modulus operations.
neg πŸ”’
neg_mod πŸ”’
Uint negation modulus operations.
rand πŸ”’
Random number generator support
resize πŸ”’
shl πŸ”’
Uint bitwise left shift operations.
shr πŸ”’
Uint bitwise right shift operations.
split πŸ”’
sqrt πŸ”’
Uint square root operations.
sub πŸ”’
Uint addition operations.
sub_mod πŸ”’
Uint subtraction modulus 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.