Skip to main content

max_shifted_packed_injective_limbs

Function max_shifted_packed_injective_limbs 

Source
pub fn max_shifted_packed_injective_limbs<F: PrimeField32, PF: PrimeField>(
    radix_bits: u32,
) -> usize
Expand description

Maximum number of shifted PrimeField32 elements packable into PrimeField injectively via reduce_packed_shifted with the given radix_bits.

Returns the largest k such that F::ORDER_U32 · ∑_{i=0}^{k-1} (2^{radix\_bits})^i < PF::order().