diff options
author | Wilco Dijkstra <wdijkstr@arm.com> | 2014-12-22 16:57:41 +0000 |
---|---|---|
committer | Wilco Dijkstra <wdijkstr@arm.com> | 2014-12-22 16:57:41 +0000 |
commit | 97be3cacecc44a521f6a9148657a7ecd3288636c (patch) | |
tree | a345e4466c707859728ba3f287a034ad2503a719 | |
parent | 935ab8179287f3b7aefdbe3829110d369be1a5c8 (diff) | |
download | glibc-97be3cacecc44a521f6a9148657a7ecd3288636c.tar glibc-97be3cacecc44a521f6a9148657a7ecd3288636c.tar.gz glibc-97be3cacecc44a521f6a9148657a7ecd3288636c.tar.bz2 glibc-97be3cacecc44a521f6a9148657a7ecd3288636c.zip |
Call libc_fesetround_aarch64.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | sysdeps/aarch64/fpu/fesetround.c | 25 |
2 files changed, 10 insertions, 20 deletions
@@ -1,3 +1,8 @@ +2014-12-22 Wilco Dijkstra <wdijkstr@arm.com> + + * sysdeps/aarch64/fpu/fesetround.c (fesetround): + Call libc_fesetround_aarch64. + 2014-12-22 Joseph Myers <joseph@codesourcery.com> [BZ #17733] diff --git a/sysdeps/aarch64/fpu/fesetround.c b/sysdeps/aarch64/fpu/fesetround.c index d34706d97c..ba0f31e8bc 100644 --- a/sysdeps/aarch64/fpu/fesetround.c +++ b/sysdeps/aarch64/fpu/fesetround.c @@ -17,31 +17,16 @@ <http://www.gnu.org/licenses/>. */ #include <fenv.h> +#include <math_private.h> #include <fpu_control.h> int fesetround (int round) { - fpu_control_t fpcr; - fpu_control_t fpcr_new; + if (round & ~_FPU_FPCR_RM_MASK) + return 1; - switch (round) - { - case FE_TONEAREST: - case FE_UPWARD: - case FE_DOWNWARD: - case FE_TOWARDZERO: - _FPU_GETCW (fpcr); - fpcr_new = (fpcr & ~FE_TOWARDZERO) | round; - - if (fpcr != fpcr_new) - _FPU_SETCW (fpcr_new); - return 0; - - default: - return 1; - } - - return 1; + libc_fesetround_aarch64 (round); + return 0; } libm_hidden_def (fesetround) |