|Home > Floating-point Support > The math library, mathlib > Range reduction in mathlib|
Trigonometric functions in mathlib use range reduction to bring large arguments within the range 0 to 2p. The ARM compiler provides two different range reduction functions. One is accurate to one unit in the last place for any input values, but is larger and slower than the other. The other is reliable enough for almost all purposes and is faster and smaller.
The fast and small range reducer is used by default. To select the more accurate one, use either: