mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 09:50:02 +00:00
30 lines
434 B
C
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;
|
|
}
|