Skip to main content

ntt_layer

Function ntt_layer 

Source
fn ntt_layer<const LEN: usize, const ITERATIONS: usize>(
    w: &mut [Elem<BaseField>; 256],
    m: &mut usize,
)
Expand description

Constant-time NTT butterfly layer.

Uses const generics to ensure loop bounds are compile-time constants, avoiding UDIV instructions from runtime step_by calculations.