]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix lib/msun/tests/csqrt_test on platforms with 128-bit long double
authorAlex Richardson <arichardson@FreeBSD.org>
Mon, 22 Mar 2021 16:54:02 +0000 (16:54 +0000)
committerAlex Richardson <arichardson@FreeBSD.org>
Thu, 22 Apr 2021 09:44:52 +0000 (10:44 +0100)
commit47950e427c5ffada65d639fb1107bf6a3ab85b7f
tree4d227d749138f92e45c81a062ce329eb4613a1c2
parent549e8b821fcf102a99bffb995832e01fc9c5108d
Fix lib/msun/tests/csqrt_test on platforms with 128-bit long double

If long double has more than 64 mantissa bits, using uint64_t to hold the
mantissa bits will truncate the value and result in test failures. To fix
this problem use __uint128_t since all platforms that have
__LDBL_MANT_DIG__ > 64 also have compiler support for 128-bit integers.

Reviewed By: rlibby
Differential Revision: https://reviews.freebsd.org/D29076

(cherry picked from commit ce88eb476b86cac63cef7466bd71f14b611ab03a)
lib/msun/tests/csqrt_test.c