summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-12-23 09:18:47 +0000
committerngie <ngie@FreeBSD.org>2015-12-23 09:18:47 +0000
commit8d7553732eee9d9e0859f2ed44107fcbc57209c2 (patch)
treef0688976abe67bf4d6750fd54d6eabbb4a2d34cb /tools
parentfe1c291a3e7044c5732dde826ed4c380024d361a (diff)
downloadFreeBSD-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
Diffstat (limited to 'tools')
-rw-r--r--tools/regression/lib/msun/test-invctrig.c8
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);
}
OpenPOWER on IntegriCloud