5.4. The math library, mathlib

Trigonometric functions in mathlib use range reduction to bring large arguments within the range 0 to 2p. ARM 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:

In addition to the functions defined by the ANSI C standard, mathlib provides the following functions:

Copyright © 1999-2001 ARM Limited. All rights reserved.ARM DUI 0067D
Non-Confidential