Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys.

This commit is contained in:
Colin Finck 2017-10-03 07:45:34 +00:00
parent b94e2d8ca0
commit c2c66aff7d
24198 changed files with 0 additions and 37285 deletions

32
sdk/lib/crt/math/jn_yn.c Normal file
View file

@ -0,0 +1,32 @@
#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;
}