3 #if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
4 double nexttoward(double x, long double y)
6 return nextafter(x, y);
9 #define SIGN ((uint64_t)1<<63)
11 double nexttoward(double x, long double y)
16 if (isnan(x) || isnan(y))
36 e = ux.bits>>52 & 0x7ff;
37 /* raise overflow if ux.value is infinite and x is finite */
40 /* raise underflow if ux.value is subnormal or zero */
42 FORCE_EVAL(x*x + ux.value*ux.value);