Module fast

Module fast 

Source
Expand description

Arithmetic modulo 2^8 - 1, 2^16 - 1, 2^32 - 1, and 2^64 - 1.

Most combinations of operations are compiled as efficiently as possible. A notable exception is comparison with a constant: prefer x.is::<C>() over x == FastK::new(C).

Structsยง

Fast8
Arithmetic modulo 2^8 - 1 = 3 * 5 * 17.
Fast16
Arithmetic modulo 2^16 - 1 = 3 * 5 * 17 * 257.
Fast32
Arithmetic modulo 2^32 - 1 = 3 * 5 * 17 * 257 * 65537.
Fast64
Arithmetic modulo 2^64 - 1 = 3 * 5 * 17 * 257 * 641 * 65537 * 6700417.