Keil Logo

_clearfp()

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 you to select a floating-point model that supports exceptions. For example, --fpmode=ieee_full or --fpmode=ieee_fixed.
Related information
Non-ConfidentialPDF file icon PDF versionARM DUI0378H
Copyright © 2007, 2008, 2011, 2012, 2014-2016 ARM. All rights reserved. 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.