Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libm fix build (missing nexttoward on mips64 and a...



details:   https://anonhg.NetBSD.org/src/rev/0eb033063586
branches:  trunk
changeset: 826184:0eb033063586
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Aug 20 08:25:47 2017 +0000

description:
fix build (missing nexttoward on mips64 and aarch64)

diffstat:

 tests/lib/libm/t_fe_round.c |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (21 lines):

diff -r 243aba4ffaea -r 0eb033063586 tests/lib/libm/t_fe_round.c
--- a/tests/lib/libm/t_fe_round.c       Sun Aug 20 05:37:03 2017 +0000
+++ b/tests/lib/libm/t_fe_round.c       Sun Aug 20 08:25:47 2017 +0000
@@ -168,6 +168,9 @@
        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 @@
                        "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)



Home | Main Index | Thread Index | Old Index