]> sourceware.org Git - newlib-cygwin.git/blob - winsup/cygwin/math.h
Add missing long double functions to Cygwin
[newlib-cygwin.git] / winsup / cygwin / math.h
1 #ifndef _LOCAL_MATH_H_
2 #define _LOCAL_MATH_H_
3
4 /* This header is required to define the types used by some of the
5 mingw-w64 based files in the math subdir. */
6
7 typedef union __mingw_dbl_type_t {
8 double x;
9 unsigned long long val;
10 struct {
11 unsigned int low, high;
12 } lh;
13 } __mingw_dbl_type_t;
14
15 typedef union __mingw_flt_type_t {
16 float x;
17 unsigned int val;
18 } __mingw_flt_type_t;
19
20 typedef union __mingw_ldbl_type_t
21 {
22 long double x;
23 struct {
24 unsigned int low, high;
25 int sign_exponent : 16;
26 int res1 : 16;
27 int res0 : 32;
28 } lh;
29 } __mingw_ldbl_type_t;
30
31 typedef union __mingw_fp_types_t
32 {
33 long double *ld;
34 double *d;
35 float *f;
36 __mingw_ldbl_type_t *ldt;
37 __mingw_dbl_type_t *dt;
38 __mingw_flt_type_t *ft;
39 } __mingw_fp_types_t;
40
41 #include_next <math.h>
42
43 #endif /* _LOCAL_MATH_H_ */
This page took 0.035571 seconds and 5 git commands to generate.