public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Joseph Myers <jsm28@sourceware.org>
To: glibc-cvs@sourceware.org
Subject: [glibc] Remove unused floating-point configuration from gmp-impl.h.
Date: Tue, 28 Apr 2020 15:05:25 +0000 (GMT)	[thread overview]
Message-ID: <20200428150525.820B8386F451@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=dbb188dd87ffdbf0ca3d9cd118ad4176439fb294

commit dbb188dd87ffdbf0ca3d9cd118ad4176439fb294
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Tue Apr 28 15:05:09 2020 +0000

    Remove unused floating-point configuration from gmp-impl.h.
    
    This patch removes the IEEE_DOUBLE_BIG_ENDIAN and
    IEEE_DOUBLE_MIXED_ENDIAN macros from gmp-impl.h and gmp-mparam.h, and
    the ieee_double_extract union from gmp-impl.h.  The macros were used
    only in defining the union, which was used nowhere in glibc.  As GMP's
    gmp-impl.h is over 5000 lines, the file in glibc is so far from the
    GMP version that it doesn't seem to make sense to keep things there
    that are not relevant in glibc.  (I expect there is plenty more in the
    header after this patch that is also not relevant in glibc and can be
    cleaned up later.)
    
    Tested with build-many-glibcs.py that installed stripped shared
    libraries are unchanged by this patch.

Diff:
---
 stdlib/gmp-impl.h               | 50 -----------------------------------------
 sysdeps/x86_64/x32/gmp-mparam.h |  2 --
 2 files changed, 52 deletions(-)

diff --git a/stdlib/gmp-impl.h b/stdlib/gmp-impl.h
index 25193e6726..0c6aa30a30 100644
--- a/stdlib/gmp-impl.h
+++ b/stdlib/gmp-impl.h
@@ -319,53 +319,3 @@ extern void impn_sqr_n_basecase _PROTO ((mp_ptr prodp, mp_srcptr up,
 extern void impn_sqr_n _PROTO ((mp_ptr prodp, mp_srcptr up, mp_size_t size,
 				mp_ptr tspace))
      attribute_hidden;
-
-
-
-#ifndef IEEE_DOUBLE_BIG_ENDIAN
-#define IEEE_DOUBLE_BIG_ENDIAN 1
-#endif
-
-#ifndef IEEE_DOUBLE_MIXED_ENDIAN
-#define IEEE_DOUBLE_MIXED_ENDIAN 0
-#endif
-
-#if IEEE_DOUBLE_MIXED_ENDIAN
-union ieee_double_extract
-{
-  struct
-    {
-      unsigned int manh:20;
-      unsigned int exp:11;
-      unsigned int sig:1;
-      unsigned int manl:32;
-    } s;
-  double d;
-};
-#else
-#if IEEE_DOUBLE_BIG_ENDIAN
-union ieee_double_extract
-{
-  struct
-    {
-      unsigned int sig:1;
-      unsigned int exp:11;
-      unsigned int manh:20;
-      unsigned int manl:32;
-    } s;
-  double d;
-};
-#else
-union ieee_double_extract
-{
-  struct
-    {
-      unsigned int manl:32;
-      unsigned int manh:20;
-      unsigned int exp:11;
-      unsigned int sig:1;
-    } s;
-  double d;
-};
-#endif
-#endif
diff --git a/sysdeps/x86_64/x32/gmp-mparam.h b/sysdeps/x86_64/x32/gmp-mparam.h
index f2d9782eb1..b0804d4f86 100644
--- a/sysdeps/x86_64/x32/gmp-mparam.h
+++ b/sysdeps/x86_64/x32/gmp-mparam.h
@@ -29,5 +29,3 @@ along with the GNU MP Library; see the file COPYING.LIB.  If not, see
 #define BITS_PER_INT 32
 #define BITS_PER_SHORTINT 16
 #define BITS_PER_CHAR 8
-
-#define IEEE_DOUBLE_BIG_ENDIAN 0


                 reply	other threads:[~2020-04-28 15:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200428150525.820B8386F451@sourceware.org \
    --to=jsm28@sourceware.org \
    --cc=glibc-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).