Call get_rounding_mode rather than duplicating functionality.
authorWilco Dijkstra <wdijkstr@arm.com>
Fri, 24 Oct 2014 13:19:24 +0000 (13:19 +0000)
committerWilco Dijkstra <wdijkstr@arm.com>
Fri, 24 Oct 2014 13:19:24 +0000 (13:19 +0000)
ChangeLog
sysdeps/aarch64/fpu/fegetround.c

index 2302d7e..66447bf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
 
+       * sysdeps/aarch64/fpu/fegetround.c (fegetround):
+       Call get_rounding_mode.
+
+2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
+
        * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
        Simplify logic.
 
index a970ce3..5428d4d 100644 (file)
    <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)