reactos/lib/sdk/crt/math/j0_y0.c

31 lines
434 B
C
Raw Normal View History

#include <math.h>
typedef int fpclass_t;
fpclass_t _fpclass(double __d);
int *_errno(void);
/*
* @unimplemented
*/
double _j0(double num)
{
/* FIXME: errno handling */
return j0(num);
}
/*
* @implemented
*/
double _y0(double num)
{
double retval;
if (!isfinite(num)) *_errno() = EDOM;
retval = y0(num);
if (_fpclass(retval) == _FPCLASS_NINF)
{
*_errno() = EDOM;
retval = sqrt(-1);
}
return retval;
}