diff --git a/ChangeLog b/ChangeLog index 2302d7ef5e..66447bf52a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2014-10-24 Wilco Dijkstra + + * sysdeps/aarch64/fpu/fegetround.c (fegetround): + Call get_rounding_mode. + 2014-10-24 Wilco Dijkstra * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): 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 @@ . */ #include -#include +#include int fegetround (void) { - fpu_control_t fpcr; - _FPU_GETCW (fpcr); - return fpcr & FE_TOWARDZERO; + return get_rounding_mode (); } libm_hidden_def (fegetround)