Module limb

Module limb 

Source
Expand description

Big integers are represented as an array of smaller CPU word-size integers called “limbs”.

Modules§

add 🔒
Limb addition
bit_and 🔒
Limb bit and operations.
bit_not 🔒
Limb bit not operations.
bit_or 🔒
Limb bit or operations.
bit_xor 🔒
Limb bit xor operations.
bits 🔒
cmp 🔒
Limb comparisons
encoding 🔒
Limb encoding
from 🔒
From-like conversions for Limb.
mul 🔒
Limb multiplication
neg 🔒
Limb negation
rand 🔒
Random number generator support
shl 🔒
Limb left bitshift
shr 🔒
Limb right bitshift
sub 🔒
Limb subtraction

Structs§

Limb
Big integers are represented as an array of smaller CPU word-size integers called “limbs”.

Constants§

HI_BIT 🔒
Highest bit in a Limb.

Type Aliases§

WideWord
Wide integer type: double the width of Word.
Word
Unsigned integer type that the Limb newtype wraps.