public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Adhemerval Zanella <azanella@sourceware.org>
To: glibc-cvs@sourceware.org
Subject: [glibc/azanella/clang] math: Handle internal fabsf128 alias on clang
Date: Fri,  3 Jun 2022 14:11:31 +0000 (GMT)	[thread overview]
Message-ID: <20220603141131.054403850851@sourceware.org> (raw)

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

commit aa82263a8a495f56a9d8e50a1bf98d6374d6a506
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Apr 5 15:51:40 2022 -0300

    math: Handle internal fabsf128 alias on clang

Diff:
---
 include/math.h                              | 4 +++-
 sysdeps/generic/math-type-macros.h          | 2 +-
 sysdeps/ieee754/float128/float128_private.h | 2 +-
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/include/math.h b/include/math.h
index fa11a710a6..6a9d1a678c 100644
--- a/include/math.h
+++ b/include/math.h
@@ -123,11 +123,13 @@ __isinff128 (_Float128 x)
 }
 #  endif
 
+#  ifdef __USE_EXTERN_INLINES
 extern inline _Float128
-fabsf128 (_Float128 x)
+__fabsf128 (_Float128 x)
 {
   return __builtin_fabsf128 (x);
 }
+#  endif
 # endif
 
 # if !(defined __FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
diff --git a/sysdeps/generic/math-type-macros.h b/sysdeps/generic/math-type-macros.h
index df5852524d..98cbb68118 100644
--- a/sysdeps/generic/math-type-macros.h
+++ b/sysdeps/generic/math-type-macros.h
@@ -109,7 +109,7 @@
 
 /* Helper macros for commonly used functions.  */
 #define M_COPYSIGN M_SUF (copysign)
-#define M_FABS M_SUF (fabs)
+#define M_FABS M_SUF (__fabs)
 #define M_SINCOS M_SUF (__sincos)
 #define M_SCALBN M_SUF (__scalbn)
 #define M_LOG1P M_SUF (__log1p)
diff --git a/sysdeps/ieee754/float128/float128_private.h b/sysdeps/ieee754/float128/float128_private.h
index f9655df0df..a74462575c 100644
--- a/sysdeps/ieee754/float128/float128_private.h
+++ b/sysdeps/ieee754/float128/float128_private.h
@@ -336,7 +336,7 @@
 #define erfl erff128
 #define expl expf128
 #define expm1l expm1f128
-#define fabsl fabsf128
+#define fabsl __fabsf128
 #define fdiml fdimf128
 #define finitel finitef128_do_not_use
 #define floorl floorf128


             reply	other threads:[~2022-06-03 14:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-03 14:11 Adhemerval Zanella [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-06-09 21:25 Adhemerval Zanella
2022-06-09 13:22 Adhemerval Zanella
2022-05-13 14:25 Adhemerval Zanella
2022-05-12 19:39 Adhemerval Zanella
2022-05-10 18:29 Adhemerval Zanella
2022-04-29 14:09 Adhemerval Zanella

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=20220603141131.054403850851@sourceware.org \
    --to=azanella@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).