|
Packit |
6c4009 |
/* Enumerate available IFUNC implementations of a function. s390/s390x version.
|
|
Packit |
6c4009 |
Copyright (C) 2015-2018 Free Software Foundation, Inc.
|
|
Packit |
6c4009 |
This file is part of the GNU C Library.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
The GNU C Library is free software; you can redistribute it and/or
|
|
Packit |
6c4009 |
modify it under the terms of the GNU Lesser General Public
|
|
Packit |
6c4009 |
License as published by the Free Software Foundation; either
|
|
Packit |
6c4009 |
version 2.1 of the License, or (at your option) any later version.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
The GNU C Library is distributed in the hope that it will be useful,
|
|
Packit |
6c4009 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
6c4009 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
6c4009 |
Lesser General Public License for more details.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
You should have received a copy of the GNU Lesser General Public
|
|
Packit |
6c4009 |
License along with the GNU C Library; if not, see
|
|
Packit |
6c4009 |
<http://www.gnu.org/licenses/>. */
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#include <assert.h>
|
|
Packit |
6c4009 |
#include <string.h>
|
|
Packit |
6c4009 |
#include <wchar.h>
|
|
Packit |
6c4009 |
#include <ifunc-impl-list.h>
|
|
Packit |
6c4009 |
#include <ifunc-resolve.h>
|
|
Packit Service |
891b27 |
#include <ifunc-memset.h>
|
|
Packit Service |
24eae6 |
#include <ifunc-memcmp.h>
|
|
Packit Service |
8dcd58 |
#include <ifunc-memcpy.h>
|
|
Packit Service |
c1a30a |
#include <ifunc-strstr.h>
|
|
Packit Service |
ae60be |
#include <ifunc-memmem.h>
|
|
Packit Service |
f08bdf |
#include <ifunc-strlen.h>
|
|
Packit Service |
0ebf48 |
#include <ifunc-strnlen.h>
|
|
Packit Service |
297929 |
#include <ifunc-strcpy.h>
|
|
Packit Service |
06183b |
#include <ifunc-stpcpy.h>
|
|
Packit Service |
a5c9b7 |
#include <ifunc-strncpy.h>
|
|
Packit Service |
dbff23 |
#include <ifunc-stpncpy.h>
|
|
Packit Service |
bee4c5 |
#include <ifunc-strcat.h>
|
|
Packit Service |
186ed7 |
#include <ifunc-strncat.h>
|
|
Packit Service |
fc7601 |
#include <ifunc-strcmp.h>
|
|
Packit Service |
89d833 |
#include <ifunc-strncmp.h>
|
|
Packit Service |
433557 |
#include <ifunc-strchr.h>
|
|
Packit Service |
554d95 |
#include <ifunc-strchrnul.h>
|
|
Packit Service |
c3ba63 |
#include <ifunc-strrchr.h>
|
|
Packit Service |
008b12 |
#include <ifunc-strspn.h>
|
|
Packit Service |
66f556 |
#include <ifunc-strpbrk.h>
|
|
Packit Service |
188d20 |
#include <ifunc-strcspn.h>
|
|
Packit Service |
7b689a |
#include <ifunc-memchr.h>
|
|
Packit Service |
527d67 |
#include <ifunc-rawmemchr.h>
|
|
Packit Service |
6df0f9 |
#include <ifunc-memccpy.h>
|
|
Packit Service |
e40127 |
#include <ifunc-memrchr.h>
|
|
Packit Service |
7d759c |
#include <ifunc-wcslen.h>
|
|
Packit Service |
460c0c |
#include <ifunc-wcsnlen.h>
|
|
Packit Service |
b02936 |
#include <ifunc-wcscpy.h>
|
|
Packit Service |
6ae49f |
#include <ifunc-wcpcpy.h>
|
|
Packit Service |
0c0745 |
#include <ifunc-wcsncpy.h>
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Maximum number of IFUNC implementations. */
|
|
Packit |
6c4009 |
#define MAX_IFUNC 3
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Fill ARRAY of MAX elements with IFUNC implementations for function
|
|
Packit |
6c4009 |
NAME supported on target machine and return the number of valid
|
|
Packit |
6c4009 |
entries. */
|
|
Packit |
6c4009 |
size_t
|
|
Packit |
6c4009 |
__libc_ifunc_impl_list (const char *name, struct libc_ifunc_impl *array,
|
|
Packit |
6c4009 |
size_t max)
|
|
Packit |
6c4009 |
{
|
|
Packit |
6c4009 |
assert (max >= MAX_IFUNC);
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
size_t i = 0;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Get hardware information. */
|
|
Packit |
6c4009 |
unsigned long int dl_hwcap = GLRO (dl_hwcap);
|
|
Packit |
6c4009 |
unsigned long long stfle_bits = 0ULL;
|
|
Packit |
6c4009 |
if ((dl_hwcap & HWCAP_S390_STFLE)
|
|
Packit |
6c4009 |
&& (dl_hwcap & HWCAP_S390_ZARCH)
|
|
Packit |
6c4009 |
&& (dl_hwcap & HWCAP_S390_HIGH_GPRS))
|
|
Packit |
6c4009 |
{
|
|
Packit |
6c4009 |
S390_STORE_STFLE (stfle_bits);
|
|
Packit |
6c4009 |
}
|
|
Packit |
6c4009 |
|
|
Packit Service |
891b27 |
#if HAVE_MEMSET_IFUNC
|
|
Packit |
6c4009 |
IFUNC_IMPL (i, name, memset,
|
|
Packit Service |
891b27 |
# if HAVE_MEMSET_Z196
|
|
Packit |
6c4009 |
IFUNC_IMPL_ADD (array, i, memset,
|
|
Packit Service |
891b27 |
S390_IS_Z196 (stfle_bits), MEMSET_Z196)
|
|
Packit Service |
891b27 |
# endif
|
|
Packit Service |
891b27 |
# if HAVE_MEMSET_Z10
|
|
Packit |
6c4009 |
IFUNC_IMPL_ADD (array, i, memset,
|
|
Packit Service |
891b27 |
S390_IS_Z10 (stfle_bits), MEMSET_Z10)
|
|
Packit Service |
891b27 |
# endif
|
|
Packit Service |
891b27 |
# if HAVE_MEMSET_Z900_G5
|
|
Packit Service |
891b27 |
IFUNC_IMPL_ADD (array, i, memset, 1, MEMSET_Z900_G5)
|
|
Packit Service |
891b27 |
# endif
|
|
Packit Service |
891b27 |
)
|
|
Packit Service |
c413bc |
|
|
Packit Service |
c413bc |
/* Note: bzero is implemented in memset. */
|
|
Packit Service |
c413bc |
IFUNC_IMPL (i, name, bzero,
|
|
Packit Service |
c413bc |
# if HAVE_MEMSET_Z196
|
|
Packit Service |
c413bc |
IFUNC_IMPL_ADD (array, i, bzero,
|
|
Packit Service |
c413bc |
S390_IS_Z196 (stfle_bits), BZERO_Z196)
|
|
Packit Service |
c413bc |
# endif
|
|
Packit Service |
c413bc |
# if HAVE_MEMSET_Z10
|
|
Packit Service |
c413bc |
IFUNC_IMPL_ADD (array, i, bzero,
|
|
Packit Service |
c413bc |
S390_IS_Z10 (stfle_bits), BZERO_Z10)
|
|
Packit Service |
c413bc |
# endif
|
|
Packit Service |
c413bc |
# if HAVE_MEMSET_Z900_G5
|
|
Packit Service |
c413bc |
IFUNC_IMPL_ADD (array, i, bzero, 1, BZERO_Z900_G5)
|
|
Packit Service |
c413bc |
# endif
|
|
Packit Service |
c413bc |
)
|
|
Packit Service |
891b27 |
#endif /* HAVE_MEMSET_IFUNC */
|
|
Packit Service |
8bbac7 |
|
|
Packit Service |
24eae6 |
#if HAVE_MEMCMP_IFUNC
|
|
Packit |
6c4009 |
IFUNC_IMPL (i, name, memcmp,
|
|
Packit Service |
24eae6 |
# if HAVE_MEMCMP_Z196
|
|
Packit |
6c4009 |
IFUNC_IMPL_ADD (array, i, memcmp,
|
|
Packit Service |
24eae6 |
S390_IS_Z196 (stfle_bits), MEMCMP_Z196)
|
|
Packit Service |
24eae6 |
# endif
|
|
Packit Service |
24eae6 |
# if HAVE_MEMCMP_Z10
|
|
Packit |
6c4009 |
IFUNC_IMPL_ADD (array, i, memcmp,
|
|
Packit Service |
24eae6 |
S390_IS_Z10 (stfle_bits), MEMCMP_Z10)
|
|
Packit Service |
24eae6 |
# endif
|
|
Packit Service |
24eae6 |
# if HAVE_MEMCMP_Z900_G5
|
|
Packit Service |
24eae6 |
IFUNC_IMPL_ADD (array, i, memcmp, 1, MEMCMP_Z900_G5)
|
|
Packit Service |
24eae6 |
# endif
|
|
Packit Service |
24eae6 |
)
|
|
Packit Service |
24eae6 |
#endif /* HAVE_MEMCMP_IFUNC */
|
|
Packit Service |
8bbac7 |
|
|
Packit Service |
8dcd58 |
#if HAVE_MEMCPY_IFUNC
|
|
Packit |
6c4009 |
IFUNC_IMPL (i, name, memcpy,
|
|
Packit Service |
8dcd58 |
# if HAVE_MEMCPY_Z196
|
|
Packit |
6c4009 |
IFUNC_IMPL_ADD (array, i, memcpy,
|
|
Packit Service |
8dcd58 |
S390_IS_Z196 (stfle_bits), MEMCPY_Z196)
|
|
Packit Service |
8dcd58 |
# endif
|
|
Packit Service |
8dcd58 |
# if HAVE_MEMCPY_Z10
|
|
Packit |
6c4009 |
IFUNC_IMPL_ADD (array, i, memcpy,
|
|
Packit Service |
8dcd58 |
S390_IS_Z10 (stfle_bits), MEMCPY_Z10)
|
|
Packit Service |
8dcd58 |
# endif
|
|
Packit Service |
8dcd58 |
# if HAVE_MEMCPY_Z900_G5
|
|
Packit Service |
8dcd58 |
IFUNC_IMPL_ADD (array, i, memcpy, 1, MEMCPY_Z900_G5)
|
|
Packit Service |
8dcd58 |
# endif
|
|
Packit Service |
8dcd58 |
)
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
IFUNC_IMPL (i, name, mempcpy,
|
|
Packit Service |
8dcd58 |
# if HAVE_MEMCPY_Z196
|
|
Packit |
6c4009 |
IFUNC_IMPL_ADD (array, i, mempcpy,
|
|
Packit Service |
8dcd58 |
S390_IS_Z196 (stfle_bits), MEMPCPY_Z196)
|
|
Packit Service |
8dcd58 |
# endif
|
|
Packit Service |
8dcd58 |
# if HAVE_MEMCPY_Z10
|
|
Packit |
6c4009 |
IFUNC_IMPL_ADD (array, i, mempcpy,
|
|
Packit Service |
8dcd58 |
S390_IS_Z10 (stfle_bits), MEMPCPY_Z10)
|
|
Packit Service |
8dcd58 |
# endif
|
|
Packit Service |
8dcd58 |
# if HAVE_MEMCPY_Z900_G5
|
|
Packit Service |
8dcd58 |
IFUNC_IMPL_ADD (array, i, mempcpy, 1, MEMPCPY_Z900_G5)
|
|
Packit Service |
8dcd58 |
# endif
|
|
Packit Service |
8dcd58 |
)
|
|
Packit Service |
8dcd58 |
#endif /* HAVE_MEMCPY_IFUNC */
|
|
Packit Service |
8bbac7 |
|
|
Packit Service |
e721db |
#if HAVE_MEMMOVE_IFUNC
|
|
Packit Service |
e721db |
IFUNC_IMPL (i, name, memmove,
|
|
Packit Service |
e721db |
# if HAVE_MEMMOVE_Z13
|
|
Packit Service |
e721db |
IFUNC_IMPL_ADD (array, i, memmove,
|
|
Packit Service |
e721db |
dl_hwcap & HWCAP_S390_VX, MEMMOVE_Z13)
|
|
Packit Service |
e721db |
# endif
|
|
Packit Service |
e721db |
# if HAVE_MEMMOVE_C
|
|
Packit Service |
e721db |
IFUNC_IMPL_ADD (array, i, memmove, 1, MEMMOVE_C)
|
|
Packit Service |
e721db |
# endif
|
|
Packit Service |
e721db |
)
|
|
Packit Service |
e721db |
#endif /* HAVE_MEMMOVE_IFUNC */
|
|
Packit Service |
e721db |
|
|
Packit Service |
c1a30a |
#if HAVE_STRSTR_IFUNC
|
|
Packit Service |
c1a30a |
IFUNC_IMPL (i, name, strstr,
|
|
Packit Service |
c1a30a |
# if HAVE_STRSTR_Z13
|
|
Packit Service |
c1a30a |
IFUNC_IMPL_ADD (array, i, strstr,
|
|
Packit Service |
c1a30a |
dl_hwcap & HWCAP_S390_VX, STRSTR_Z13)
|
|
Packit Service |
c1a30a |
# endif
|
|
Packit Service |
c1a30a |
# if HAVE_STRSTR_C
|
|
Packit Service |
c1a30a |
IFUNC_IMPL_ADD (array, i, strstr, 1, STRSTR_C)
|
|
Packit Service |
c1a30a |
# endif
|
|
Packit Service |
c1a30a |
)
|
|
Packit Service |
c1a30a |
#endif /* HAVE_STRSTR_IFUNC */
|
|
Packit Service |
c1a30a |
|
|
Packit Service |
ae60be |
#if HAVE_MEMMEM_IFUNC
|
|
Packit Service |
ae60be |
IFUNC_IMPL (i, name, memmem,
|
|
Packit Service |
ae60be |
# if HAVE_MEMMEM_Z13
|
|
Packit Service |
ae60be |
IFUNC_IMPL_ADD (array, i, memmem,
|
|
Packit Service |
ae60be |
dl_hwcap & HWCAP_S390_VX, MEMMEM_Z13)
|
|
Packit Service |
ae60be |
# endif
|
|
Packit Service |
ae60be |
# if HAVE_MEMMEM_C
|
|
Packit Service |
ae60be |
IFUNC_IMPL_ADD (array, i, memmem, 1, MEMMEM_C)
|
|
Packit Service |
ae60be |
# endif
|
|
Packit Service |
ae60be |
)
|
|
Packit Service |
ae60be |
#endif /* HAVE_MEMMEM_IFUNC */
|
|
Packit Service |
ae60be |
|
|
Packit Service |
f08bdf |
#if HAVE_STRLEN_IFUNC
|
|
Packit Service |
f08bdf |
IFUNC_IMPL (i, name, strlen,
|
|
Packit Service |
f08bdf |
# if HAVE_STRLEN_Z13
|
|
Packit Service |
f08bdf |
IFUNC_IMPL_ADD (array, i, strlen,
|
|
Packit Service |
f08bdf |
dl_hwcap & HWCAP_S390_VX, STRLEN_Z13)
|
|
Packit Service |
f08bdf |
# endif
|
|
Packit Service |
f08bdf |
# if HAVE_STRLEN_C
|
|
Packit Service |
f08bdf |
IFUNC_IMPL_ADD (array, i, strlen, 1, STRLEN_C)
|
|
Packit Service |
f08bdf |
# endif
|
|
Packit Service |
f08bdf |
)
|
|
Packit Service |
f08bdf |
#endif /* HAVE_STRLEN_IFUNC */
|
|
Packit Service |
f08bdf |
|
|
Packit Service |
0ebf48 |
#if HAVE_STRNLEN_IFUNC
|
|
Packit Service |
0ebf48 |
IFUNC_IMPL (i, name, strnlen,
|
|
Packit Service |
0ebf48 |
# if HAVE_STRNLEN_Z13
|
|
Packit Service |
0ebf48 |
IFUNC_IMPL_ADD (array, i, strnlen,
|
|
Packit Service |
0ebf48 |
dl_hwcap & HWCAP_S390_VX, STRNLEN_Z13)
|
|
Packit Service |
0ebf48 |
# endif
|
|
Packit Service |
0ebf48 |
# if HAVE_STRNLEN_C
|
|
Packit Service |
0ebf48 |
IFUNC_IMPL_ADD (array, i, strnlen, 1, STRNLEN_C)
|
|
Packit Service |
0ebf48 |
# endif
|
|
Packit Service |
0ebf48 |
)
|
|
Packit Service |
0ebf48 |
#endif /* HAVE_STRNLEN_IFUNC */
|
|
Packit Service |
0ebf48 |
|
|
Packit Service |
297929 |
#if HAVE_STRCPY_IFUNC
|
|
Packit Service |
297929 |
IFUNC_IMPL (i, name, strcpy,
|
|
Packit Service |
297929 |
# if HAVE_STRCPY_Z13
|
|
Packit Service |
297929 |
IFUNC_IMPL_ADD (array, i, strcpy,
|
|
Packit Service |
297929 |
dl_hwcap & HWCAP_S390_VX, STRCPY_Z13)
|
|
Packit Service |
297929 |
# endif
|
|
Packit Service |
297929 |
# if HAVE_STRCPY_Z900_G5
|
|
Packit Service |
297929 |
IFUNC_IMPL_ADD (array, i, strcpy, 1, STRCPY_Z900_G5)
|
|
Packit Service |
297929 |
# endif
|
|
Packit Service |
297929 |
)
|
|
Packit Service |
297929 |
#endif /* HAVE_STRCPY_IFUNC */
|
|
Packit Service |
297929 |
|
|
Packit Service |
06183b |
#if HAVE_STPCPY_IFUNC
|
|
Packit Service |
06183b |
IFUNC_IMPL (i, name, stpcpy,
|
|
Packit Service |
06183b |
# if HAVE_STPCPY_Z13
|
|
Packit Service |
06183b |
IFUNC_IMPL_ADD (array, i, stpcpy,
|
|
Packit Service |
06183b |
dl_hwcap & HWCAP_S390_VX, STPCPY_Z13)
|
|
Packit Service |
06183b |
# endif
|
|
Packit Service |
06183b |
# if HAVE_STPCPY_C
|
|
Packit Service |
06183b |
IFUNC_IMPL_ADD (array, i, stpcpy, 1, STPCPY_C)
|
|
Packit Service |
06183b |
# endif
|
|
Packit Service |
06183b |
)
|
|
Packit Service |
06183b |
#endif /* HAVE_STPCPY_IFUNC */
|
|
Packit Service |
06183b |
|
|
Packit Service |
a5c9b7 |
#if HAVE_STRNCPY_IFUNC
|
|
Packit Service |
a5c9b7 |
IFUNC_IMPL (i, name, strncpy,
|
|
Packit Service |
a5c9b7 |
# if HAVE_STRNCPY_Z13
|
|
Packit Service |
a5c9b7 |
IFUNC_IMPL_ADD (array, i, strncpy,
|
|
Packit Service |
a5c9b7 |
dl_hwcap & HWCAP_S390_VX, STRNCPY_Z13)
|
|
Packit Service |
a5c9b7 |
# endif
|
|
Packit Service |
a5c9b7 |
# if HAVE_STRNCPY_Z900_G5
|
|
Packit Service |
a5c9b7 |
IFUNC_IMPL_ADD (array, i, strncpy, 1, STRNCPY_Z900_G5)
|
|
Packit Service |
a5c9b7 |
# endif
|
|
Packit Service |
a5c9b7 |
)
|
|
Packit Service |
a5c9b7 |
#endif /* HAVE_STRNCPY_IFUNC */
|
|
Packit Service |
a5c9b7 |
|
|
Packit Service |
dbff23 |
#if HAVE_STPNCPY_IFUNC
|
|
Packit Service |
dbff23 |
IFUNC_IMPL (i, name, stpncpy,
|
|
Packit Service |
dbff23 |
# if HAVE_STPNCPY_Z13
|
|
Packit Service |
dbff23 |
IFUNC_IMPL_ADD (array, i, stpncpy,
|
|
Packit Service |
dbff23 |
dl_hwcap & HWCAP_S390_VX, STPNCPY_Z13)
|
|
Packit Service |
dbff23 |
# endif
|
|
Packit Service |
dbff23 |
# if HAVE_STPNCPY_C
|
|
Packit Service |
dbff23 |
IFUNC_IMPL_ADD (array, i, stpncpy, 1, STPNCPY_C)
|
|
Packit Service |
dbff23 |
# endif
|
|
Packit Service |
dbff23 |
)
|
|
Packit Service |
dbff23 |
#endif /* HAVE_STPNCPY_IFUNC */
|
|
Packit Service |
dbff23 |
|
|
Packit Service |
bee4c5 |
#if HAVE_STRCAT_IFUNC
|
|
Packit Service |
bee4c5 |
IFUNC_IMPL (i, name, strcat,
|
|
Packit Service |
bee4c5 |
# if HAVE_STRCAT_Z13
|
|
Packit Service |
bee4c5 |
IFUNC_IMPL_ADD (array, i, strcat,
|
|
Packit Service |
bee4c5 |
dl_hwcap & HWCAP_S390_VX, STRCAT_Z13)
|
|
Packit Service |
bee4c5 |
# endif
|
|
Packit Service |
bee4c5 |
# if HAVE_STRCAT_C
|
|
Packit Service |
bee4c5 |
IFUNC_IMPL_ADD (array, i, strcat, 1, STRCAT_C)
|
|
Packit Service |
bee4c5 |
# endif
|
|
Packit Service |
bee4c5 |
)
|
|
Packit Service |
bee4c5 |
#endif /* HAVE_STRCAT_IFUNC */
|
|
Packit Service |
a5c9b7 |
|
|
Packit Service |
186ed7 |
#if HAVE_STRNCAT_IFUNC
|
|
Packit Service |
186ed7 |
IFUNC_IMPL (i, name, strncat,
|
|
Packit Service |
186ed7 |
# if HAVE_STRNCAT_Z13
|
|
Packit Service |
186ed7 |
IFUNC_IMPL_ADD (array, i, strncat,
|
|
Packit Service |
186ed7 |
dl_hwcap & HWCAP_S390_VX, STRNCAT_Z13)
|
|
Packit Service |
186ed7 |
# endif
|
|
Packit Service |
186ed7 |
# if HAVE_STRNCAT_C
|
|
Packit Service |
186ed7 |
IFUNC_IMPL_ADD (array, i, strncat, 1, STRNCAT_C)
|
|
Packit Service |
186ed7 |
# endif
|
|
Packit Service |
186ed7 |
)
|
|
Packit Service |
186ed7 |
#endif /* HAVE_STRNCAT_IFUNC */
|
|
Packit Service |
186ed7 |
|
|
Packit Service |
fc7601 |
#if HAVE_STRCMP_IFUNC
|
|
Packit Service |
fc7601 |
IFUNC_IMPL (i, name, strcmp,
|
|
Packit Service |
fc7601 |
# if HAVE_STRCMP_Z13
|
|
Packit Service |
fc7601 |
IFUNC_IMPL_ADD (array, i, strcmp,
|
|
Packit Service |
fc7601 |
dl_hwcap & HWCAP_S390_VX, STRCMP_Z13)
|
|
Packit Service |
fc7601 |
# endif
|
|
Packit Service |
fc7601 |
# if HAVE_STRCMP_Z900_G5
|
|
Packit Service |
fc7601 |
IFUNC_IMPL_ADD (array, i, strcmp, 1, STRCMP_Z900_G5)
|
|
Packit Service |
fc7601 |
# endif
|
|
Packit Service |
fc7601 |
)
|
|
Packit Service |
fc7601 |
#endif /* HAVE_STRCMP_IFUNC */
|
|
Packit Service |
fc7601 |
|
|
Packit Service |
89d833 |
#if HAVE_STRNCMP_IFUNC
|
|
Packit Service |
89d833 |
IFUNC_IMPL (i, name, strncmp,
|
|
Packit Service |
89d833 |
# if HAVE_STRNCMP_Z13
|
|
Packit Service |
89d833 |
IFUNC_IMPL_ADD (array, i, strncmp,
|
|
Packit Service |
89d833 |
dl_hwcap & HWCAP_S390_VX, STRNCMP_Z13)
|
|
Packit Service |
89d833 |
# endif
|
|
Packit Service |
89d833 |
# if HAVE_STRNCMP_C
|
|
Packit Service |
89d833 |
IFUNC_IMPL_ADD (array, i, strncmp, 1, STRNCMP_C)
|
|
Packit Service |
89d833 |
# endif
|
|
Packit Service |
89d833 |
)
|
|
Packit Service |
89d833 |
#endif /* HAVE_STRNCMP_IFUNC */
|
|
Packit Service |
89d833 |
|
|
Packit Service |
433557 |
#if HAVE_STRCHR_IFUNC
|
|
Packit Service |
433557 |
IFUNC_IMPL (i, name, strchr,
|
|
Packit Service |
433557 |
# if HAVE_STRCHR_Z13
|
|
Packit Service |
433557 |
IFUNC_IMPL_ADD (array, i, strchr,
|
|
Packit Service |
433557 |
dl_hwcap & HWCAP_S390_VX, STRCHR_Z13)
|
|
Packit Service |
433557 |
# endif
|
|
Packit Service |
433557 |
# if HAVE_STRCHR_C
|
|
Packit Service |
433557 |
IFUNC_IMPL_ADD (array, i, strchr, 1, STRCHR_C)
|
|
Packit Service |
433557 |
# endif
|
|
Packit Service |
433557 |
)
|
|
Packit Service |
433557 |
#endif /* HAVE_STRCHR_IFUNC */
|
|
Packit Service |
433557 |
|
|
Packit Service |
554d95 |
#if HAVE_STRCHRNUL_IFUNC
|
|
Packit Service |
554d95 |
IFUNC_IMPL (i, name, strchrnul,
|
|
Packit Service |
554d95 |
# if HAVE_STRCHRNUL_Z13
|
|
Packit Service |
554d95 |
IFUNC_IMPL_ADD (array, i, strchrnul,
|
|
Packit Service |
554d95 |
dl_hwcap & HWCAP_S390_VX, STRCHRNUL_Z13)
|
|
Packit Service |
554d95 |
# endif
|
|
Packit Service |
554d95 |
# if HAVE_STRCHRNUL_C
|
|
Packit Service |
554d95 |
IFUNC_IMPL_ADD (array, i, strchrnul, 1, STRCHRNUL_C)
|
|
Packit Service |
554d95 |
# endif
|
|
Packit Service |
554d95 |
)
|
|
Packit Service |
554d95 |
#endif /* HAVE_STRCHRNUL_IFUNC */
|
|
Packit Service |
554d95 |
|
|
Packit Service |
c3ba63 |
#if HAVE_STRRCHR_IFUNC
|
|
Packit Service |
c3ba63 |
IFUNC_IMPL (i, name, strrchr,
|
|
Packit Service |
c3ba63 |
# if HAVE_STRRCHR_Z13
|
|
Packit Service |
c3ba63 |
IFUNC_IMPL_ADD (array, i, strrchr,
|
|
Packit Service |
c3ba63 |
dl_hwcap & HWCAP_S390_VX, STRRCHR_Z13)
|
|
Packit Service |
c3ba63 |
# endif
|
|
Packit Service |
c3ba63 |
# if HAVE_STRRCHR_C
|
|
Packit Service |
c3ba63 |
IFUNC_IMPL_ADD (array, i, strrchr, 1, STRRCHR_C)
|
|
Packit Service |
c3ba63 |
# endif
|
|
Packit Service |
c3ba63 |
)
|
|
Packit Service |
c3ba63 |
#endif /* HAVE_STRRCHR_IFUNC */
|
|
Packit Service |
c3ba63 |
|
|
Packit Service |
008b12 |
#if HAVE_STRSPN_IFUNC
|
|
Packit Service |
008b12 |
IFUNC_IMPL (i, name, strspn,
|
|
Packit Service |
008b12 |
# if HAVE_STRSPN_Z13
|
|
Packit Service |
008b12 |
IFUNC_IMPL_ADD (array, i, strspn,
|
|
Packit Service |
008b12 |
dl_hwcap & HWCAP_S390_VX, STRSPN_Z13)
|
|
Packit Service |
008b12 |
# endif
|
|
Packit Service |
008b12 |
# if HAVE_STRSPN_C
|
|
Packit Service |
008b12 |
IFUNC_IMPL_ADD (array, i, strspn, 1, STRSPN_C)
|
|
Packit Service |
008b12 |
# endif
|
|
Packit Service |
008b12 |
)
|
|
Packit Service |
008b12 |
#endif /* HAVE_STRSPN_IFUNC */
|
|
Packit Service |
008b12 |
|
|
Packit Service |
66f556 |
#if HAVE_STRPBRK_IFUNC
|
|
Packit Service |
66f556 |
IFUNC_IMPL (i, name, strpbrk,
|
|
Packit Service |
66f556 |
# if HAVE_STRPBRK_Z13
|
|
Packit Service |
66f556 |
IFUNC_IMPL_ADD (array, i, strpbrk,
|
|
Packit Service |
66f556 |
dl_hwcap & HWCAP_S390_VX, STRPBRK_Z13)
|
|
Packit Service |
66f556 |
# endif
|
|
Packit Service |
66f556 |
# if HAVE_STRPBRK_C
|
|
Packit Service |
66f556 |
IFUNC_IMPL_ADD (array, i, strpbrk, 1, STRPBRK_C)
|
|
Packit Service |
66f556 |
# endif
|
|
Packit Service |
66f556 |
)
|
|
Packit Service |
66f556 |
#endif /* HAVE_STRPBRK_IFUNC */
|
|
Packit Service |
66f556 |
|
|
Packit Service |
188d20 |
#if HAVE_STRCSPN_IFUNC
|
|
Packit Service |
188d20 |
IFUNC_IMPL (i, name, strcspn,
|
|
Packit Service |
188d20 |
# if HAVE_STRCSPN_Z13
|
|
Packit Service |
188d20 |
IFUNC_IMPL_ADD (array, i, strcspn,
|
|
Packit Service |
188d20 |
dl_hwcap & HWCAP_S390_VX, STRCSPN_Z13)
|
|
Packit Service |
188d20 |
# endif
|
|
Packit Service |
188d20 |
# if HAVE_STRCSPN_C
|
|
Packit Service |
188d20 |
IFUNC_IMPL_ADD (array, i, strcspn, 1, STRCSPN_C)
|
|
Packit Service |
188d20 |
# endif
|
|
Packit Service |
188d20 |
)
|
|
Packit Service |
188d20 |
#endif /* HAVE_STRCSPN_IFUNC */
|
|
Packit Service |
188d20 |
|
|
Packit Service |
7b689a |
#if HAVE_MEMCHR_IFUNC
|
|
Packit Service |
7b689a |
IFUNC_IMPL (i, name, memchr,
|
|
Packit Service |
7b689a |
# if HAVE_MEMCHR_Z13
|
|
Packit Service |
7b689a |
IFUNC_IMPL_ADD (array, i, memchr,
|
|
Packit Service |
7b689a |
dl_hwcap & HWCAP_S390_VX, MEMCHR_Z13)
|
|
Packit Service |
7b689a |
# endif
|
|
Packit Service |
7b689a |
# if HAVE_MEMCHR_Z900_G5
|
|
Packit Service |
7b689a |
IFUNC_IMPL_ADD (array, i, memchr, 1, MEMCHR_Z900_G5)
|
|
Packit Service |
7b689a |
# endif
|
|
Packit Service |
7b689a |
)
|
|
Packit Service |
7b689a |
#endif /* HAVE_MEMCHR_IFUNC */
|
|
Packit Service |
7b689a |
|
|
Packit Service |
527d67 |
#if HAVE_RAWMEMCHR_IFUNC
|
|
Packit Service |
527d67 |
IFUNC_IMPL (i, name, rawmemchr,
|
|
Packit Service |
527d67 |
# if HAVE_RAWMEMCHR_Z13
|
|
Packit Service |
527d67 |
IFUNC_IMPL_ADD (array, i, rawmemchr,
|
|
Packit Service |
527d67 |
dl_hwcap & HWCAP_S390_VX, RAWMEMCHR_Z13)
|
|
Packit Service |
527d67 |
# endif
|
|
Packit Service |
527d67 |
# if HAVE_RAWMEMCHR_C
|
|
Packit Service |
527d67 |
IFUNC_IMPL_ADD (array, i, rawmemchr, 1, RAWMEMCHR_C)
|
|
Packit Service |
527d67 |
# endif
|
|
Packit Service |
527d67 |
)
|
|
Packit Service |
527d67 |
#endif /* HAVE_RAWMEMCHR_IFUNC */
|
|
Packit Service |
527d67 |
|
|
Packit Service |
6df0f9 |
#if HAVE_MEMCCPY_IFUNC
|
|
Packit Service |
6df0f9 |
IFUNC_IMPL (i, name, memccpy,
|
|
Packit Service |
6df0f9 |
# if HAVE_MEMCCPY_Z13
|
|
Packit Service |
6df0f9 |
IFUNC_IMPL_ADD (array, i, memccpy,
|
|
Packit Service |
6df0f9 |
dl_hwcap & HWCAP_S390_VX, MEMCCPY_Z13)
|
|
Packit Service |
6df0f9 |
# endif
|
|
Packit Service |
6df0f9 |
# if HAVE_MEMCCPY_C
|
|
Packit Service |
6df0f9 |
IFUNC_IMPL_ADD (array, i, memccpy, 1, MEMCCPY_C)
|
|
Packit Service |
6df0f9 |
# endif
|
|
Packit Service |
6df0f9 |
)
|
|
Packit Service |
6df0f9 |
#endif /* HAVE_MEMCCPY_IFUNC */
|
|
Packit Service |
6df0f9 |
|
|
Packit Service |
e40127 |
#if HAVE_MEMRCHR_IFUNC
|
|
Packit Service |
e40127 |
IFUNC_IMPL (i, name, memrchr,
|
|
Packit Service |
e40127 |
# if HAVE_MEMRCHR_Z13
|
|
Packit Service |
e40127 |
IFUNC_IMPL_ADD (array, i, memrchr,
|
|
Packit Service |
e40127 |
dl_hwcap & HWCAP_S390_VX, MEMRCHR_Z13)
|
|
Packit Service |
e40127 |
# endif
|
|
Packit Service |
e40127 |
# if HAVE_MEMRCHR_C
|
|
Packit Service |
e40127 |
IFUNC_IMPL_ADD (array, i, memrchr, 1, MEMRCHR_C)
|
|
Packit Service |
e40127 |
# endif
|
|
Packit Service |
e40127 |
)
|
|
Packit Service |
e40127 |
#endif /* HAVE_MEMRCHR_IFUNC */
|
|
Packit Service |
e40127 |
|
|
Packit Service |
7d759c |
#if HAVE_WCSLEN_IFUNC
|
|
Packit Service |
7d759c |
IFUNC_IMPL (i, name, wcslen,
|
|
Packit Service |
7d759c |
# if HAVE_WCSLEN_Z13
|
|
Packit Service |
7d759c |
IFUNC_IMPL_ADD (array, i, wcslen,
|
|
Packit Service |
7d759c |
dl_hwcap & HWCAP_S390_VX, WCSLEN_Z13)
|
|
Packit Service |
7d759c |
# endif
|
|
Packit Service |
7d759c |
# if HAVE_WCSLEN_C
|
|
Packit Service |
7d759c |
IFUNC_IMPL_ADD (array, i, wcslen, 1, WCSLEN_C)
|
|
Packit Service |
7d759c |
# endif
|
|
Packit Service |
7d759c |
)
|
|
Packit Service |
7d759c |
#endif /* HAVE_WCSLEN_IFUNC */
|
|
Packit Service |
7d759c |
|
|
Packit Service |
460c0c |
#if HAVE_WCSNLEN_IFUNC
|
|
Packit Service |
460c0c |
IFUNC_IMPL (i, name, wcsnlen,
|
|
Packit Service |
460c0c |
# if HAVE_WCSNLEN_Z13
|
|
Packit Service |
460c0c |
IFUNC_IMPL_ADD (array, i, wcsnlen,
|
|
Packit Service |
460c0c |
dl_hwcap & HWCAP_S390_VX, WCSNLEN_Z13)
|
|
Packit Service |
460c0c |
# endif
|
|
Packit Service |
460c0c |
# if HAVE_WCSNLEN_C
|
|
Packit Service |
460c0c |
IFUNC_IMPL_ADD (array, i, wcsnlen, 1, WCSNLEN_C)
|
|
Packit Service |
460c0c |
# endif
|
|
Packit Service |
460c0c |
)
|
|
Packit Service |
460c0c |
#endif /* HAVE_WCSNLEN_IFUNC */
|
|
Packit Service |
460c0c |
|
|
Packit Service |
b02936 |
#if HAVE_WCSCPY_IFUNC
|
|
Packit Service |
b02936 |
IFUNC_IMPL (i, name, wcscpy,
|
|
Packit Service |
b02936 |
# if HAVE_WCSCPY_Z13
|
|
Packit Service |
b02936 |
IFUNC_IMPL_ADD (array, i, wcscpy,
|
|
Packit Service |
b02936 |
dl_hwcap & HWCAP_S390_VX, WCSCPY_Z13)
|
|
Packit Service |
b02936 |
# endif
|
|
Packit Service |
b02936 |
# if HAVE_WCSCPY_C
|
|
Packit Service |
b02936 |
IFUNC_IMPL_ADD (array, i, wcscpy, 1, WCSCPY_C)
|
|
Packit Service |
b02936 |
# endif
|
|
Packit Service |
b02936 |
)
|
|
Packit Service |
b02936 |
#endif /* HAVE_WCSCPY_IFUNC */
|
|
Packit Service |
b02936 |
|
|
Packit Service |
6ae49f |
#if HAVE_WCPCPY_IFUNC
|
|
Packit Service |
6ae49f |
IFUNC_IMPL (i, name, wcpcpy,
|
|
Packit Service |
6ae49f |
# if HAVE_WCPCPY_Z13
|
|
Packit Service |
6ae49f |
IFUNC_IMPL_ADD (array, i, wcpcpy,
|
|
Packit Service |
6ae49f |
dl_hwcap & HWCAP_S390_VX, WCPCPY_Z13)
|
|
Packit Service |
6ae49f |
# endif
|
|
Packit Service |
6ae49f |
# if HAVE_WCPCPY_C
|
|
Packit Service |
6ae49f |
IFUNC_IMPL_ADD (array, i, wcpcpy, 1, WCPCPY_C)
|
|
Packit Service |
6ae49f |
# endif
|
|
Packit Service |
6ae49f |
)
|
|
Packit Service |
6ae49f |
#endif /* HAVE_WCPCPY_IFUNC */
|
|
Packit Service |
6ae49f |
|
|
Packit Service |
0c0745 |
#if HAVE_WCSNCPY_IFUNC
|
|
Packit Service |
0c0745 |
IFUNC_IMPL (i, name, wcsncpy,
|
|
Packit Service |
0c0745 |
# if HAVE_WCSNCPY_Z13
|
|
Packit Service |
0c0745 |
IFUNC_IMPL_ADD (array, i, wcsncpy,
|
|
Packit Service |
0c0745 |
dl_hwcap & HWCAP_S390_VX, WCSNCPY_Z13)
|
|
Packit Service |
0c0745 |
# endif
|
|
Packit Service |
0c0745 |
# if HAVE_WCSNCPY_C
|
|
Packit Service |
0c0745 |
IFUNC_IMPL_ADD (array, i, wcsncpy, 1, WCSNCPY_C)
|
|
Packit Service |
0c0745 |
# endif
|
|
Packit Service |
0c0745 |
)
|
|
Packit Service |
0c0745 |
#endif /* HAVE_WCSNCPY_IFUNC */
|
|
Packit Service |
0c0745 |
|
|
Packit Service |
8bbac7 |
#ifdef HAVE_S390_VX_ASM_SUPPORT
|
|
Packit Service |
8bbac7 |
|
|
Packit Service |
8bbac7 |
# define IFUNC_VX_IMPL(FUNC) \
|
|
Packit Service |
8bbac7 |
IFUNC_IMPL (i, name, FUNC, \
|
|
Packit Service |
8bbac7 |
IFUNC_IMPL_ADD (array, i, FUNC, dl_hwcap & HWCAP_S390_VX, \
|
|
Packit Service |
8bbac7 |
__##FUNC##_vx) \
|
|
Packit Service |
8bbac7 |
IFUNC_IMPL_ADD (array, i, FUNC, 1, __##FUNC##_c))
|
|
Packit Service |
8bbac7 |
|
|
Packit Service |
8bbac7 |
IFUNC_VX_IMPL (wcpncpy);
|
|
Packit Service |
8bbac7 |
|
|
Packit Service |
8bbac7 |
IFUNC_VX_IMPL (wcscat);
|
|
Packit Service |
8bbac7 |
|
|
Packit Service |
8bbac7 |
IFUNC_VX_IMPL (wcsncat);
|
|
Packit Service |
8bbac7 |
|
|
Packit Service |
8bbac7 |
IFUNC_VX_IMPL (wcscmp);
|
|
Packit Service |
8bbac7 |
|
|
Packit Service |
8bbac7 |
IFUNC_VX_IMPL (wcsncmp);
|
|
Packit Service |
8bbac7 |
|
|
Packit Service |
8bbac7 |
IFUNC_VX_IMPL (wcschr);
|
|
Packit Service |
8bbac7 |
|
|
Packit Service |
8bbac7 |
IFUNC_VX_IMPL (wcschrnul);
|
|
Packit Service |
8bbac7 |
|
|
Packit Service |
8bbac7 |
IFUNC_VX_IMPL (wcsrchr);
|
|
Packit Service |
8bbac7 |
|
|
Packit Service |
8bbac7 |
IFUNC_VX_IMPL (wcsspn);
|
|
Packit Service |
8bbac7 |
|
|
Packit Service |
8bbac7 |
IFUNC_VX_IMPL (wcspbrk);
|
|
Packit Service |
8bbac7 |
|
|
Packit Service |
8bbac7 |
IFUNC_VX_IMPL (wcscspn);
|
|
Packit Service |
8bbac7 |
|
|
Packit Service |
8bbac7 |
IFUNC_VX_IMPL (wmemchr);
|
|
Packit Service |
8bbac7 |
|
|
Packit Service |
8bbac7 |
IFUNC_VX_IMPL (wmemset);
|
|
Packit Service |
8bbac7 |
|
|
Packit Service |
8bbac7 |
IFUNC_VX_IMPL (wmemcmp);
|
|
Packit Service |
8bbac7 |
|
|
Packit Service |
8bbac7 |
#endif /* HAVE_S390_VX_ASM_SUPPORT */
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
return i;
|
|
Packit |
6c4009 |
}
|