svn commit: r292327 - head/tools/regression/lib/msun
Garrett Cooper
ngie at FreeBSD.org
Wed Dec 16 13:56:27 UTC 2015
Author: ngie
Date: Wed Dec 16 08:53:24 2015
New Revision: 292327
URL: https://svnweb.freebsd.org/changeset/base/292327
Log:
Use fabsl instead of fabs to mute -Wabsolute-value warnings from clang
because `nums[]` is an array of long doubles
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
Modified:
head/tools/regression/lib/msun/test-invctrig.c
Modified: head/tools/regression/lib/msun/test-invctrig.c
==============================================================================
--- head/tools/regression/lib/msun/test-invctrig.c Wed Dec 16 08:48:37 2015 (r292326)
+++ head/tools/regression/lib/msun/test-invctrig.c Wed Dec 16 08:53:24 2015 (r292327)
@@ -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);
}
More information about the svn-src-all
mailing list