mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-18 12:16:13 +08:00
Call libc_fesetround_aarch64.
This commit is contained in:
parent
935ab81792
commit
97be3cacec
@ -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]
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user