more consistent feature test macros in math tests
[libc-test] / src / math / remquol.c
index 6a75008..3f34f68 100644 (file)
@@ -1,10 +1,17 @@
 #include <stdint.h>
 #include <stdio.h>
-#include "util.h"
+#include "mtest.h"
 
 static struct ll_li t[] = {
+#if LDBL_MANT_DIG == 53
+#include "sanity/remquo.h"
+#include "special/remquo.h"
+
+#elif LDBL_MANT_DIG == 64
 #include "sanity/remquol.h"
 #include "special/remquol.h"
+
+#endif
 };
 
 int main(void)
@@ -33,7 +40,7 @@ int main(void)
                        err++;
                }
                d = ulperr(y, p->y, p->dy);
-               if (!checkulp(d, p->r) ||
+               if (!checkcr(y, p->y, p->r) ||
                (!isnan(p->y) && (yi & 7) != (p->i & 7)) ||
                (!isnan(p->y) && (yi < 0) != (p->i < 0))) {
                        printf("%s:%d: %s remquol(%La,%La) want %La,%lld got %La,%d ulperr %.3f = %a + %a\n",