Commit ac4e6759 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt: Call nextafter in nexttoward implementation.

parent 1dc3aa80
......@@ -19640,7 +19640,6 @@ for ac_func in \
log1pf \
log2 \
log2f \
nexttoward \
nexttowardf \
remainder \
remainderf \
......
......@@ -2680,7 +2680,6 @@ AC_CHECK_FUNCS(\
log1pf \
log2 \
log2f \
nexttoward \
nexttowardf \
remainder \
remainderf \
......
......@@ -3487,13 +3487,7 @@ float CDECL nearbyintf(float x)
*/
double CDECL MSVCRT_nexttoward(double num, double next)
{
double ret = unix_funcs->nexttoward(num, next);
if (!(_fpclass(ret) & (_FPCLASS_PN | _FPCLASS_NN
| _FPCLASS_SNAN | _FPCLASS_QNAN)) && !isinf(num))
{
*_errno() = ERANGE;
}
return ret;
return _nextafter(num, next);
}
/*********************************************************************
......
......@@ -548,19 +548,6 @@ static float CDECL unix_modff( float x, float *iptr )
}
/*********************************************************************
* nexttoward
*/
static double CDECL unix_nexttoward(double num, double next)
{
#ifdef HAVE_NEXTTOWARD
return nexttoward(num, next);
#else
FIXME("not implemented\n");
return 0;
#endif
}
/*********************************************************************
* nexttowardf
*/
static float CDECL unix_nexttowardf(float num, double next)
......@@ -806,7 +793,6 @@ static const struct unix_funcs funcs =
unix_logbf,
unix_modf,
unix_modff,
unix_nexttoward,
unix_nexttowardf,
unix_pow,
unix_powf,
......
......@@ -72,7 +72,6 @@ struct unix_funcs
float (CDECL *logbf)(float x);
double (CDECL *modf)(double x, double *iptr);
float (CDECL *modff)(float x, float *iptr);
double (CDECL *nexttoward)(double x, double y);
float (CDECL *nexttowardf)(float x, double y);
double (CDECL *pow)(double x, double y);
float (CDECL *powf)(float x, float y);
......
......@@ -567,9 +567,6 @@
/* Define to 1 if you have the <net/route.h> header file. */
#undef HAVE_NET_ROUTE_H
/* Define to 1 if you have the `nexttoward' function. */
#undef HAVE_NEXTTOWARD
/* Define to 1 if you have the `nexttowardf' function. */
#undef HAVE_NEXTTOWARDF
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment