math: fix long double fpclassify tests for ldbl==dbl archs
authorSzabolcs Nagy <nsz@port70.net>
Thu, 15 Aug 2013 20:41:57 +0000 (20:41 +0000)
committerSzabolcs Nagy <nsz@port70.net>
Thu, 15 Aug 2013 20:41:57 +0000 (20:41 +0000)
src/math/fpclassify.c

index 8a43cd6..bc77d8c 100644 (file)
@@ -51,10 +51,17 @@ static struct {
        T(-0.0/0.0, FP_NAN)
        T(1/0.0, FP_INFINITE)
        T(-1/0.0, FP_INFINITE)
+#if LDBL_MAX_EXP==16384
        T(0x1.ffffp16383L, FP_NORMAL)
        T(-0x1.ffffp16383L, FP_NORMAL)
        T(0x1p-16383L, FP_SUBNORMAL)
        T(-0x1p-16383L, FP_SUBNORMAL)
+#elif LDBL_MAX_EXP==1024
+       T(0x1.ffffp1023L, FP_NORMAL)
+       T(-0x1.ffffp1023L, FP_NORMAL)
+       T(0x1p-1023L, FP_SUBNORMAL)
+       T(-0x1p-1023L, FP_SUBNORMAL)
+#endif
        T(0.0, FP_ZERO)
        T(-0.0, FP_ZERO)
        T(3.14, FP_NORMAL)