Module Name: src
Committed By: christos
Date: Sun Aug 20 08:25:47 UTC 2017
Modified Files:
src/tests/lib/libm: t_fe_round.c
Log Message:
fix build (missing nexttoward on mips64 and aarch64)
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 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.7 src/tests/lib/libm/t_fe_round.c:1.8
--- src/tests/lib/libm/t_fe_round.c:1.7 Thu Aug 17 05:14:28 2017
+++ src/tests/lib/libm/t_fe_round.c Sun Aug 20 04:25:47 2017
@@ -168,6 +168,9 @@ ATF_TC_BODY(fe_nexttoward, tc)
double received;
int res;
+#if defined(_LP64) && (defined(__mips__) || defined(__arm__))
+ ATF_CHECK_MSG(0, "nexttoward not supported yet on mips64 or aarch64");
+#else
for (unsigned int i = 0; i < __arraycount(values2); i++) {
received = nexttoward(values2[i].input, values2[i].toward);
if (values2[i].input < values2[i].toward) {
@@ -181,6 +184,7 @@ ATF_TC_BODY(fe_nexttoward, tc)
"input: %f (index %d): got %f, expected %f, res %d\n",
values2[i].input, i, received, values2[i].expected, res);
}
+#endif
}
ATF_TP_ADD_TCS(tp)