initial cmath code and minor libm.h update
[libm] / src / math / nexttoward.c
index 6f4bae5..5e12c48 100644 (file)
  */
 
 #include "libm.h"
-#if LD64
+#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
 double nexttoward(double x, long double y)
 {
        return nextafter(x, y);
 }
-#elif LD80 || LD128
+#elif (LDBL_MANT_DIG == 64 || LDBL_MANT_DIG == 113) && LDBL_MAX_EXP == 16384
 double nexttoward(double x, long double y)
 {
        union IEEEl2bits uy;