mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
[AArch64] Fix FP_ROUNDMODE.
[BZ #16387] Fix FP_ROUNDMODE to extract the correct bits from FPCR.
This commit is contained in:
parent
07d55c6c37
commit
196f456b84
2
NEWS
2
NEWS
@ -24,7 +24,7 @@ Version 2.19
|
||||
16103, 16112, 16143, 16144, 16146, 16150, 16151, 16153, 16167, 16172,
|
||||
16195, 16214, 16245, 16271, 16274, 16283, 16289, 16293, 16314, 16316,
|
||||
16330, 16337, 16338, 16356, 16365, 16366, 16369, 16372, 16375, 16379,
|
||||
16384, 16385, 16386, 16390, 16400.
|
||||
16384, 16385, 16386, 16387, 16390, 16400.
|
||||
|
||||
* Slovenian translations for glibc messages have been contributed by the
|
||||
Translation Project's Slovenian team of translators.
|
||||
|
@ -1,3 +1,10 @@
|
||||
2014-01-07 Marcus Shawcroft <marcus.shawcroft@linaro.org>
|
||||
|
||||
[BZ #16387]
|
||||
* sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_RM_MASK): Define.
|
||||
* sysdeps/aarch64/soft-fp/sfp-machine.h (FP_ROUNDMODE): Adjust
|
||||
rounding mode mask.
|
||||
|
||||
2014-01-07 Marcus Shawcroft <marcus.shawcroft@linaro.org>
|
||||
|
||||
* sysdeps/aarch64/libm-test-ulps: Drop sqrt ULPs.
|
||||
|
@ -59,6 +59,9 @@
|
||||
E E D D
|
||||
E E
|
||||
*/
|
||||
|
||||
#define _FPU_FPCR_RM_MASK 0xc00000
|
||||
|
||||
#define _FPU_FPCR_MASK_IXE 0x1000
|
||||
#define _FPU_FPCR_MASK_UFE 0x0800
|
||||
#define _FPU_FPCR_MASK_OFE 0x0400
|
||||
|
@ -47,7 +47,7 @@
|
||||
|
||||
#define _FP_DECL_EX fpu_control_t _fcw
|
||||
|
||||
#define FP_ROUNDMODE (_fcw & 0x3)
|
||||
#define FP_ROUNDMODE (_fcw & _FPU_FPCR_RM_MASK)
|
||||
|
||||
#define FP_RND_NEAREST FE_TONEAREST
|
||||
#define FP_RND_ZERO FE_TOWARDZERO
|
||||
|
Loading…
Reference in New Issue
Block a user