Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libm use labs for absolute value of long
details: https://anonhg.NetBSD.org/src/rev/987773367f04
branches: trunk
changeset: 349718:987773367f04
user: maya <maya%NetBSD.org@localhost>
date: Tue Dec 20 06:07:38 2016 +0000
description:
use labs for absolute value of long
should fix arm build
diffstat:
tests/lib/libm/t_fe_round.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 8ed2e6de1e5d -r 987773367f04 tests/lib/libm/t_fe_round.c
--- a/tests/lib/libm/t_fe_round.c Tue Dec 20 03:35:12 2016 +0000
+++ b/tests/lib/libm/t_fe_round.c Tue Dec 20 06:07:38 2016 +0000
@@ -79,7 +79,7 @@
received = lrint(values[i].input);
ATF_CHECK_MSG(
- (abs(received - values[i].expected) < EPSILON),
+ (labs(received - values[i].expected) < EPSILON),
"lrint rounding wrong, difference too large\n"
"input: %f (index %d): got %ld, expected %ld\n",
values[i].input, i, received, values[i].expected);
Home |
Main Index |
Thread Index |
Old Index