use #if LDBL_MANT_DIG == ... instead of custom LD80 etc macros
[libm] / src / math / atan2l.c
index f9002cb..64ec12e 100644 (file)
 
 #include "libm.h"
 
 
 #include "libm.h"
 
-#if LD64
+#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
 long double atan2l(long double y, long double x)
 {
        return atan2(y, x);
 }
 long double atan2l(long double y, long double x)
 {
        return atan2(y, x);
 }
-#elif LD80 || LD128
+#elif (LDBL_MANT_DIG == 64 || LDBL_MANT_DIG == 113) && LDBL_MAX_EXP == 16384
 #include "__invtrigl.h"
 static volatile long double
 tiny = 1.0e-300;
 #include "__invtrigl.h"
 static volatile long double
 tiny = 1.0e-300;