mirror of
https://github.com/reactos/reactos.git
synced 2024-10-22 05:46:19 +00:00
9ea495ba33
svn path=/branches/header-work/; revision=45691
31 lines
461 B
C
31 lines
461 B
C
#include <math.h>
|
|
|
|
typedef int fpclass_t;
|
|
fpclass_t _fpclass(double __d);
|
|
int *_errno(void);
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
double _jn(int n, double num)
|
|
{
|
|
/* FIXME: errno handling */
|
|
return jn(n, num);
|
|
}
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
double _yn(int order, double num)
|
|
{
|
|
double retval;
|
|
if (!isfinite(num)) *_errno() = EDOM;
|
|
retval = yn(order,num);
|
|
if (_fpclass(retval) == _FPCLASS_NINF)
|
|
{
|
|
*_errno() = EDOM;
|
|
retval = sqrt(-1);
|
|
}
|
|
return retval;
|
|
}
|