The following functionality requires you to select a floating-point
model that supports exceptions., such as --fpmode=ieee_full or --fpmode=ieee_fixed.
C99 provides the following functions for handling rounding
modes:
int fegetround(void); int fesetround(int round);
The fegetround() function returns the
current rounding mode. The current rounding mode has a value equal
to one of the C99 rounding mode macros or exceptions.
The fesetround() function sets the current
rounding mode to the value provided. fesetround() returns
zero for success, or nonzero if its argument is not a valid rounding
mode.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.