diff options
author | Aurelien Jarno <aurelien@aurel32.net> | 2016-08-02 09:18:59 +0200 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-12-08 00:38:41 -0500 |
commit | b099b9c11b003927010b18fe7adf66b5f1c1817c (patch) | |
tree | 92300c6afd897492aa1b4f908fb726ae30ed53d2 /elf/tst-tls2.c | |
parent | 201fca8584b5aca30e807890b607064f16ef38ef (diff) | |
download | glibc-gentoo/2.23.tar.gz glibc-gentoo/2.23.tar.xz glibc-gentoo/2.23.zip |
alpha: fix trunc for big input values gentoo/2.23
The alpha specific version of trunc and truncf always add and subtract 0x1.0p23 or 0x1.0p52 even for big values. This causes this kind of errors in the testsuite: Failure: Test: trunc_towardzero (0x1p107) Result: is: 1.6225927682921334e+32 0x1.fffffffffffffp+106 should be: 1.6225927682921336e+32 0x1.0000000000000p+107 difference: 1.8014398509481984e+16 0x1.0000000000000p+54 ulp : 0.5000 max.ulp : 0.0000 Change this by returning the input value when its absolute value is greater than 0x1.0p23 or 0x1.0p52. NaN have to go through the add and subtract operations to get possibly silenced. Finally remove the code to handle inexact exception, trunc should never generate such an exception. Changelog: * sysdeps/alpha/fpu/s_trunc.c (__trunc): Return the input value when its absolute value is greater than 0x1.0p52. [_IEEE_FP_INEXACT] Remove. * sysdeps/alpha/fpu/s_truncf.c (__truncf): Return the input value when its absolute value is greater than 0x1.0p23. [_IEEE_FP_INEXACT] Remove. (cherry picked from commit b74d259fe793499134eb743222cd8dd7c74a31ce) (cherry picked from commit 3a5aa2ee4ffc515c8e7e615ea38d6b3b20ed0a30)
Diffstat (limited to 'elf/tst-tls2.c')
0 files changed, 0 insertions, 0 deletions