reactos/lib/sdk/crt/math/j0_y0.c
Timo Kreuzer 6afbc8f483 Hopefully create a branch and not destroy the svn repository.
svn path=/branches/reactos-yarotows/; revision=45219
2010-01-23 23:25:04 +00:00

30 lines
434 B
C

#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;
}