diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2016-02-29 20:29:40 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2016-02-29 20:29:40 +0000 |
commit | 5abadbf0f4b642f7f9c48d15a5f92276033050c2 (patch) | |
tree | 4ae5d5d47950549a9e02cfe7a2723a39215b5996 /src | |
parent | 3ad2c80ac2daef65b035ce450e16ce08c39c1e7d (diff) | |
download | mpfr-5abadbf0f4b642f7f9c48d15a5f92276033050c2.tar.gz |
reverted commit 10144 (wrongly applied to branch 3.1 instead of trunk)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@10149 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src')
-rw-r--r-- | src/mpfr-gmp.h | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/src/mpfr-gmp.h b/src/mpfr-gmp.h index 267375ebb..445b35338 100644 --- a/src/mpfr-gmp.h +++ b/src/mpfr-gmp.h @@ -405,69 +405,6 @@ typedef struct {mp_limb_t inv32;} mpfr_pi1_t; /* We changed gmp_pi1_t into } \ } while (0) -/* ieee_double_extract structure (copied from GMP 6.1.0, gmp-impl.h) */ - -/* Define ieee_double_extract and _GMP_IEEE_FLOATS. - - Bit field packing is "implementation defined" according to C99, which - leaves us at the compiler's mercy here. For some systems packing is - defined in the ABI (eg. x86). In any case so far it seems universal that - little endian systems pack from low to high, and big endian from high to - low within the given type. - - Within the fields we rely on the integer endianness being the same as the - float endianness, this is true everywhere we know of and it'd be a fairly - strange system that did anything else. */ - -#ifndef _GMP_IEEE_FLOATS - -#if HAVE_DOUBLE_IEEE_LITTLE_SWAPPED -#define _GMP_IEEE_FLOATS 1 -union ieee_double_extract -{ - struct - { - unsigned long manh:20; - unsigned long exp:11; - unsigned long sig:1; - unsigned long manl:32; - } s; - double d; -}; -#endif - -#if HAVE_DOUBLE_IEEE_LITTLE_ENDIAN -#define _GMP_IEEE_FLOATS 1 -union ieee_double_extract -{ - struct - { - unsigned long manl:32; - unsigned long manh:20; - unsigned long exp:11; - unsigned long sig:1; - } s; - double d; -}; -#endif - -#if HAVE_DOUBLE_IEEE_BIG_ENDIAN -#define _GMP_IEEE_FLOATS 1 -union ieee_double_extract -{ - struct - { - unsigned long sig:1; - unsigned long exp:11; - unsigned long manh:20; - unsigned long manl:32; - } s; - double d; -}; -#endif - -#endif /* _GMP_IEEE_FLOATS */ - #if defined (__cplusplus) } #endif |