Skip to main content

RECIPROCAL

Static RECIPROCAL 

Source
pub static RECIPROCAL: [u16; 512]
Expand description

The reciprocal ROM, built at compile time.

A static rather than a function, which is what makes it a table in the binary: the generator runs during const evaluation and nothing computes a reciprocal at run time. An earlier revision computed each entry on demand, which made every VRSQ pay for a search — see the note on INVERSE_SQUARE_ROOT.