use #if LDBL_MANT_DIG == ... instead of custom LD80 etc macros
[libm] / src / math / tanhl.c
index 445793f..e62be59 100644 (file)
 
 #include "libm.h"
 
 
 #include "libm.h"
 
-#if LD64
+#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
 long double tanhl(long double x)
 {
        return tanh(x);
 }
 long double tanhl(long double x)
 {
        return tanh(x);
 }
-#elif LD80
+#elif LDBL_MANT_DIG == 64 && LDBL_MAX_EXP == 16384
 static const long double one=1.0, two=2.0, tiny = 1.0e-4900L;
 
 long double tanhl(long double x)
 static const long double one=1.0, two=2.0, tiny = 1.0e-4900L;
 
 long double tanhl(long double x)