Skip to main content

Module modular

Module modular 

Source
Expand description

Modular-arithmetic kernels for transform workloads.

These kernels keep exact residue-field arithmetic in Hermes instead of forcing downstream crates to duplicate butterfly loops around SIMD-facing provider boundaries. Multiplication uses u128 widening because the numerical contract is exact modular arithmetic, not wrapping arithmetic.

Functionsยง

ntt_butterfly_stage_u64
Executes one radix-2 NTT butterfly stage in place.