2014-10-24 Wilco Dijkstra <wdijkstr@arm.com>
+ * sysdeps/aarch64/fpu/fgetexcptflg.c (fegetexceptflag):
+ Call libc_fetestexcept_aarch64.
+
+2014-10-24 Wilco Dijkstra <wdijkstr@arm.com>
+
* sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept):
Call libc_feholdexcept_aarch64.
<http://www.gnu.org/licenses/>. */
#include <fenv.h>
-#include <fpu_control.h>
+#include <math_private.h>
int
fegetexceptflag (fexcept_t *flagp, int excepts)
{
- fpu_fpsr_t fpsr;
-
- /* Get the current exceptions. */
- _FPU_GETFPSR (fpsr);
-
- *flagp = fpsr & excepts & FE_ALL_EXCEPT;
-
+ *flagp = libc_fetestexcept_aarch64 (excepts);
return 0;
}