mirror of
https://github.com/reactos/reactos.git
synced 2024-10-19 07:28:18 +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
36 lines
576 B
C
36 lines
576 B
C
#include <math.h>
|
|
#include <float.h>
|
|
#include "ieee754/ieee754.h"
|
|
|
|
int *_errno(void);
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
double _j0(double num)
|
|
{
|
|
if (!_finite(num)) *_errno() = EDOM;
|
|
return __ieee754_j0(num);
|
|
}
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
double _y0(double num)
|
|
{
|
|
double retval;
|
|
int fpclass = _fpclass(num);
|
|
|
|
if (!_finite(num) || fpclass == _FPCLASS_NN ||
|
|
fpclass == _FPCLASS_ND || fpclass == _FPCLASS_NZ)
|
|
*_errno() = EDOM;
|
|
|
|
retval = __ieee754_y0(num);
|
|
if (_fpclass(retval) == _FPCLASS_NINF)
|
|
{
|
|
*_errno() = EDOM;
|
|
retval = sqrt(-1);
|
|
}
|
|
return retval;
|
|
}
|