Skip to content

Commit

Permalink
Move __isnanf128 to libc.so
Browse files Browse the repository at this point in the history
All of the isnan functions are in libc.so due to printf_fp, so move
__isnanf128 there too for consistency.
  • Loading branch information
siddhesh authored and tuliom committed Mar 29, 2021
1 parent 64786a7 commit cb3b605
Show file tree
Hide file tree
Showing 18 changed files with 39 additions and 7 deletions.
1 change: 1 addition & 0 deletions sysdeps/ia64/float128-abi.h
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/* ABI version for _Float128 ABI introduction. */
#define FLOAT128_VERSION GLIBC_2.26
#define FLOAT128_VERSION_M GLIBC_2_26
5 changes: 4 additions & 1 deletion sysdeps/ieee754/float128/Versions
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@
%endif
libc {
FLOAT128_VERSION {
__isnanf128;
__strtof128_internal;
__wcstof128_internal;
}
GLIBC_2.34 {
__isnanf128;
}
GLIBC_PRIVATE {
# For __nanf128.
__strtof128_nan;
Expand All @@ -30,7 +34,6 @@ libm {
__hypotf128_finite;
__iseqsigf128;
__isinff128;
__isnanf128;
__issignalingf128;
__j0f128_finite;
__j1f128_finite;
Expand Down
19 changes: 19 additions & 0 deletions sysdeps/ieee754/float128/s_isnanf128.c
Original file line number Diff line number Diff line change
@@ -1,2 +1,21 @@
#include <shlib-compat.h>
#include <float128_private.h>
#if !IS_IN (libm)
#undef __isnanl
#define __isnanl __isnanf128_impl
#undef weak_alias
#define weak_alias(n,a)
#undef mathx_hidden_def
#define mathx_hidden_def(x)
#endif
#include "../ldbl-128/s_isnanl.c"
#if !IS_IN (libm)
#include <float128-abi.h>
hidden_ver (__isnanf128_impl, __isnanf128)
_weak_alias (__isnanf128_impl, isnanl)
versioned_symbol (libc, __isnanf128_impl, __isnanf128, GLIBC_2_34);
#if (SHLIB_COMPAT (libc, FLOAT128_VERSION_M, GLIBC_2_34))
strong_alias (__isnanf128_impl, __isnanf128_alias)
compat_symbol (libc, __isnanf128_alias, __isnanf128, FLOAT128_VERSION_M);
#endif
#endif
1 change: 1 addition & 0 deletions sysdeps/ieee754/ldbl-128/float128-abi.h
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/* ABI version for _Float128 ABI introduction. */
#define FLOAT128_VERSION GLIBC_2.27
#define FLOAT128_VERSION_M GLIBC_2_27
2 changes: 2 additions & 0 deletions sysdeps/mach/hurd/i386/libc.abilist
Original file line number Diff line number Diff line change
Expand Up @@ -1995,6 +1995,7 @@ GLIBC_2.25 gnu_dev_minor F
GLIBC_2.25 strfromd F
GLIBC_2.25 strfromf F
GLIBC_2.25 strfroml F
GLIBC_2.26 __isnanf128 F
GLIBC_2.26 __strtof128_internal F
GLIBC_2.26 __wcstof128_internal F
GLIBC_2.26 _hurd_exec_paths F
Expand Down Expand Up @@ -2203,6 +2204,7 @@ GLIBC_2.33 mknod F
GLIBC_2.33 mknodat F
GLIBC_2.33 stat F
GLIBC_2.33 stat64 F
GLIBC_2.34 __isnanf128 F
GLIBC_2.34 __libc_start_main F
GLIBC_2.4 __confstr_chk F
GLIBC_2.4 __fgets_chk F
Expand Down
1 change: 0 additions & 1 deletion sysdeps/mach/hurd/i386/libm.abilist
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,6 @@ GLIBC_2.26 __gammaf128_r_finite F
GLIBC_2.26 __hypotf128_finite F
GLIBC_2.26 __iseqsigf128 F
GLIBC_2.26 __isinff128 F
GLIBC_2.26 __isnanf128 F
GLIBC_2.26 __issignalingf128 F
GLIBC_2.26 __j0f128_finite F
GLIBC_2.26 __j1f128_finite F
Expand Down
2 changes: 2 additions & 0 deletions sysdeps/unix/sysv/linux/i386/libc.abilist
Original file line number Diff line number Diff line change
Expand Up @@ -2011,6 +2011,7 @@ GLIBC_2.25 getrandom F
GLIBC_2.25 strfromd F
GLIBC_2.25 strfromf F
GLIBC_2.25 strfroml F
GLIBC_2.26 __isnanf128 F
GLIBC_2.26 __strtof128_internal F
GLIBC_2.26 __wcstof128_internal F
GLIBC_2.26 preadv2 F
Expand Down Expand Up @@ -2250,6 +2251,7 @@ GLIBC_2.33 mknod F
GLIBC_2.33 mknodat F
GLIBC_2.33 stat F
GLIBC_2.33 stat64 F
GLIBC_2.34 __isnanf128 F
GLIBC_2.34 __libc_start_main F
GLIBC_2.34 pthread_kill F
GLIBC_2.4 __confstr_chk F
Expand Down
1 change: 0 additions & 1 deletion sysdeps/unix/sysv/linux/i386/libm.abilist
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,6 @@ GLIBC_2.26 __gammaf128_r_finite F
GLIBC_2.26 __hypotf128_finite F
GLIBC_2.26 __iseqsigf128 F
GLIBC_2.26 __isinff128 F
GLIBC_2.26 __isnanf128 F
GLIBC_2.26 __issignalingf128 F
GLIBC_2.26 __j0f128_finite F
GLIBC_2.26 __j1f128_finite F
Expand Down
2 changes: 2 additions & 0 deletions sysdeps/unix/sysv/linux/ia64/libc.abilist
Original file line number Diff line number Diff line change
Expand Up @@ -1873,6 +1873,7 @@ GLIBC_2.25 getrandom F
GLIBC_2.25 strfromd F
GLIBC_2.25 strfromf F
GLIBC_2.25 strfroml F
GLIBC_2.26 __isnanf128 F
GLIBC_2.26 __strtof128_internal F
GLIBC_2.26 __wcstof128_internal F
GLIBC_2.26 preadv2 F
Expand Down Expand Up @@ -2107,6 +2108,7 @@ GLIBC_2.33 mknod F
GLIBC_2.33 mknodat F
GLIBC_2.33 stat F
GLIBC_2.33 stat64 F
GLIBC_2.34 __isnanf128 F
GLIBC_2.34 __libc_start_main F
GLIBC_2.34 pthread_kill F
GLIBC_2.4 __confstr_chk F
Expand Down
1 change: 0 additions & 1 deletion sysdeps/unix/sysv/linux/ia64/libm.abilist
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,6 @@ GLIBC_2.26 __gammaf128_r_finite F
GLIBC_2.26 __hypotf128_finite F
GLIBC_2.26 __iseqsigf128 F
GLIBC_2.26 __isinff128 F
GLIBC_2.26 __isnanf128 F
GLIBC_2.26 __issignalingf128 F
GLIBC_2.26 __j0f128_finite F
GLIBC_2.26 __j1f128_finite F
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/* ABI version for _Float128 ABI introduction. */
#define FLOAT128_VERSION GLIBC_2.26
#define FLOAT128_VERSION_M GLIBC_2_26
2 changes: 2 additions & 0 deletions sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
Original file line number Diff line number Diff line change
Expand Up @@ -2184,6 +2184,7 @@ GLIBC_2.25 getrandom F
GLIBC_2.25 strfromd F
GLIBC_2.25 strfromf F
GLIBC_2.25 strfroml F
GLIBC_2.26 __isnanf128 F
GLIBC_2.26 __strtof128_internal F
GLIBC_2.26 __wcstof128_internal F
GLIBC_2.26 preadv2 F
Expand Down Expand Up @@ -2367,5 +2368,6 @@ GLIBC_2.33 mknod F
GLIBC_2.33 mknodat F
GLIBC_2.33 stat F
GLIBC_2.33 stat64 F
GLIBC_2.34 __isnanf128 F
GLIBC_2.34 __libc_start_main F
GLIBC_2.34 pthread_kill F
1 change: 0 additions & 1 deletion sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libm.abilist
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,6 @@ GLIBC_2.26 __gammaf128_r_finite F
GLIBC_2.26 __hypotf128_finite F
GLIBC_2.26 __iseqsigf128 F
GLIBC_2.26 __isinff128 F
GLIBC_2.26 __isnanf128 F
GLIBC_2.26 __issignalingf128 F
GLIBC_2.26 __j0f128_finite F
GLIBC_2.26 __j1f128_finite F
Expand Down
2 changes: 2 additions & 0 deletions sysdeps/unix/sysv/linux/x86_64/64/libc.abilist
Original file line number Diff line number Diff line change
Expand Up @@ -1854,6 +1854,7 @@ GLIBC_2.25 getrandom F
GLIBC_2.25 strfromd F
GLIBC_2.25 strfromf F
GLIBC_2.25 strfroml F
GLIBC_2.26 __isnanf128 F
GLIBC_2.26 __strtof128_internal F
GLIBC_2.26 __wcstof128_internal F
GLIBC_2.26 preadv2 F
Expand Down Expand Up @@ -2089,6 +2090,7 @@ GLIBC_2.33 mknod F
GLIBC_2.33 mknodat F
GLIBC_2.33 stat F
GLIBC_2.33 stat64 F
GLIBC_2.34 __isnanf128 F
GLIBC_2.34 __libc_start_main F
GLIBC_2.34 pthread_kill F
GLIBC_2.4 __confstr_chk F
Expand Down
1 change: 0 additions & 1 deletion sysdeps/unix/sysv/linux/x86_64/64/libm.abilist
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,6 @@ GLIBC_2.26 __gammaf128_r_finite F
GLIBC_2.26 __hypotf128_finite F
GLIBC_2.26 __iseqsigf128 F
GLIBC_2.26 __isinff128 F
GLIBC_2.26 __isnanf128 F
GLIBC_2.26 __issignalingf128 F
GLIBC_2.26 __j0f128_finite F
GLIBC_2.26 __j1f128_finite F
Expand Down
2 changes: 2 additions & 0 deletions sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist
Original file line number Diff line number Diff line change
Expand Up @@ -2107,6 +2107,7 @@ GLIBC_2.25 getrandom F
GLIBC_2.25 strfromd F
GLIBC_2.25 strfromf F
GLIBC_2.25 strfroml F
GLIBC_2.26 __isnanf128 F
GLIBC_2.26 __strtof128_internal F
GLIBC_2.26 __wcstof128_internal F
GLIBC_2.26 preadv2 F
Expand Down Expand Up @@ -2186,5 +2187,6 @@ GLIBC_2.33 mknod F
GLIBC_2.33 mknodat F
GLIBC_2.33 stat F
GLIBC_2.33 stat64 F
GLIBC_2.34 __isnanf128 F
GLIBC_2.34 __libc_start_main F
GLIBC_2.34 pthread_kill F
1 change: 0 additions & 1 deletion sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,6 @@ GLIBC_2.26 __gammaf128_r_finite F
GLIBC_2.26 __hypotf128_finite F
GLIBC_2.26 __iseqsigf128 F
GLIBC_2.26 __isinff128 F
GLIBC_2.26 __isnanf128 F
GLIBC_2.26 __issignalingf128 F
GLIBC_2.26 __j0f128_finite F
GLIBC_2.26 __j1f128_finite F
Expand Down
1 change: 1 addition & 0 deletions sysdeps/x86/float128-abi.h
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/* ABI version for _Float128 ABI introduction. */
#define FLOAT128_VERSION GLIBC_2.26
#define FLOAT128_VERSION_M GLIBC_2_26

0 comments on commit cb3b605

Please sign in to comment.