From: Wilco Dijkstra Date: Mon, 22 Dec 2014 16:57:41 +0000 (+0000) Subject: Call libc_fesetround_aarch64. X-Git-Tag: glibc-2.21~173 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97be3cacecc44a521f6a9148657a7ecd3288636c;p=thirdparty%2Fglibc.git Call libc_fesetround_aarch64. --- diff --git a/ChangeLog b/ChangeLog index 7279fcc2163..a026ad17f77 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2014-12-22 Wilco Dijkstra + + * sysdeps/aarch64/fpu/fesetround.c (fesetround): + Call libc_fesetround_aarch64. + 2014-12-22 Joseph Myers [BZ #17733] diff --git a/sysdeps/aarch64/fpu/fesetround.c b/sysdeps/aarch64/fpu/fesetround.c index d34706d97c9..ba0f31e8bcc 100644 --- a/sysdeps/aarch64/fpu/fesetround.c +++ b/sysdeps/aarch64/fpu/fesetround.c @@ -17,31 +17,16 @@ . */ #include +#include #include 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)