ReactOS 0.4.16-dev-329-g9223134
j1_y1.c File Reference
#include <math.h>
#include <float.h>
#include "ieee754/ieee754.h"
Include dependency graph for j1_y1.c:

Go to the source code of this file.

Functions

int_errno (void)
 
double _j1 (double num)
 
double _y1 (double num)
 

Function Documentation

◆ _errno()

int * _errno ( void  )

Definition at line 17 of file errno.c.

18{
19 return &(msvcrt_get_thread_data()->thread_errno);
20}
thread_data_t * msvcrt_get_thread_data(void)
Definition: tls.c:31

Referenced by _j1(), and _y1().

◆ _j1()

double _j1 ( double  num)

Definition at line 10 of file j1_y1.c.

11{
12 if (!_finite(num)) *_errno() = EDOM;
13 return __ieee754_j1(num);
14}
#define EDOM
Definition: errno.h:39
GLuint GLuint num
Definition: glext.h:9618
double __ieee754_j1(double x)
Definition: j1_y1.c:103
_Check_return_ __MINGW_NOTHROW _CRTIMP int __cdecl _finite(_In_ double)
int * _errno(void)
Definition: errno.c:17

◆ _y1()

double _y1 ( double  num)

Definition at line 19 of file j1_y1.c.

20{
21 double retval;
22 int fpclass = _fpclass(num);
23
24 if (!_finite(num) || fpclass == _FPCLASS_NN ||
25 fpclass == _FPCLASS_ND || fpclass == _FPCLASS_NZ)
26 *_errno() = EDOM;
27
28 retval = __ieee754_y1(num);
29 if (_fpclass(retval) == _FPCLASS_NINF)
30 {
31 *_errno() = EDOM;
32 retval = sqrt(-1);
33 }
34 return retval;
35}
_STLP_DECLSPEC complex< float > _STLP_CALL sqrt(const complex< float > &)
Definition: complex.cpp:188
double __ieee754_y1(double)
Definition: j1_y1.c:182
_Check_return_ __MINGW_NOTHROW _CRTIMP int __cdecl _fpclass(_In_ double)
#define _FPCLASS_ND
Definition: float.h:76
#define _FPCLASS_NINF
Definition: float.h:74
#define _FPCLASS_NN
Definition: float.h:75
#define _FPCLASS_NZ
Definition: float.h:77