aboutsummaryrefslogtreecommitdiff
path: root/malloc/alloc_buffer_alloc_array.c
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2022-10-13 11:10:10 +0100
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2022-11-22 14:24:26 +0000
commit5aa16bb318c542cc9a2a5b48cf90b5dd8f0873ec (patch)
treea98bca2661ecba419dc065a154d9454f73c60afb /malloc/alloc_buffer_alloc_array.c
parent2ba9801d9f222de9fe1f5f04dcd1c276e56b4245 (diff)
downloadglibc-5aa16bb318c542cc9a2a5b48cf90b5dd8f0873ec.tar.xz
glibc-5aa16bb318c542cc9a2a5b48cf90b5dd8f0873ec.zip
math: Fix asin and acos invalid exception with old gcc
This works around a gcc issue where it const folded inf/inf into nan, preventing the invalid exception to be signalled. (x-x)/(x-x) is more robust against optimizations and works for all out of bounds values including x==nan. The gcc issue https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95115 should be fixed on release branches starting from gcc-10, but it is better to change the code in case glibc is built with older gcc.
Diffstat (limited to 'malloc/alloc_buffer_alloc_array.c')
0 files changed, 0 insertions, 0 deletions