public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Paul E. Murphy <murphyp@sourceware.org>
To: glibc-cvs@sourceware.org
Subject: [glibc] float128: use builtin_signbitf128 always
Date: Mon,  4 May 2020 20:28:59 +0000 (GMT)	[thread overview]
Message-ID: <20200504202859.AA50538930D5@sourceware.org> (raw)

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

commit a49e56a945972186a829ca3ad7dec7fb9c923488
Author: Paul E. Murphy <murphyp@linux.vnet.ibm.com>
Date:   Tue Apr 7 16:20:35 2020 -0500

    float128: use builtin_signbitf128 always
    
    The minimum GCC version has been raised to 6.2 for building
    glibc.  Therefore, follow the advice inside the implementation
    and remove the GCC < 6 codepath.
    
    Likewise, remove the hidden_proto as all internal usages should
    inline now.

Diff:
---
 include/math.h                           |  1 -
 sysdeps/ieee754/float128/s_signbitf128.c | 19 +------------------
 2 files changed, 1 insertion(+), 19 deletions(-)

diff --git a/include/math.h b/include/math.h
index 3979c47400..e1c2a4eb64 100644
--- a/include/math.h
+++ b/include/math.h
@@ -29,7 +29,6 @@ hidden_proto (__isnanl)
 hidden_proto (__finitef128)
 hidden_proto (__isinff128)
 hidden_proto (__isnanf128)
-hidden_proto (__signbitf128)
 #  endif
 # endif
 
diff --git a/sysdeps/ieee754/float128/s_signbitf128.c b/sysdeps/ieee754/float128/s_signbitf128.c
index 1fc00658f8..c2a1097db6 100644
--- a/sysdeps/ieee754/float128/s_signbitf128.c
+++ b/sysdeps/ieee754/float128/s_signbitf128.c
@@ -17,21 +17,4 @@
    <https://www.gnu.org/licenses/>.  */
 
 #include <float128_private.h>
-#include <math.h>
-#include <math_private.h>
-
-/* Once GCC >= 6.0 is required for building glibc, this implementation can
-   be removed and replaced with an inclusion of ldbl-128/s_signbitl.c.  */
-int
-__signbitf128 (_Float128 x)
-{
-#if __GNUC_PREREQ (6, 0)
-  return __builtin_signbit (x);
-#else
-  int64_t e;
-
-  GET_FLOAT128_MSW64 (e, x);
-  return e < 0;
-#endif
-}
-hidden_def (__signbitf128)
+#include "../ldbl-128/s_signbitl.c"


                 reply	other threads:[~2020-05-04 20:28 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=20200504202859.AA50538930D5@sourceware.org \
    --to=murphyp@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).