mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-08 18:30:18 +00:00
2013-09-23 Steve Ellcey <sellcey@mips.com>
* sysdeps/mips/fpu/fegetround.c (fegetround): Use _FPU_RC_MASK. * sysdeps/mips/fpu/fesetround.c (fesetround): Use _FPU_RC_MASK.
This commit is contained in:
parent
5b04bb073c
commit
6b9a5fe450
@ -1,3 +1,8 @@
|
||||
2013-09-23 Steve Ellcey <sellcey@mips.com>
|
||||
|
||||
* sysdeps/mips/fpu/fegetround.c (fegetround): Use _FPU_RC_MASK.
|
||||
* sysdeps/mips/fpu/fesetround.c (fesetround): Use _FPU_RC_MASK.
|
||||
|
||||
2013-09-23 Steve Ellcey <sellcey@mips.com>
|
||||
|
||||
* sysdeps/mips/fpu_control.h (_FPU_RC_MASK): New.
|
||||
|
@ -28,5 +28,5 @@ fegetround (void)
|
||||
/* Get control word. */
|
||||
_FPU_GETCW (cw);
|
||||
|
||||
return cw & 0x3;
|
||||
return cw & _FPU_RC_MASK;
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ fesetround (int round)
|
||||
{
|
||||
fpu_control_t cw;
|
||||
|
||||
if ((round & ~0x3) != 0)
|
||||
if ((round & ~_FPU_RC_MASK) != 0)
|
||||
/* ROUND is no valid rounding mode. */
|
||||
return 1;
|
||||
|
||||
@ -33,7 +33,7 @@ fesetround (int round)
|
||||
_FPU_GETCW (cw);
|
||||
|
||||
/* Set rounding bits. */
|
||||
cw &= ~0x3;
|
||||
cw &= ~_FPU_RC_MASK;
|
||||
cw |= round;
|
||||
/* Set new state. */
|
||||
_FPU_SETCW (cw);
|
||||
|
Loading…
Reference in New Issue
Block a user