about summary refs log tree commit diff
path: root/src/thread/x32/syscall_cp_fixup.c
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2018-04-01 20:02:01 +0000
committerRich Felker <dalias@aerifal.cx>2018-04-02 18:57:41 -0400
commit282b1cd26649d69de038111f5876853df6ddc345 (patch)
tree4287eb355348f3c47d0b2075ecc514c4f3361052 /src/thread/x32/syscall_cp_fixup.c
parent729fef0a9358e2f6f1cd8c75a1a0f7ee48b08c95 (diff)
downloadmusl-282b1cd26649d69de038111f5876853df6ddc345.tar.gz
musl-282b1cd26649d69de038111f5876853df6ddc345.tar.xz
musl-282b1cd26649d69de038111f5876853df6ddc345.zip
fix fmaf wrong result
if double precision r=x*y+z is not a half way case between two single
precision floats or it is an exact result then fmaf returns (float)r.

however the exactness check was wrong when |x*y| < |z| and could cause
incorrectly rounded result in nearest rounding mode when r is a half
way case.

fmaf(-0x1.26524ep-54, -0x1.cb7868p+11, 0x1.d10f5ep-29)
was incorrectly rounded up to 0x1.d117ap-29 instead of 0x1.d1179ep-29.
(exact result is 0x1.d1179efffffffecp-29, r is 0x1.d1179fp-29)
Diffstat (limited to 'src/thread/x32/syscall_cp_fixup.c')
0 files changed, 0 insertions, 0 deletions