use different const in __expo2
[libm] / src / math / powl.c
index c829c18..690f294 100644 (file)
 
 #include "libm.h"
 
-#if LDBL_MANT_DIG == 64 && LDBL_MAX_EXP == 16384
+#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
+long double powl(long double x, long double y)
+{
+       return pow(x, y);
+}
+#elif LDBL_MANT_DIG == 64 && LDBL_MAX_EXP == 16384
 
 /* Table size */
 #define NXT 32
@@ -207,7 +212,7 @@ long double powl(long double x, long double y)
        if (y == 1.0L)
                return x;
 
-       // FIXME: this is wrong, see pow special cases in posix2008
+       // FIXME: this is wrong, see pow special cases in c99 F.9.4.4
        if (!isfinite(y) && (x == -1.0L || x == 1.0L) )
                return y - y;   /* +-1**inf is NaN */
        if (x == 1.0L)