ReactOS  0.4.15-dev-439-g292f67a
frexp.c
Go to the documentation of this file.
1 #include <math.h>
2 #include <stdlib.h>
3 #include <internal/ieee.h>
4 
5 /*
6  * @implemented
7  */
8 double
9 frexp(double __x, int *exptr)
10 {
11  union
12  {
13  double* __x;
14  double_s* x;
15  } x;
16 
17  x.__x = &__x;
18 
19  if ( exptr != NULL )
20  *exptr = x.x->exponent - 0x3FE;
21 
22 
23  x.x->exponent = 0x3FE;
24 
25  return __x;
26 }
27 
28 
29 
Definition: ieee.h:10
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
double frexp(double __x, int *exptr)
Definition: frexp.c:9
smooth NULL
Definition: ftsmooth.c:416