3.2.3 C99 rounding mode and floating-point exception macros

C99 defines a macro for each rounding mode and each exception

Note:

The following functionality requires a floating-point model that supports exceptions. In ARM® Compiler 6 this is disabled by default, and can be enabled by the armclang command-line option -ffp-mode=full.

The C99 rounding mode and exception macros are:

  • FE_DIVBYZERO

  • FE_INEXACT

  • FE_INVALID

  • FE_OVERFLOW

  • FE_UNDERFLOW

  • FE_ALL_EXCEPT

  • FE_DOWNWARD

  • FE_TONEAREST

  • FE_TOWARDZERO

  • FE_UPWARD

The exception macros are bit fields. The macro FE_ALL_EXCEPT is the bitwise OR of all of them.

Non-ConfidentialPDF file icon PDF versionARM 100073_0607_00_en
Copyright © 2014–2017 ARM Limited or its affiliates. All rights reserved.