_clearfp()

Defined in float.h, this 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 enabled by default, and is disabled by armclang command-line options such as -ffast-math.

Show/hideSee also

Tasks

ARM C and C++ Libraries and Floating-Point Support User Guide:

Reference
Copyright © 2014 ARM. All rights reserved.ARM DUI 0809A
Non-ConfidentialID031214