ReactOS 0.4.16-dev-338-g34e76ad
isnan.c File Reference
#include <precomp.h>
Include dependency graph for isnan.c:

Go to the source code of this file.

Functions

int CDECL _isnan (double __x)
 
int CDECL _finite (double __x)
 

Function Documentation

◆ _finite()

int CDECL _finite ( double  __x)

Definition at line 43 of file isnan.c.

44{
45 union
46 {
47 double* __x;
48 double_s* x;
49 } x;
50
51 x.__x = &__x;
52
53 return ((x.x->exponent & 0x7ff) != 0x7ff);
54}
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
Definition: ieee.h:10

◆ _isnan()

int CDECL _isnan ( double  __x)

Definition at line 29 of file isnan.c.

30{
31 union
32 {
33 double* __x;
34 double_s* x;
35 } x;
36 x.__x = &__x;
37 return ( x.x->exponent == 0x7ff && ( x.x->mantissah != 0 || x.x->mantissal != 0 ));
38}