ReactOS 0.4.15-dev-7931-gfd331f1
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 */
8double
9frexp(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
#define NULL
Definition: types.h:112
double frexp(double __x, int *exptr)
Definition: frexp.c:9
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
Definition: ieee.h:10