diff options
author | ngie <ngie@FreeBSD.org> | 2015-12-23 09:18:47 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2015-12-23 09:18:47 +0000 |
commit | 8d7553732eee9d9e0859f2ed44107fcbc57209c2 (patch) | |
tree | f0688976abe67bf4d6750fd54d6eabbb4a2d34cb | |
parent | fe1c291a3e7044c5732dde826ed4c380024d361a (diff) | |
download | FreeBSD-src-8d7553732eee9d9e0859f2ed44107fcbc57209c2.zip FreeBSD-src-8d7553732eee9d9e0859f2ed44107fcbc57209c2.tar.gz |
MFC r292327:
Use fabsl instead of fabs to mute -Wabsolute-value warnings from clang
because `nums[]` is an array of long doubles
Sponsored by: EMC / Isilon Storage Division
-rw-r--r-- | tools/regression/lib/msun/test-invctrig.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/regression/lib/msun/test-invctrig.c b/tools/regression/lib/msun/test-invctrig.c index 78b1119..34e78a1 100644 --- a/tools/regression/lib/msun/test-invctrig.c +++ b/tools/regression/lib/msun/test-invctrig.c @@ -281,21 +281,21 @@ test_axes(void) for (i = 0; i < sizeof(nums) / sizeof(nums[0]); i++) { /* Real axis */ z = CMPLXL(nums[i], 0.0); - if (fabs(nums[i]) <= 1) { + if (fabsl(nums[i]) <= 1) { testall_tol(cacosh, z, CMPLXL(0.0, acos(nums[i])), 1); testall_tol(cacos, z, CMPLXL(acosl(nums[i]), -0.0), 1); testall_tol(casin, z, CMPLXL(asinl(nums[i]), 0.0), 1); testall_tol(catanh, z, CMPLXL(atanh(nums[i]), 0.0), 1); } else { testall_tol(cacosh, z, - CMPLXL(acosh(fabs(nums[i])), + CMPLXL(acosh(fabsl(nums[i])), (nums[i] < 0) ? pi : 0), 1); testall_tol(cacos, z, CMPLXL((nums[i] < 0) ? pi : 0, - -acosh(fabs(nums[i]))), 1); + -acosh(fabsl(nums[i]))), 1); testall_tol(casin, z, CMPLXL(copysign(pi / 2, nums[i]), - acosh(fabs(nums[i]))), 1); + acosh(fabsl(nums[i]))), 1); testall_tol(catanh, z, CMPLXL(atanh(1 / nums[i]), pi / 2), 1); } |