]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
lib/msun: avoid referring to broken LDBL_MAX
authorrlibby <rlibby@FreeBSD.org>
Tue, 29 Aug 2017 22:32:29 +0000 (22:32 +0000)
committerrlibby <rlibby@FreeBSD.org>
Tue, 29 Aug 2017 22:32:29 +0000 (22:32 +0000)
commit965d0458ac63e5f5e80863283f3b5aefed256a91
treea8c6ec7ef450c828e2c26d28bedfa419229d4e8d
parent9e8f6cff8ff3c5459e828195bcd015e659901429
lib/msun: avoid referring to broken LDBL_MAX

LDBL_MAX is broken on i386:
https://lists.freebsd.org/pipermail/freebsd-numerics/2012-September/000288.html

Gcc has produced +Infinity for LDBL_MAX on i386 and amd64 with -m32
for some time, and newer versions of gcc are now warning that the
"floating constant exceeds range of 'long double'".  Avoid this by
referring to proxy values instead.

Reviewed by: bde
Approved by: markj (mentor)
Sponsored by: Dell EMC Isilon
lib/msun/src/catrig.c
lib/msun/src/catrigl.c
lib/msun/src/s_csqrtl.c