Module Name: src Committed By: maya Date: Tue Dec 20 06:07:38 UTC 2016
Modified Files: src/tests/lib/libm: t_fe_round.c Log Message: use labs for absolute value of long should fix arm build To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libm/t_fe_round.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/lib/libm/t_fe_round.c diff -u src/tests/lib/libm/t_fe_round.c:1.1 src/tests/lib/libm/t_fe_round.c:1.2 --- src/tests/lib/libm/t_fe_round.c:1.1 Mon Dec 19 17:38:24 2016 +++ src/tests/lib/libm/t_fe_round.c Tue Dec 20 06:07:38 2016 @@ -79,7 +79,7 @@ ATF_TC_BODY(fe_round, tc) 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);