]> 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>
Mon, 22 Mar 2021 16:57:43 +0000 (16:57 +0000)
commitce88eb476b86cac63cef7466bd71f14b611ab03a
treeb3e8ac63b26c6d9e3306dd9421b62776ea2b4c84
parent71ba16a0a02f4a3fd56d03e908615a8b5f701ba4
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
lib/msun/tests/csqrt_test.c