3.3.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 you to select a floating-point model that supports exceptions, such as --fpmode=ieee_full or --fpmode=ieee_fixed.

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 DUI0475M
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.