ReactOS 0.4.16-dev-329-g9223134
ieee754.h
Go to the documentation of this file.
1#pragma once
2
4typedef unsigned __int32 u_int32_t;
5
6typedef union
7{
8 double value;
9 struct
10 {
15
16#define EXTRACT_WORDS(ix0,ix1,d) \
17do { \
18 ieee_double_shape_type ew_u; \
19 ew_u.value = (d); \
20 (ix0) = ew_u.parts.msw; \
21 (ix1) = ew_u.parts.lsw; \
22} while (0)
23
24/* Get the more significant 32 bit int from a double. */
25
26#define GET_HIGH_WORD(i,d) \
27do { \
28 ieee_double_shape_type gh_u; \
29 gh_u.value = (d); \
30 (i) = gh_u.parts.msw; \
31} while (0)
32
33#define GET_LOW_WORD(i,d) \
34do { \
35 ieee_double_shape_type gl_u; \
36 gl_u.value = (d); \
37 (i) = gl_u.parts.lsw; \
38} while (0)
39
40static __inline double __ieee754_sqrt(double x) {return sqrt(x);}
41static __inline double __ieee754_log(double x) {return log(x);}
42static __inline double __cos(double x) {return cos(x);}
43static __inline void __sincos(double x, double *s, double *c)
44{
45 *s = sin(x);
46 *c = cos(x);
47}
48
49double __ieee754_j0(double);
50double __ieee754_j1(double);
51double __ieee754_jn(int, double);
52double __ieee754_y0(double);
53double __ieee754_y1(double);
54double __ieee754_yn(int, double);
std::map< E_STRING, PART_TEST > parts
Definition: LocaleTests.cpp:67
_STLP_DECLSPEC complex< float > _STLP_CALL cos(const complex< float > &)
_STLP_DECLSPEC complex< float > _STLP_CALL sin(const complex< float > &)
_STLP_DECLSPEC complex< float > _STLP_CALL sqrt(const complex< float > &)
Definition: complex.cpp:188
#define __int32
Definition: basetyps.h:19
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLdouble s
Definition: gl.h:2039
const GLubyte * c
Definition: glext.h:8905
double __ieee754_j0(double)
Definition: j0_y0.c:102
double __ieee754_y0(double)
Definition: j0_y0.c:179
double __ieee754_y1(double)
Definition: j1_y1.c:182
__int32 int32_t
Definition: ieee754.h:3
static __inline void __sincos(double x, double *s, double *c)
Definition: ieee754.h:43
static __inline double __cos(double x)
Definition: ieee754.h:42
double __ieee754_j1(double)
Definition: j1_y1.c:103
static __inline double __ieee754_log(double x)
Definition: ieee754.h:41
double __ieee754_yn(int, double)
Definition: jn_yn.c:227
unsigned __int32 u_int32_t
Definition: ieee754.h:4
static __inline double __ieee754_sqrt(double x)
Definition: ieee754.h:40
double __ieee754_jn(int, double)
Definition: jn_yn.c:64
unsigned int u_int32_t
Definition: rosdhcp.h:35
#define log(outFile, fmt,...)
Definition: util.h:15