mirror of
https://github.com/reactos/reactos.git
synced 2024-10-19 15:41:31 +00:00
c2d0d784c7
- Create a branch to do a proper merge of USB work from a trunk base instead of from cmake-bringup - In the future, DO NOT under any circumstances branch another branch. This leads to merge problems! svn path=/branches/usb-bringup-trunk/; revision=55018
33 lines
528 B
C
33 lines
528 B
C
#include <math.h>
|
|
#include <float.h>
|
|
#include "ieee754/ieee754.h"
|
|
|
|
typedef int fpclass_t;
|
|
fpclass_t _fpclass(double __d);
|
|
int *_errno(void);
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
double _jn(int n, double num)
|
|
{
|
|
/* FIXME: errno handling */
|
|
return __ieee754_jn(n, num);
|
|
}
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
double _yn(int order, double num)
|
|
{
|
|
double retval;
|
|
if (!_finite(num)) *_errno() = EDOM;
|
|
retval = __ieee754_yn(order,num);
|
|
if (_fpclass(retval) == _FPCLASS_NINF)
|
|
{
|
|
*_errno() = EDOM;
|
|
retval = sqrt(-1);
|
|
}
|
|
return retval;
|
|
}
|