equal
deleted
inserted
replaced
1 # HG changeset patch |
1 # HG changeset patch |
2 # User Wolfgang Rosenauer <wr@rosenauer.org> |
2 # User Wolfgang Rosenauer <wr@rosenauer.org> |
3 # Parent 5573047016750e02413781dac0ac4c2361946ed2 |
3 # Parent fa8a5832a374ccd7af5db927b992b5d9f15273ef |
4 |
4 |
5 diff --git a/modules/fdlibm/src/math_private.h b/modules/fdlibm/src/math_private.h |
5 diff --git a/modules/fdlibm/src/math_private.h b/modules/fdlibm/src/math_private.h |
6 --- a/modules/fdlibm/src/math_private.h |
6 --- a/modules/fdlibm/src/math_private.h |
7 +++ b/modules/fdlibm/src/math_private.h |
7 +++ b/modules/fdlibm/src/math_private.h |
8 @@ -25,19 +25,24 @@ |
8 @@ -25,19 +25,24 @@ |
21 typedef double __double_t; |
21 typedef double __double_t; |
22 +typedef float __float_t; |
22 +typedef float __float_t; |
23 +#endif |
23 +#endif |
24 typedef __double_t double_t; |
24 typedef __double_t double_t; |
25 -typedef float __float_t; |
25 -typedef float __float_t; |
26 typedef __float_t float_t; |
|
27 |
26 |
28 /* |
27 /* |
29 * The original fdlibm code used statements like: |
28 * The original fdlibm code used statements like: |
30 * n0 = ((*(int*)&one)>>29)^1; * index of high word * |
29 * n0 = ((*(int*)&one)>>29)^1; * index of high word * |
31 * ix0 = *(n0+(int*)&x); * high word of x * |
30 * ix0 = *(n0+(int*)&x); * high word of x * |
32 * ix1 = *((1-n0)+(int*)&x); * low word of x * |
31 * ix1 = *((1-n0)+(int*)&x); * low word of x * |
33 * to dig two 32 bit words out of the 64 bit IEEE floating point |
32 * to dig two 32 bit words out of the 64 bit IEEE floating point |
|
33 * value. That is non-ANSI, and, moreover, the gcc instruction |