use #if LDBL_MANT_DIG == ... instead of custom LD80 etc macros
[libm] / src / math / exp2l.c
index c90a6f2..ce085a7 100644 (file)
 
 #include "libm.h"
 
-#if LD64
+#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
 long double exp2l(long double x)
 {
        return exp2l(x);
 }
-#elif LD80
+#elif LDBL_MANT_DIG == 64 && LDBL_MAX_EXP == 16384
 
 #define TBLBITS 7
 #define TBLSIZE (1 << TBLBITS)