about summary refs log tree commit diff
path: root/sysdeps/aarch64/fpu
diff options
context:
space:
mode:
authorWilco Dijkstra <wdijkstr@arm.com>2014-10-24 13:19:24 +0000
committerWilco Dijkstra <wdijkstr@arm.com>2014-10-24 13:19:24 +0000
commit8b1af712d1556573cd7c71d872eab808faf854fb (patch)
tree43eba375094d1f44554c54709499d062e55ba308 /sysdeps/aarch64/fpu
parenta7b00c110132b4cb64a7f6b7b23a1c0ebbe54cd3 (diff)
downloadglibc-8b1af712d1556573cd7c71d872eab808faf854fb.tar.gz
glibc-8b1af712d1556573cd7c71d872eab808faf854fb.tar.xz
glibc-8b1af712d1556573cd7c71d872eab808faf854fb.zip
Call get_rounding_mode rather than duplicating functionality.
Diffstat (limited to 'sysdeps/aarch64/fpu')
-rw-r--r--sysdeps/aarch64/fpu/fegetround.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sysdeps/aarch64/fpu/fegetround.c b/sysdeps/aarch64/fpu/fegetround.c
index a970ce3569..5428d4de34 100644
--- a/sysdeps/aarch64/fpu/fegetround.c
+++ b/sysdeps/aarch64/fpu/fegetround.c
@@ -17,13 +17,11 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <fenv.h>
-#include <fpu_control.h>
+#include <get-rounding-mode.h>
 
 int
 fegetround (void)
 {
-  fpu_control_t fpcr;
-  _FPU_GETCW (fpcr);
-  return fpcr & FE_TOWARDZERO;
+  return get_rounding_mode ();
 }
 libm_hidden_def (fegetround)