9.147 __vfp_status intrinsic

This intrinsic reads or modifies the FPSCR.

Syntax

unsigned int __vfp_status(unsigned int mask, unsigned int flags);

Usage

Use this intrinsic to read or modify the flags in FPSCR.
The intrinsic returns the value of FPSCR, unmodified, if mask and flags are 0.
You can clear, set, or toggle individual flags in FPSCR using the bits in mask and flags, as shown in the following table. The intrinsic returns the modified value of FPSCR if mask and flags are not both 0.

Table 9-18 Modifying the FPSCR flags

mask bit
flags bit
Effect on FPSCR flag
0
0
Does not modify the flag
0
1
Toggles the flag
1
1
Sets the flag
1
0
Clears the flag

Note

If you want to read or modify only the exception flags in FPSCR, then ARM recommends that you use the standard C99 features in <fenv.h>.

Errors

The compiler generates an error if you attempt to use this intrinsic when compiling for a target that does not have VFP.
Related concepts
4.81 <fenv.h> floating-point environment access in C99
Related information
VFP system registers
Non-ConfidentialPDF file icon PDF versionARM DUI0375E
Copyright © 2007, 2008, 2011, 2012, 2014 ARM. All rights reserved.