summaryrefslogtreecommitdiff
path: root/libc/ports/sysdeps/arm/fesetround.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/ports/sysdeps/arm/fesetround.c')
-rw-r--r--libc/ports/sysdeps/arm/fesetround.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/libc/ports/sysdeps/arm/fesetround.c b/libc/ports/sysdeps/arm/fesetround.c
index 997bd98f5..6de1644a7 100644
--- a/libc/ports/sysdeps/arm/fesetround.c
+++ b/libc/ports/sysdeps/arm/fesetround.c
@@ -1,5 +1,5 @@
/* Set current rounding direction.
- Copyright (C) 2004, 2005 Free Software Foundation, Inc.
+ Copyright (C) 2004-2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -18,16 +18,13 @@
#include <fenv.h>
#include <fpu_control.h>
+#include <arm-features.h>
-#include <unistd.h>
-#include <ldsodefs.h>
-#include <dl-procinfo.h>
-#include <sysdep.h>
int
fesetround (int round)
{
- if (GLRO (dl_hwcap) & HWCAP_ARM_VFP)
+ if (ARM_HAVE_VFP)
{
fpu_control_t temp;