public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/azanella/clang] math: Handle fabsf128 intra PLT for !__USE_EXTERN_INLINES
@ 2022-10-28 17:46 Adhemerval Zanella
  0 siblings, 0 replies; 11+ messages in thread
From: Adhemerval Zanella @ 2022-10-28 17:46 UTC (permalink / raw)
  To: glibc-cvs

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

commit 3a414aa7d329d5025ccf5bda0676ac4d88072174
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Aug 2 15:42:14 2022 -0300

    math: Handle fabsf128 intra PLT for !__USE_EXTERN_INLINES
    
    If compiler does not support __USE_EXTERN_INLINES we need to route
    fabsf128 call to an internal symbol.

Diff:
---
 include/math.h                        | 11 ++++++++---
 sysdeps/ieee754/float128/s_fabsf128.c |  3 +++
 2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/include/math.h b/include/math.h
index fa11a710a6..262c302728 100644
--- a/include/math.h
+++ b/include/math.h
@@ -109,9 +109,11 @@ __issignalingf (float x)
 
 # if __HAVE_DISTINCT_FLOAT128
 
+#  ifdef __USE_EXTERN_INLINES
+
 /* __builtin_isinf_sign is broken in GCC < 7 for float128.  */
-#  if ! __GNUC_PREREQ (7, 0)
-#   include <ieee754_float128.h>
+#   if ! __GNUC_PREREQ (7, 0)
+#    include <ieee754_float128.h>
 extern inline int
 __isinff128 (_Float128 x)
 {
@@ -121,13 +123,16 @@ __isinff128 (_Float128 x)
   lx |= -lx;
   return ~(lx >> 63) & (hx >> 62);
 }
-#  endif
+#   endif
 
 extern inline _Float128
 fabsf128 (_Float128 x)
 {
   return __builtin_fabsf128 (x);
 }
+#  else
+libm_hidden_proto (fabsf128)
+#  endif
 # endif
 
 # if !(defined __FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
diff --git a/sysdeps/ieee754/float128/s_fabsf128.c b/sysdeps/ieee754/float128/s_fabsf128.c
index 79ba47c3fd..d877b0214f 100644
--- a/sysdeps/ieee754/float128/s_fabsf128.c
+++ b/sysdeps/ieee754/float128/s_fabsf128.c
@@ -1,2 +1,5 @@
 #include <float128_private.h>
 #include "../ldbl-128/s_fabsl.c"
+#ifndef __USE_EXTERN_INLINES
+libm_hidden_def (fabsf128)
+#endif

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [glibc/azanella/clang] math: Handle fabsf128 intra PLT for !__USE_EXTERN_INLINES
@ 2024-04-17 20:12 Adhemerval Zanella
  0 siblings, 0 replies; 11+ messages in thread
From: Adhemerval Zanella @ 2024-04-17 20:12 UTC (permalink / raw)
  To: glibc-cvs

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

commit d303ad47743b2710de6186ed68937e918d7f6270
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Aug 2 15:42:14 2022 -0300

    math: Handle fabsf128 intra PLT for !__USE_EXTERN_INLINES
    
    If compiler does not support __USE_EXTERN_INLINES we need to route
    fabsf128 call to an internal symbol.

Diff:
---
 include/math.h                        | 11 ++++++++---
 sysdeps/ieee754/float128/s_fabsf128.c |  3 +++
 2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/include/math.h b/include/math.h
index fa11a710a6..262c302728 100644
--- a/include/math.h
+++ b/include/math.h
@@ -109,9 +109,11 @@ __issignalingf (float x)
 
 # if __HAVE_DISTINCT_FLOAT128
 
+#  ifdef __USE_EXTERN_INLINES
+
 /* __builtin_isinf_sign is broken in GCC < 7 for float128.  */
-#  if ! __GNUC_PREREQ (7, 0)
-#   include <ieee754_float128.h>
+#   if ! __GNUC_PREREQ (7, 0)
+#    include <ieee754_float128.h>
 extern inline int
 __isinff128 (_Float128 x)
 {
@@ -121,13 +123,16 @@ __isinff128 (_Float128 x)
   lx |= -lx;
   return ~(lx >> 63) & (hx >> 62);
 }
-#  endif
+#   endif
 
 extern inline _Float128
 fabsf128 (_Float128 x)
 {
   return __builtin_fabsf128 (x);
 }
+#  else
+libm_hidden_proto (fabsf128)
+#  endif
 # endif
 
 # if !(defined __FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
diff --git a/sysdeps/ieee754/float128/s_fabsf128.c b/sysdeps/ieee754/float128/s_fabsf128.c
index 79ba47c3fd..d877b0214f 100644
--- a/sysdeps/ieee754/float128/s_fabsf128.c
+++ b/sysdeps/ieee754/float128/s_fabsf128.c
@@ -1,2 +1,5 @@
 #include <float128_private.h>
 #include "../ldbl-128/s_fabsl.c"
+#ifndef __USE_EXTERN_INLINES
+libm_hidden_def (fabsf128)
+#endif

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [glibc/azanella/clang] math: Handle fabsf128 intra PLT for !__USE_EXTERN_INLINES
@ 2024-04-02 15:58 Adhemerval Zanella
  0 siblings, 0 replies; 11+ messages in thread
From: Adhemerval Zanella @ 2024-04-02 15:58 UTC (permalink / raw)
  To: glibc-cvs

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

commit d2b569bb680ee7d4b940aae2a7eba4cba1dc5edf
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Aug 2 15:42:14 2022 -0300

    math: Handle fabsf128 intra PLT for !__USE_EXTERN_INLINES
    
    If compiler does not support __USE_EXTERN_INLINES we need to route
    fabsf128 call to an internal symbol.

Diff:
---
 include/math.h                        | 11 ++++++++---
 sysdeps/ieee754/float128/s_fabsf128.c |  3 +++
 2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/include/math.h b/include/math.h
index fa11a710a6..262c302728 100644
--- a/include/math.h
+++ b/include/math.h
@@ -109,9 +109,11 @@ __issignalingf (float x)
 
 # if __HAVE_DISTINCT_FLOAT128
 
+#  ifdef __USE_EXTERN_INLINES
+
 /* __builtin_isinf_sign is broken in GCC < 7 for float128.  */
-#  if ! __GNUC_PREREQ (7, 0)
-#   include <ieee754_float128.h>
+#   if ! __GNUC_PREREQ (7, 0)
+#    include <ieee754_float128.h>
 extern inline int
 __isinff128 (_Float128 x)
 {
@@ -121,13 +123,16 @@ __isinff128 (_Float128 x)
   lx |= -lx;
   return ~(lx >> 63) & (hx >> 62);
 }
-#  endif
+#   endif
 
 extern inline _Float128
 fabsf128 (_Float128 x)
 {
   return __builtin_fabsf128 (x);
 }
+#  else
+libm_hidden_proto (fabsf128)
+#  endif
 # endif
 
 # if !(defined __FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
diff --git a/sysdeps/ieee754/float128/s_fabsf128.c b/sysdeps/ieee754/float128/s_fabsf128.c
index 79ba47c3fd..d877b0214f 100644
--- a/sysdeps/ieee754/float128/s_fabsf128.c
+++ b/sysdeps/ieee754/float128/s_fabsf128.c
@@ -1,2 +1,5 @@
 #include <float128_private.h>
 #include "../ldbl-128/s_fabsl.c"
+#ifndef __USE_EXTERN_INLINES
+libm_hidden_def (fabsf128)
+#endif

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [glibc/azanella/clang] math: Handle fabsf128 intra PLT for !__USE_EXTERN_INLINES
@ 2024-02-09 17:37 Adhemerval Zanella
  0 siblings, 0 replies; 11+ messages in thread
From: Adhemerval Zanella @ 2024-02-09 17:37 UTC (permalink / raw)
  To: glibc-cvs

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

commit af7dd132ec4be56c61c802edd80c5d31fbbca270
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Aug 2 15:42:14 2022 -0300

    math: Handle fabsf128 intra PLT for !__USE_EXTERN_INLINES
    
    If compiler does not support __USE_EXTERN_INLINES we need to route
    fabsf128 call to an internal symbol.

Diff:
---
 include/math.h                        | 11 ++++++++---
 sysdeps/ieee754/float128/s_fabsf128.c |  3 +++
 2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/include/math.h b/include/math.h
index fa11a710a6..262c302728 100644
--- a/include/math.h
+++ b/include/math.h
@@ -109,9 +109,11 @@ __issignalingf (float x)
 
 # if __HAVE_DISTINCT_FLOAT128
 
+#  ifdef __USE_EXTERN_INLINES
+
 /* __builtin_isinf_sign is broken in GCC < 7 for float128.  */
-#  if ! __GNUC_PREREQ (7, 0)
-#   include <ieee754_float128.h>
+#   if ! __GNUC_PREREQ (7, 0)
+#    include <ieee754_float128.h>
 extern inline int
 __isinff128 (_Float128 x)
 {
@@ -121,13 +123,16 @@ __isinff128 (_Float128 x)
   lx |= -lx;
   return ~(lx >> 63) & (hx >> 62);
 }
-#  endif
+#   endif
 
 extern inline _Float128
 fabsf128 (_Float128 x)
 {
   return __builtin_fabsf128 (x);
 }
+#  else
+libm_hidden_proto (fabsf128)
+#  endif
 # endif
 
 # if !(defined __FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
diff --git a/sysdeps/ieee754/float128/s_fabsf128.c b/sysdeps/ieee754/float128/s_fabsf128.c
index 79ba47c3fd..d877b0214f 100644
--- a/sysdeps/ieee754/float128/s_fabsf128.c
+++ b/sysdeps/ieee754/float128/s_fabsf128.c
@@ -1,2 +1,5 @@
 #include <float128_private.h>
 #include "../ldbl-128/s_fabsl.c"
+#ifndef __USE_EXTERN_INLINES
+libm_hidden_def (fabsf128)
+#endif

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [glibc/azanella/clang] math: Handle fabsf128 intra PLT for !__USE_EXTERN_INLINES
@ 2024-02-07 14:12 Adhemerval Zanella
  0 siblings, 0 replies; 11+ messages in thread
From: Adhemerval Zanella @ 2024-02-07 14:12 UTC (permalink / raw)
  To: glibc-cvs

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

commit 4476f506ed0709bdc145b8c0843315efe51b2653
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Aug 2 15:42:14 2022 -0300

    math: Handle fabsf128 intra PLT for !__USE_EXTERN_INLINES
    
    If compiler does not support __USE_EXTERN_INLINES we need to route
    fabsf128 call to an internal symbol.

Diff:
---
 include/math.h                        | 11 ++++++++---
 sysdeps/ieee754/float128/s_fabsf128.c |  3 +++
 2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/include/math.h b/include/math.h
index fa11a710a6..262c302728 100644
--- a/include/math.h
+++ b/include/math.h
@@ -109,9 +109,11 @@ __issignalingf (float x)
 
 # if __HAVE_DISTINCT_FLOAT128
 
+#  ifdef __USE_EXTERN_INLINES
+
 /* __builtin_isinf_sign is broken in GCC < 7 for float128.  */
-#  if ! __GNUC_PREREQ (7, 0)
-#   include <ieee754_float128.h>
+#   if ! __GNUC_PREREQ (7, 0)
+#    include <ieee754_float128.h>
 extern inline int
 __isinff128 (_Float128 x)
 {
@@ -121,13 +123,16 @@ __isinff128 (_Float128 x)
   lx |= -lx;
   return ~(lx >> 63) & (hx >> 62);
 }
-#  endif
+#   endif
 
 extern inline _Float128
 fabsf128 (_Float128 x)
 {
   return __builtin_fabsf128 (x);
 }
+#  else
+libm_hidden_proto (fabsf128)
+#  endif
 # endif
 
 # if !(defined __FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
diff --git a/sysdeps/ieee754/float128/s_fabsf128.c b/sysdeps/ieee754/float128/s_fabsf128.c
index 79ba47c3fd..d877b0214f 100644
--- a/sysdeps/ieee754/float128/s_fabsf128.c
+++ b/sysdeps/ieee754/float128/s_fabsf128.c
@@ -1,2 +1,5 @@
 #include <float128_private.h>
 #include "../ldbl-128/s_fabsl.c"
+#ifndef __USE_EXTERN_INLINES
+libm_hidden_def (fabsf128)
+#endif

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [glibc/azanella/clang] math: Handle fabsf128 intra PLT for !__USE_EXTERN_INLINES
@ 2024-01-29 18:02 Adhemerval Zanella
  0 siblings, 0 replies; 11+ messages in thread
From: Adhemerval Zanella @ 2024-01-29 18:02 UTC (permalink / raw)
  To: glibc-cvs

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

commit 55e0e61adbf8c35d9717ed9e1bb9a586d74f3169
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Aug 2 15:42:14 2022 -0300

    math: Handle fabsf128 intra PLT for !__USE_EXTERN_INLINES
    
    If compiler does not support __USE_EXTERN_INLINES we need to route
    fabsf128 call to an internal symbol.

Diff:
---
 include/math.h                        | 11 ++++++++---
 sysdeps/ieee754/float128/s_fabsf128.c |  3 +++
 2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/include/math.h b/include/math.h
index fa11a710a6..262c302728 100644
--- a/include/math.h
+++ b/include/math.h
@@ -109,9 +109,11 @@ __issignalingf (float x)
 
 # if __HAVE_DISTINCT_FLOAT128
 
+#  ifdef __USE_EXTERN_INLINES
+
 /* __builtin_isinf_sign is broken in GCC < 7 for float128.  */
-#  if ! __GNUC_PREREQ (7, 0)
-#   include <ieee754_float128.h>
+#   if ! __GNUC_PREREQ (7, 0)
+#    include <ieee754_float128.h>
 extern inline int
 __isinff128 (_Float128 x)
 {
@@ -121,13 +123,16 @@ __isinff128 (_Float128 x)
   lx |= -lx;
   return ~(lx >> 63) & (hx >> 62);
 }
-#  endif
+#   endif
 
 extern inline _Float128
 fabsf128 (_Float128 x)
 {
   return __builtin_fabsf128 (x);
 }
+#  else
+libm_hidden_proto (fabsf128)
+#  endif
 # endif
 
 # if !(defined __FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
diff --git a/sysdeps/ieee754/float128/s_fabsf128.c b/sysdeps/ieee754/float128/s_fabsf128.c
index 79ba47c3fd..d877b0214f 100644
--- a/sysdeps/ieee754/float128/s_fabsf128.c
+++ b/sysdeps/ieee754/float128/s_fabsf128.c
@@ -1,2 +1,5 @@
 #include <float128_private.h>
 #include "../ldbl-128/s_fabsl.c"
+#ifndef __USE_EXTERN_INLINES
+libm_hidden_def (fabsf128)
+#endif

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [glibc/azanella/clang] math: Handle fabsf128 intra PLT for !__USE_EXTERN_INLINES
@ 2023-12-21 18:59 Adhemerval Zanella
  0 siblings, 0 replies; 11+ messages in thread
From: Adhemerval Zanella @ 2023-12-21 18:59 UTC (permalink / raw)
  To: glibc-cvs

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

commit 0078f3266a236126dcb3ce6a4bf7c78f7bb12d86
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Aug 2 15:42:14 2022 -0300

    math: Handle fabsf128 intra PLT for !__USE_EXTERN_INLINES
    
    If compiler does not support __USE_EXTERN_INLINES we need to route
    fabsf128 call to an internal symbol.

Diff:
---
 include/math.h                        | 11 ++++++++---
 sysdeps/ieee754/float128/s_fabsf128.c |  3 +++
 2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/include/math.h b/include/math.h
index fa11a710a6..262c302728 100644
--- a/include/math.h
+++ b/include/math.h
@@ -109,9 +109,11 @@ __issignalingf (float x)
 
 # if __HAVE_DISTINCT_FLOAT128
 
+#  ifdef __USE_EXTERN_INLINES
+
 /* __builtin_isinf_sign is broken in GCC < 7 for float128.  */
-#  if ! __GNUC_PREREQ (7, 0)
-#   include <ieee754_float128.h>
+#   if ! __GNUC_PREREQ (7, 0)
+#    include <ieee754_float128.h>
 extern inline int
 __isinff128 (_Float128 x)
 {
@@ -121,13 +123,16 @@ __isinff128 (_Float128 x)
   lx |= -lx;
   return ~(lx >> 63) & (hx >> 62);
 }
-#  endif
+#   endif
 
 extern inline _Float128
 fabsf128 (_Float128 x)
 {
   return __builtin_fabsf128 (x);
 }
+#  else
+libm_hidden_proto (fabsf128)
+#  endif
 # endif
 
 # if !(defined __FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
diff --git a/sysdeps/ieee754/float128/s_fabsf128.c b/sysdeps/ieee754/float128/s_fabsf128.c
index 79ba47c3fd..d877b0214f 100644
--- a/sysdeps/ieee754/float128/s_fabsf128.c
+++ b/sysdeps/ieee754/float128/s_fabsf128.c
@@ -1,2 +1,5 @@
 #include <float128_private.h>
 #include "../ldbl-128/s_fabsl.c"
+#ifndef __USE_EXTERN_INLINES
+libm_hidden_def (fabsf128)
+#endif

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [glibc/azanella/clang] math: Handle fabsf128 intra PLT for !__USE_EXTERN_INLINES
@ 2023-09-28 17:57 Adhemerval Zanella
  0 siblings, 0 replies; 11+ messages in thread
From: Adhemerval Zanella @ 2023-09-28 17:57 UTC (permalink / raw)
  To: glibc-cvs

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

commit b3051b4f40d39229f73136cf002ff5d1b3f34f03
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Aug 2 15:42:14 2022 -0300

    math: Handle fabsf128 intra PLT for !__USE_EXTERN_INLINES
    
    If compiler does not support __USE_EXTERN_INLINES we need to route
    fabsf128 call to an internal symbol.

Diff:
---
 include/math.h                        | 11 ++++++++---
 sysdeps/ieee754/float128/s_fabsf128.c |  3 +++
 2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/include/math.h b/include/math.h
index fa11a710a6..262c302728 100644
--- a/include/math.h
+++ b/include/math.h
@@ -109,9 +109,11 @@ __issignalingf (float x)
 
 # if __HAVE_DISTINCT_FLOAT128
 
+#  ifdef __USE_EXTERN_INLINES
+
 /* __builtin_isinf_sign is broken in GCC < 7 for float128.  */
-#  if ! __GNUC_PREREQ (7, 0)
-#   include <ieee754_float128.h>
+#   if ! __GNUC_PREREQ (7, 0)
+#    include <ieee754_float128.h>
 extern inline int
 __isinff128 (_Float128 x)
 {
@@ -121,13 +123,16 @@ __isinff128 (_Float128 x)
   lx |= -lx;
   return ~(lx >> 63) & (hx >> 62);
 }
-#  endif
+#   endif
 
 extern inline _Float128
 fabsf128 (_Float128 x)
 {
   return __builtin_fabsf128 (x);
 }
+#  else
+libm_hidden_proto (fabsf128)
+#  endif
 # endif
 
 # if !(defined __FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
diff --git a/sysdeps/ieee754/float128/s_fabsf128.c b/sysdeps/ieee754/float128/s_fabsf128.c
index 79ba47c3fd..d877b0214f 100644
--- a/sysdeps/ieee754/float128/s_fabsf128.c
+++ b/sysdeps/ieee754/float128/s_fabsf128.c
@@ -1,2 +1,5 @@
 #include <float128_private.h>
 #include "../ldbl-128/s_fabsl.c"
+#ifndef __USE_EXTERN_INLINES
+libm_hidden_def (fabsf128)
+#endif

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [glibc/azanella/clang] math: Handle fabsf128 intra PLT for !__USE_EXTERN_INLINES
@ 2023-08-30 12:41 Adhemerval Zanella
  0 siblings, 0 replies; 11+ messages in thread
From: Adhemerval Zanella @ 2023-08-30 12:41 UTC (permalink / raw)
  To: glibc-cvs

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

commit a2ce0d3ca724249df74c2f715f58b4ac738b2655
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Aug 2 15:42:14 2022 -0300

    math: Handle fabsf128 intra PLT for !__USE_EXTERN_INLINES
    
    If compiler does not support __USE_EXTERN_INLINES we need to route
    fabsf128 call to an internal symbol.

Diff:
---
 include/math.h                        | 11 ++++++++---
 sysdeps/ieee754/float128/s_fabsf128.c |  3 +++
 2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/include/math.h b/include/math.h
index fa11a710a6..262c302728 100644
--- a/include/math.h
+++ b/include/math.h
@@ -109,9 +109,11 @@ __issignalingf (float x)
 
 # if __HAVE_DISTINCT_FLOAT128
 
+#  ifdef __USE_EXTERN_INLINES
+
 /* __builtin_isinf_sign is broken in GCC < 7 for float128.  */
-#  if ! __GNUC_PREREQ (7, 0)
-#   include <ieee754_float128.h>
+#   if ! __GNUC_PREREQ (7, 0)
+#    include <ieee754_float128.h>
 extern inline int
 __isinff128 (_Float128 x)
 {
@@ -121,13 +123,16 @@ __isinff128 (_Float128 x)
   lx |= -lx;
   return ~(lx >> 63) & (hx >> 62);
 }
-#  endif
+#   endif
 
 extern inline _Float128
 fabsf128 (_Float128 x)
 {
   return __builtin_fabsf128 (x);
 }
+#  else
+libm_hidden_proto (fabsf128)
+#  endif
 # endif
 
 # if !(defined __FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
diff --git a/sysdeps/ieee754/float128/s_fabsf128.c b/sysdeps/ieee754/float128/s_fabsf128.c
index 79ba47c3fd..d877b0214f 100644
--- a/sysdeps/ieee754/float128/s_fabsf128.c
+++ b/sysdeps/ieee754/float128/s_fabsf128.c
@@ -1,2 +1,5 @@
 #include <float128_private.h>
 #include "../ldbl-128/s_fabsl.c"
+#ifndef __USE_EXTERN_INLINES
+libm_hidden_def (fabsf128)
+#endif

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [glibc/azanella/clang] math: Handle fabsf128 intra PLT for !__USE_EXTERN_INLINES
@ 2023-02-09 19:53 Adhemerval Zanella
  0 siblings, 0 replies; 11+ messages in thread
From: Adhemerval Zanella @ 2023-02-09 19:53 UTC (permalink / raw)
  To: glibc-cvs

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

commit 106f8e63b7a1d69e237bfb585c190f443dae39aa
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Aug 2 15:42:14 2022 -0300

    math: Handle fabsf128 intra PLT for !__USE_EXTERN_INLINES
    
    If compiler does not support __USE_EXTERN_INLINES we need to route
    fabsf128 call to an internal symbol.

Diff:
---
 include/math.h                        | 11 ++++++++---
 sysdeps/ieee754/float128/s_fabsf128.c |  3 +++
 2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/include/math.h b/include/math.h
index fa11a710a6..262c302728 100644
--- a/include/math.h
+++ b/include/math.h
@@ -109,9 +109,11 @@ __issignalingf (float x)
 
 # if __HAVE_DISTINCT_FLOAT128
 
+#  ifdef __USE_EXTERN_INLINES
+
 /* __builtin_isinf_sign is broken in GCC < 7 for float128.  */
-#  if ! __GNUC_PREREQ (7, 0)
-#   include <ieee754_float128.h>
+#   if ! __GNUC_PREREQ (7, 0)
+#    include <ieee754_float128.h>
 extern inline int
 __isinff128 (_Float128 x)
 {
@@ -121,13 +123,16 @@ __isinff128 (_Float128 x)
   lx |= -lx;
   return ~(lx >> 63) & (hx >> 62);
 }
-#  endif
+#   endif
 
 extern inline _Float128
 fabsf128 (_Float128 x)
 {
   return __builtin_fabsf128 (x);
 }
+#  else
+libm_hidden_proto (fabsf128)
+#  endif
 # endif
 
 # if !(defined __FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
diff --git a/sysdeps/ieee754/float128/s_fabsf128.c b/sysdeps/ieee754/float128/s_fabsf128.c
index 79ba47c3fd..d877b0214f 100644
--- a/sysdeps/ieee754/float128/s_fabsf128.c
+++ b/sysdeps/ieee754/float128/s_fabsf128.c
@@ -1,2 +1,5 @@
 #include <float128_private.h>
 #include "../ldbl-128/s_fabsl.c"
+#ifndef __USE_EXTERN_INLINES
+libm_hidden_def (fabsf128)
+#endif

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [glibc/azanella/clang] math: Handle fabsf128 intra PLT for !__USE_EXTERN_INLINES
@ 2022-10-04 13:04 Adhemerval Zanella
  0 siblings, 0 replies; 11+ messages in thread
From: Adhemerval Zanella @ 2022-10-04 13:04 UTC (permalink / raw)
  To: glibc-cvs

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

commit 3dd5f9baab71dd8271f2d9f5817da0d526e88e3a
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Aug 2 15:42:14 2022 -0300

    math: Handle fabsf128 intra PLT for !__USE_EXTERN_INLINES
    
    If compiler does not support __USE_EXTERN_INLINES we need to route
    fabsf128 call to an internal symbol.

Diff:
---
 include/math.h                        | 11 ++++++++---
 sysdeps/ieee754/float128/s_fabsf128.c |  3 +++
 2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/include/math.h b/include/math.h
index fa11a710a6..262c302728 100644
--- a/include/math.h
+++ b/include/math.h
@@ -109,9 +109,11 @@ __issignalingf (float x)
 
 # if __HAVE_DISTINCT_FLOAT128
 
+#  ifdef __USE_EXTERN_INLINES
+
 /* __builtin_isinf_sign is broken in GCC < 7 for float128.  */
-#  if ! __GNUC_PREREQ (7, 0)
-#   include <ieee754_float128.h>
+#   if ! __GNUC_PREREQ (7, 0)
+#    include <ieee754_float128.h>
 extern inline int
 __isinff128 (_Float128 x)
 {
@@ -121,13 +123,16 @@ __isinff128 (_Float128 x)
   lx |= -lx;
   return ~(lx >> 63) & (hx >> 62);
 }
-#  endif
+#   endif
 
 extern inline _Float128
 fabsf128 (_Float128 x)
 {
   return __builtin_fabsf128 (x);
 }
+#  else
+libm_hidden_proto (fabsf128)
+#  endif
 # endif
 
 # if !(defined __FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
diff --git a/sysdeps/ieee754/float128/s_fabsf128.c b/sysdeps/ieee754/float128/s_fabsf128.c
index 79ba47c3fd..d877b0214f 100644
--- a/sysdeps/ieee754/float128/s_fabsf128.c
+++ b/sysdeps/ieee754/float128/s_fabsf128.c
@@ -1,2 +1,5 @@
 #include <float128_private.h>
 #include "../ldbl-128/s_fabsl.c"
+#ifndef __USE_EXTERN_INLINES
+libm_hidden_def (fabsf128)
+#endif

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-04-17 20:12 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-28 17:46 [glibc/azanella/clang] math: Handle fabsf128 intra PLT for !__USE_EXTERN_INLINES Adhemerval Zanella
  -- strict thread matches above, loose matches on Subject: below --
2024-04-17 20:12 Adhemerval Zanella
2024-04-02 15:58 Adhemerval Zanella
2024-02-09 17:37 Adhemerval Zanella
2024-02-07 14:12 Adhemerval Zanella
2024-01-29 18:02 Adhemerval Zanella
2023-12-21 18:59 Adhemerval Zanella
2023-09-28 17:57 Adhemerval Zanella
2023-08-30 12:41 Adhemerval Zanella
2023-02-09 19:53 Adhemerval Zanella
2022-10-04 13:04 Adhemerval Zanella

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).