summaryrefslogtreecommitdiff
path: root/libc/ports/sysdeps/arm/setfpucw.c
diff options
context:
space:
mode:
authorjoseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2012-08-17 19:39:53 +0000
committerjoseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2012-08-17 19:39:53 +0000
commite7a9915190f0e2b940e4af9ad480cbe035a197d6 (patch)
tree1f2af18154d7414f0ac2204709a0488505bae848 /libc/ports/sysdeps/arm/setfpucw.c
parentdd3105b347f432016fcdc1abd472c3717f557c9e (diff)
downloadeglibc2-e7a9915190f0e2b940e4af9ad480cbe035a197d6.tar.gz
Merge changes between r19920 and r20213 from /fsf/trunk.
git-svn-id: svn://svn.eglibc.org/trunk@20214 7b3dc134-2b1b-0410-93df-9e9f96275f8d
Diffstat (limited to 'libc/ports/sysdeps/arm/setfpucw.c')
-rw-r--r--libc/ports/sysdeps/arm/setfpucw.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/libc/ports/sysdeps/arm/setfpucw.c b/libc/ports/sysdeps/arm/setfpucw.c
index d0cea32b9..0947e273d 100644
--- a/libc/ports/sysdeps/arm/setfpucw.c
+++ b/libc/ports/sysdeps/arm/setfpucw.c
@@ -1,5 +1,5 @@
/* Set the FPU control word.
- Copyright (C) 1996, 1997, 1999, 2005 Free Software Foundation, Inc.
+ Copyright (C) 1996-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 <math.h>
#include <fpu_control.h>
+#include <arm-features.h>
-#include <unistd.h>
-#include <ldsodefs.h>
-#include <dl-procinfo.h>
-#include <sysdep.h>
void
__setfpucw (fpu_control_t set)
{
- if (GLRO (dl_hwcap) & HWCAP_ARM_VFP)
+ if (ARM_HAVE_VFP)
{
fpu_control_t cw;