From: Wilco Dijkstra Date: Fri, 24 Oct 2014 13:19:24 +0000 (+0000) Subject: Call get_rounding_mode rather than duplicating functionality. X-Git-Tag: glibc-2.21~465 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8b1af712d1556573cd7c71d872eab808faf854fb;p=platform%2Fupstream%2Fglibc.git Call get_rounding_mode rather than duplicating functionality. --- diff --git a/ChangeLog b/ChangeLog index 2302d7e..66447bf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 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): Simplify logic. diff --git a/sysdeps/aarch64/fpu/fegetround.c b/sysdeps/aarch64/fpu/fegetround.c index a970ce3..5428d4d 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)