5.1 _clearfp()

Defined in float.h, the _clearfp() function is provided for compatibility with Microsoft products.

_clearfp() clears all five exception sticky flags and returns their previous values. You can use the _controlfp() argument macros, for example _EM_INVALID and _EM_ZERODIVIDE, to test bits of the returned result.

The function prototype for _clearfp() is:

unsigned _clearfp(void);

Note:

This function 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.
Non-ConfidentialPDF file icon PDF versionARM 100073_0608_00_en
Copyright © 2014–2017 ARM Limited or its affiliates. All rights reserved.