Libraries and Floating Point Support GuidePreface The ARM C and C++ Libraries The ARM C Micro-library Floating-point Support The C and C++ Library Functions reference Floating-point Support Functions Reference _clearfp() _controlfp() __fp_status() gamma(), gamma_r() __ieee_status() j0(), j1(), jn(), Bessel functions of the first ki significand(), fractional part of a number _statusfp() y0(), y1(), yn(), Bessel functions of the second k
Defined in float.h, the
The function prototype for
NoteThis function requires you to select a floating-point model that supports exceptions. For example,
NoteThis is different behavior to that of
The following table describes the macros you can use to form the arguments to
Table 5-1 _controlfp argument macros
NoteThe values of these macros are not guaranteed to remain the same in future versions of ARM products. To ensure that your code continues to work if the value changes in future releases, use the macro rather than its value.
For example, to set the rounding mode to round down, call:
To trap the Invalid Operation exception and untrap all other exceptions:
To untrap the Inexact Result exception:
of your data.