diff options
author | Szabolcs Nagy <nsz@port70.net> | 2023-08-18 23:16:00 +0200 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2023-08-19 14:07:44 -0400 |
commit | 6d10102709df4bc966d2846c1c45cd667e5048e5 (patch) | |
tree | 6fd927698010a49a910bfed6923f882b909015ec /include | |
parent | fix rejection of dns responses with pointers past 512 byte offset (diff) | |
download | grovel-6d10102709df4bc966d2846c1c45cd667e5048e5.tar.gz grovel-6d10102709df4bc966d2846c1c45cd667e5048e5.tar.xz |
math: fix ld80 acoshl(x) for x < 0
acosh(x) is nan for x < 1, but x < 0 cases were not handled specially
and acoshl gave wrong result for some -0x1p32 < x < -2 values, e.g.:
acoshl(-0x1p20) returned -inf,
acoshl(-0x1.4p20) returned -0x1.db365758403aa9acp+0L,
fixed by checking the sign bit and handling it specially.
reported by Paul Zimmermann.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions