mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 16:43:04 +00:00
Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys.
This commit is contained in:
parent
b94e2d8ca0
commit
c2c66aff7d
24198 changed files with 0 additions and 37285 deletions
35
sdk/lib/crt/math/j1_y1.c
Normal file
35
sdk/lib/crt/math/j1_y1.c
Normal file
|
@ -0,0 +1,35 @@
|
|||
#include <math.h>
|
||||
#include <float.h>
|
||||
#include "ieee754/ieee754.h"
|
||||
|
||||
int *_errno(void);
|
||||
|
||||
/*
|
||||
* @unimplemented
|
||||
*/
|
||||
double _j1(double num)
|
||||
{
|
||||
if (!_finite(num)) *_errno() = EDOM;
|
||||
return __ieee754_j1(num);
|
||||
}
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
double _y1(double num)
|
||||
{
|
||||
double retval;
|
||||
int fpclass = _fpclass(num);
|
||||
|
||||
if (!_finite(num) || fpclass == _FPCLASS_NN ||
|
||||
fpclass == _FPCLASS_ND || fpclass == _FPCLASS_NZ)
|
||||
*_errno() = EDOM;
|
||||
|
||||
retval = __ieee754_y1(num);
|
||||
if (_fpclass(retval) == _FPCLASS_NINF)
|
||||
{
|
||||
*_errno() = EDOM;
|
||||
retval = sqrt(-1);
|
||||
}
|
||||
return retval;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue