|
Packit Service |
82fcde |
/* Enumerate available IFUNC implementations of a function. s390/s390x version.
|
|
Packit Service |
82fcde |
Copyright (C) 2015-2018 Free Software Foundation, Inc.
|
|
Packit Service |
82fcde |
This file is part of the GNU C Library.
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
The GNU C Library is free software; you can redistribute it and/or
|
|
Packit Service |
82fcde |
modify it under the terms of the GNU Lesser General Public
|
|
Packit Service |
82fcde |
License as published by the Free Software Foundation; either
|
|
Packit Service |
82fcde |
version 2.1 of the License, or (at your option) any later version.
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
The GNU C Library is distributed in the hope that it will be useful,
|
|
Packit Service |
82fcde |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
82fcde |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
82fcde |
Lesser General Public License for more details.
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
You should have received a copy of the GNU Lesser General Public
|
|
Packit Service |
82fcde |
License along with the GNU C Library; if not, see
|
|
Packit Service |
82fcde |
<http://www.gnu.org/licenses/>. */
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#include <assert.h>
|
|
Packit Service |
82fcde |
#include <string.h>
|
|
Packit Service |
82fcde |
#include <wchar.h>
|
|
Packit Service |
82fcde |
#include <ifunc-impl-list.h>
|
|
Packit Service |
82fcde |
#include <ifunc-resolve.h>
|
|
Packit Service |
88e0ef |
#include <ifunc-memset.h>
|
|
Packit Service |
72cf12 |
#include <ifunc-memcmp.h>
|
|
Packit Service |
a245ad |
#include <ifunc-memcpy.h>
|
|
Packit Service |
eac944 |
#include <ifunc-strstr.h>
|
|
Packit Service |
03e699 |
#include <ifunc-memmem.h>
|
|
Packit Service |
720eed |
#include <ifunc-strlen.h>
|
|
Packit Service |
a28822 |
#include <ifunc-strnlen.h>
|
|
Packit Service |
b9339e |
#include <ifunc-strcpy.h>
|
|
Packit Service |
cbaa14 |
#include <ifunc-stpcpy.h>
|
|
Packit Service |
143dd1 |
#include <ifunc-strncpy.h>
|
|
Packit Service |
3fb31a |
#include <ifunc-stpncpy.h>
|
|
Packit Service |
db853b |
#include <ifunc-strcat.h>
|
|
Packit Service |
c41a74 |
#include <ifunc-strncat.h>
|
|
Packit Service |
32cd59 |
#include <ifunc-strcmp.h>
|
|
Packit Service |
12c651 |
#include <ifunc-strncmp.h>
|
|
Packit Service |
927e27 |
#include <ifunc-strchr.h>
|
|
Packit Service |
47f860 |
#include <ifunc-strchrnul.h>
|
|
Packit Service |
1500e6 |
#include <ifunc-strrchr.h>
|
|
Packit Service |
6a2039 |
#include <ifunc-strspn.h>
|
|
Packit Service |
ddbf5a |
#include <ifunc-strpbrk.h>
|
|
Packit Service |
f8e8ae |
#include <ifunc-strcspn.h>
|
|
Packit Service |
376870 |
#include <ifunc-memchr.h>
|
|
Packit Service |
a52cc0 |
#include <ifunc-rawmemchr.h>
|
|
Packit Service |
3aaf82 |
#include <ifunc-memccpy.h>
|
|
Packit Service |
01a621 |
#include <ifunc-memrchr.h>
|
|
Packit Service |
cb824d |
#include <ifunc-wcslen.h>
|
|
Packit Service |
b59374 |
#include <ifunc-wcsnlen.h>
|
|
Packit Service |
2f485d |
#include <ifunc-wcscpy.h>
|
|
Packit Service |
227c06 |
#include <ifunc-wcpcpy.h>
|
|
Packit Service |
8aebd1 |
#include <ifunc-wcsncpy.h>
|
|
Packit Service |
895212 |
#include <ifunc-wcpncpy.h>
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
/* Maximum number of IFUNC implementations. */
|
|
Packit Service |
82fcde |
#define MAX_IFUNC 3
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
/* Fill ARRAY of MAX elements with IFUNC implementations for function
|
|
Packit Service |
82fcde |
NAME supported on target machine and return the number of valid
|
|
Packit Service |
82fcde |
entries. */
|
|
Packit Service |
82fcde |
size_t
|
|
Packit Service |
82fcde |
__libc_ifunc_impl_list (const char *name, struct libc_ifunc_impl *array,
|
|
Packit Service |
82fcde |
size_t max)
|
|
Packit Service |
82fcde |
{
|
|
Packit Service |
82fcde |
assert (max >= MAX_IFUNC);
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
size_t i = 0;
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
/* Get hardware information. */
|
|
Packit Service |
82fcde |
unsigned long int dl_hwcap = GLRO (dl_hwcap);
|
|
Packit Service |
82fcde |
unsigned long long stfle_bits = 0ULL;
|
|
Packit Service |
82fcde |
if ((dl_hwcap & HWCAP_S390_STFLE)
|
|
Packit Service |
82fcde |
&& (dl_hwcap & HWCAP_S390_ZARCH)
|
|
Packit Service |
82fcde |
&& (dl_hwcap & HWCAP_S390_HIGH_GPRS))
|
|
Packit Service |
82fcde |
{
|
|
Packit Service |
82fcde |
S390_STORE_STFLE (stfle_bits);
|
|
Packit Service |
82fcde |
}
|
|
Packit Service |
82fcde |
|
|
Packit Service |
88e0ef |
#if HAVE_MEMSET_IFUNC
|
|
Packit Service |
82fcde |
IFUNC_IMPL (i, name, memset,
|
|
Packit Service |
88e0ef |
# if HAVE_MEMSET_Z196
|
|
Packit Service |
82fcde |
IFUNC_IMPL_ADD (array, i, memset,
|
|
Packit Service |
88e0ef |
S390_IS_Z196 (stfle_bits), MEMSET_Z196)
|
|
Packit Service |
88e0ef |
# endif
|
|
Packit Service |
88e0ef |
# if HAVE_MEMSET_Z10
|
|
Packit Service |
82fcde |
IFUNC_IMPL_ADD (array, i, memset,
|
|
Packit Service |
88e0ef |
S390_IS_Z10 (stfle_bits), MEMSET_Z10)
|
|
Packit Service |
88e0ef |
# endif
|
|
Packit Service |
88e0ef |
# if HAVE_MEMSET_Z900_G5
|
|
Packit Service |
88e0ef |
IFUNC_IMPL_ADD (array, i, memset, 1, MEMSET_Z900_G5)
|
|
Packit Service |
88e0ef |
# endif
|
|
Packit Service |
88e0ef |
)
|
|
Packit Service |
878e1f |
|
|
Packit Service |
878e1f |
/* Note: bzero is implemented in memset. */
|
|
Packit Service |
878e1f |
IFUNC_IMPL (i, name, bzero,
|
|
Packit Service |
878e1f |
# if HAVE_MEMSET_Z196
|
|
Packit Service |
878e1f |
IFUNC_IMPL_ADD (array, i, bzero,
|
|
Packit Service |
878e1f |
S390_IS_Z196 (stfle_bits), BZERO_Z196)
|
|
Packit Service |
878e1f |
# endif
|
|
Packit Service |
878e1f |
# if HAVE_MEMSET_Z10
|
|
Packit Service |
878e1f |
IFUNC_IMPL_ADD (array, i, bzero,
|
|
Packit Service |
878e1f |
S390_IS_Z10 (stfle_bits), BZERO_Z10)
|
|
Packit Service |
878e1f |
# endif
|
|
Packit Service |
878e1f |
# if HAVE_MEMSET_Z900_G5
|
|
Packit Service |
878e1f |
IFUNC_IMPL_ADD (array, i, bzero, 1, BZERO_Z900_G5)
|
|
Packit Service |
878e1f |
# endif
|
|
Packit Service |
878e1f |
)
|
|
Packit Service |
88e0ef |
#endif /* HAVE_MEMSET_IFUNC */
|
|
Packit Service |
1c5418 |
|
|
Packit Service |
72cf12 |
#if HAVE_MEMCMP_IFUNC
|
|
Packit Service |
82fcde |
IFUNC_IMPL (i, name, memcmp,
|
|
Packit Service |
72cf12 |
# if HAVE_MEMCMP_Z196
|
|
Packit Service |
82fcde |
IFUNC_IMPL_ADD (array, i, memcmp,
|
|
Packit Service |
72cf12 |
S390_IS_Z196 (stfle_bits), MEMCMP_Z196)
|
|
Packit Service |
72cf12 |
# endif
|
|
Packit Service |
72cf12 |
# if HAVE_MEMCMP_Z10
|
|
Packit Service |
82fcde |
IFUNC_IMPL_ADD (array, i, memcmp,
|
|
Packit Service |
72cf12 |
S390_IS_Z10 (stfle_bits), MEMCMP_Z10)
|
|
Packit Service |
72cf12 |
# endif
|
|
Packit Service |
72cf12 |
# if HAVE_MEMCMP_Z900_G5
|
|
Packit Service |
72cf12 |
IFUNC_IMPL_ADD (array, i, memcmp, 1, MEMCMP_Z900_G5)
|
|
Packit Service |
72cf12 |
# endif
|
|
Packit Service |
72cf12 |
)
|
|
Packit Service |
72cf12 |
#endif /* HAVE_MEMCMP_IFUNC */
|
|
Packit Service |
1c5418 |
|
|
Packit Service |
a245ad |
#if HAVE_MEMCPY_IFUNC
|
|
Packit Service |
82fcde |
IFUNC_IMPL (i, name, memcpy,
|
|
Packit Service |
a245ad |
# if HAVE_MEMCPY_Z196
|
|
Packit Service |
82fcde |
IFUNC_IMPL_ADD (array, i, memcpy,
|
|
Packit Service |
a245ad |
S390_IS_Z196 (stfle_bits), MEMCPY_Z196)
|
|
Packit Service |
a245ad |
# endif
|
|
Packit Service |
a245ad |
# if HAVE_MEMCPY_Z10
|
|
Packit Service |
82fcde |
IFUNC_IMPL_ADD (array, i, memcpy,
|
|
Packit Service |
a245ad |
S390_IS_Z10 (stfle_bits), MEMCPY_Z10)
|
|
Packit Service |
a245ad |
# endif
|
|
Packit Service |
a245ad |
# if HAVE_MEMCPY_Z900_G5
|
|
Packit Service |
a245ad |
IFUNC_IMPL_ADD (array, i, memcpy, 1, MEMCPY_Z900_G5)
|
|
Packit Service |
a245ad |
# endif
|
|
Packit Service |
a245ad |
)
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
IFUNC_IMPL (i, name, mempcpy,
|
|
Packit Service |
a245ad |
# if HAVE_MEMCPY_Z196
|
|
Packit Service |
82fcde |
IFUNC_IMPL_ADD (array, i, mempcpy,
|
|
Packit Service |
a245ad |
S390_IS_Z196 (stfle_bits), MEMPCPY_Z196)
|
|
Packit Service |
a245ad |
# endif
|
|
Packit Service |
a245ad |
# if HAVE_MEMCPY_Z10
|
|
Packit Service |
82fcde |
IFUNC_IMPL_ADD (array, i, mempcpy,
|
|
Packit Service |
a245ad |
S390_IS_Z10 (stfle_bits), MEMPCPY_Z10)
|
|
Packit Service |
a245ad |
# endif
|
|
Packit Service |
a245ad |
# if HAVE_MEMCPY_Z900_G5
|
|
Packit Service |
a245ad |
IFUNC_IMPL_ADD (array, i, mempcpy, 1, MEMPCPY_Z900_G5)
|
|
Packit Service |
a245ad |
# endif
|
|
Packit Service |
a245ad |
)
|
|
Packit Service |
a245ad |
#endif /* HAVE_MEMCPY_IFUNC */
|
|
Packit Service |
1c5418 |
|
|
Packit Service |
470baf |
#if HAVE_MEMMOVE_IFUNC
|
|
Packit Service |
470baf |
IFUNC_IMPL (i, name, memmove,
|
|
Packit Service |
470baf |
# if HAVE_MEMMOVE_Z13
|
|
Packit Service |
470baf |
IFUNC_IMPL_ADD (array, i, memmove,
|
|
Packit Service |
470baf |
dl_hwcap & HWCAP_S390_VX, MEMMOVE_Z13)
|
|
Packit Service |
470baf |
# endif
|
|
Packit Service |
470baf |
# if HAVE_MEMMOVE_C
|
|
Packit Service |
470baf |
IFUNC_IMPL_ADD (array, i, memmove, 1, MEMMOVE_C)
|
|
Packit Service |
470baf |
# endif
|
|
Packit Service |
470baf |
)
|
|
Packit Service |
470baf |
#endif /* HAVE_MEMMOVE_IFUNC */
|
|
Packit Service |
470baf |
|
|
Packit Service |
eac944 |
#if HAVE_STRSTR_IFUNC
|
|
Packit Service |
eac944 |
IFUNC_IMPL (i, name, strstr,
|
|
Packit Service |
eac944 |
# if HAVE_STRSTR_Z13
|
|
Packit Service |
eac944 |
IFUNC_IMPL_ADD (array, i, strstr,
|
|
Packit Service |
eac944 |
dl_hwcap & HWCAP_S390_VX, STRSTR_Z13)
|
|
Packit Service |
eac944 |
# endif
|
|
Packit Service |
eac944 |
# if HAVE_STRSTR_C
|
|
Packit Service |
eac944 |
IFUNC_IMPL_ADD (array, i, strstr, 1, STRSTR_C)
|
|
Packit Service |
eac944 |
# endif
|
|
Packit Service |
eac944 |
)
|
|
Packit Service |
eac944 |
#endif /* HAVE_STRSTR_IFUNC */
|
|
Packit Service |
eac944 |
|
|
Packit Service |
03e699 |
#if HAVE_MEMMEM_IFUNC
|
|
Packit Service |
03e699 |
IFUNC_IMPL (i, name, memmem,
|
|
Packit Service |
03e699 |
# if HAVE_MEMMEM_Z13
|
|
Packit Service |
03e699 |
IFUNC_IMPL_ADD (array, i, memmem,
|
|
Packit Service |
03e699 |
dl_hwcap & HWCAP_S390_VX, MEMMEM_Z13)
|
|
Packit Service |
03e699 |
# endif
|
|
Packit Service |
03e699 |
# if HAVE_MEMMEM_C
|
|
Packit Service |
03e699 |
IFUNC_IMPL_ADD (array, i, memmem, 1, MEMMEM_C)
|
|
Packit Service |
03e699 |
# endif
|
|
Packit Service |
03e699 |
)
|
|
Packit Service |
03e699 |
#endif /* HAVE_MEMMEM_IFUNC */
|
|
Packit Service |
03e699 |
|
|
Packit Service |
720eed |
#if HAVE_STRLEN_IFUNC
|
|
Packit Service |
720eed |
IFUNC_IMPL (i, name, strlen,
|
|
Packit Service |
720eed |
# if HAVE_STRLEN_Z13
|
|
Packit Service |
720eed |
IFUNC_IMPL_ADD (array, i, strlen,
|
|
Packit Service |
720eed |
dl_hwcap & HWCAP_S390_VX, STRLEN_Z13)
|
|
Packit Service |
720eed |
# endif
|
|
Packit Service |
720eed |
# if HAVE_STRLEN_C
|
|
Packit Service |
720eed |
IFUNC_IMPL_ADD (array, i, strlen, 1, STRLEN_C)
|
|
Packit Service |
720eed |
# endif
|
|
Packit Service |
720eed |
)
|
|
Packit Service |
720eed |
#endif /* HAVE_STRLEN_IFUNC */
|
|
Packit Service |
720eed |
|
|
Packit Service |
a28822 |
#if HAVE_STRNLEN_IFUNC
|
|
Packit Service |
a28822 |
IFUNC_IMPL (i, name, strnlen,
|
|
Packit Service |
a28822 |
# if HAVE_STRNLEN_Z13
|
|
Packit Service |
a28822 |
IFUNC_IMPL_ADD (array, i, strnlen,
|
|
Packit Service |
a28822 |
dl_hwcap & HWCAP_S390_VX, STRNLEN_Z13)
|
|
Packit Service |
a28822 |
# endif
|
|
Packit Service |
a28822 |
# if HAVE_STRNLEN_C
|
|
Packit Service |
a28822 |
IFUNC_IMPL_ADD (array, i, strnlen, 1, STRNLEN_C)
|
|
Packit Service |
a28822 |
# endif
|
|
Packit Service |
a28822 |
)
|
|
Packit Service |
a28822 |
#endif /* HAVE_STRNLEN_IFUNC */
|
|
Packit Service |
a28822 |
|
|
Packit Service |
b9339e |
#if HAVE_STRCPY_IFUNC
|
|
Packit Service |
b9339e |
IFUNC_IMPL (i, name, strcpy,
|
|
Packit Service |
b9339e |
# if HAVE_STRCPY_Z13
|
|
Packit Service |
b9339e |
IFUNC_IMPL_ADD (array, i, strcpy,
|
|
Packit Service |
b9339e |
dl_hwcap & HWCAP_S390_VX, STRCPY_Z13)
|
|
Packit Service |
b9339e |
# endif
|
|
Packit Service |
b9339e |
# if HAVE_STRCPY_Z900_G5
|
|
Packit Service |
b9339e |
IFUNC_IMPL_ADD (array, i, strcpy, 1, STRCPY_Z900_G5)
|
|
Packit Service |
b9339e |
# endif
|
|
Packit Service |
b9339e |
)
|
|
Packit Service |
b9339e |
#endif /* HAVE_STRCPY_IFUNC */
|
|
Packit Service |
b9339e |
|
|
Packit Service |
cbaa14 |
#if HAVE_STPCPY_IFUNC
|
|
Packit Service |
cbaa14 |
IFUNC_IMPL (i, name, stpcpy,
|
|
Packit Service |
cbaa14 |
# if HAVE_STPCPY_Z13
|
|
Packit Service |
cbaa14 |
IFUNC_IMPL_ADD (array, i, stpcpy,
|
|
Packit Service |
cbaa14 |
dl_hwcap & HWCAP_S390_VX, STPCPY_Z13)
|
|
Packit Service |
cbaa14 |
# endif
|
|
Packit Service |
cbaa14 |
# if HAVE_STPCPY_C
|
|
Packit Service |
cbaa14 |
IFUNC_IMPL_ADD (array, i, stpcpy, 1, STPCPY_C)
|
|
Packit Service |
cbaa14 |
# endif
|
|
Packit Service |
cbaa14 |
)
|
|
Packit Service |
cbaa14 |
#endif /* HAVE_STPCPY_IFUNC */
|
|
Packit Service |
cbaa14 |
|
|
Packit Service |
143dd1 |
#if HAVE_STRNCPY_IFUNC
|
|
Packit Service |
143dd1 |
IFUNC_IMPL (i, name, strncpy,
|
|
Packit Service |
143dd1 |
# if HAVE_STRNCPY_Z13
|
|
Packit Service |
143dd1 |
IFUNC_IMPL_ADD (array, i, strncpy,
|
|
Packit Service |
143dd1 |
dl_hwcap & HWCAP_S390_VX, STRNCPY_Z13)
|
|
Packit Service |
143dd1 |
# endif
|
|
Packit Service |
143dd1 |
# if HAVE_STRNCPY_Z900_G5
|
|
Packit Service |
143dd1 |
IFUNC_IMPL_ADD (array, i, strncpy, 1, STRNCPY_Z900_G5)
|
|
Packit Service |
143dd1 |
# endif
|
|
Packit Service |
143dd1 |
)
|
|
Packit Service |
143dd1 |
#endif /* HAVE_STRNCPY_IFUNC */
|
|
Packit Service |
143dd1 |
|
|
Packit Service |
3fb31a |
#if HAVE_STPNCPY_IFUNC
|
|
Packit Service |
3fb31a |
IFUNC_IMPL (i, name, stpncpy,
|
|
Packit Service |
3fb31a |
# if HAVE_STPNCPY_Z13
|
|
Packit Service |
3fb31a |
IFUNC_IMPL_ADD (array, i, stpncpy,
|
|
Packit Service |
3fb31a |
dl_hwcap & HWCAP_S390_VX, STPNCPY_Z13)
|
|
Packit Service |
3fb31a |
# endif
|
|
Packit Service |
3fb31a |
# if HAVE_STPNCPY_C
|
|
Packit Service |
3fb31a |
IFUNC_IMPL_ADD (array, i, stpncpy, 1, STPNCPY_C)
|
|
Packit Service |
3fb31a |
# endif
|
|
Packit Service |
3fb31a |
)
|
|
Packit Service |
3fb31a |
#endif /* HAVE_STPNCPY_IFUNC */
|
|
Packit Service |
3fb31a |
|
|
Packit Service |
db853b |
#if HAVE_STRCAT_IFUNC
|
|
Packit Service |
db853b |
IFUNC_IMPL (i, name, strcat,
|
|
Packit Service |
db853b |
# if HAVE_STRCAT_Z13
|
|
Packit Service |
db853b |
IFUNC_IMPL_ADD (array, i, strcat,
|
|
Packit Service |
db853b |
dl_hwcap & HWCAP_S390_VX, STRCAT_Z13)
|
|
Packit Service |
db853b |
# endif
|
|
Packit Service |
db853b |
# if HAVE_STRCAT_C
|
|
Packit Service |
db853b |
IFUNC_IMPL_ADD (array, i, strcat, 1, STRCAT_C)
|
|
Packit Service |
db853b |
# endif
|
|
Packit Service |
db853b |
)
|
|
Packit Service |
db853b |
#endif /* HAVE_STRCAT_IFUNC */
|
|
Packit Service |
143dd1 |
|
|
Packit Service |
c41a74 |
#if HAVE_STRNCAT_IFUNC
|
|
Packit Service |
c41a74 |
IFUNC_IMPL (i, name, strncat,
|
|
Packit Service |
c41a74 |
# if HAVE_STRNCAT_Z13
|
|
Packit Service |
c41a74 |
IFUNC_IMPL_ADD (array, i, strncat,
|
|
Packit Service |
c41a74 |
dl_hwcap & HWCAP_S390_VX, STRNCAT_Z13)
|
|
Packit Service |
c41a74 |
# endif
|
|
Packit Service |
c41a74 |
# if HAVE_STRNCAT_C
|
|
Packit Service |
c41a74 |
IFUNC_IMPL_ADD (array, i, strncat, 1, STRNCAT_C)
|
|
Packit Service |
c41a74 |
# endif
|
|
Packit Service |
c41a74 |
)
|
|
Packit Service |
c41a74 |
#endif /* HAVE_STRNCAT_IFUNC */
|
|
Packit Service |
c41a74 |
|
|
Packit Service |
32cd59 |
#if HAVE_STRCMP_IFUNC
|
|
Packit Service |
32cd59 |
IFUNC_IMPL (i, name, strcmp,
|
|
Packit Service |
32cd59 |
# if HAVE_STRCMP_Z13
|
|
Packit Service |
32cd59 |
IFUNC_IMPL_ADD (array, i, strcmp,
|
|
Packit Service |
32cd59 |
dl_hwcap & HWCAP_S390_VX, STRCMP_Z13)
|
|
Packit Service |
32cd59 |
# endif
|
|
Packit Service |
32cd59 |
# if HAVE_STRCMP_Z900_G5
|
|
Packit Service |
32cd59 |
IFUNC_IMPL_ADD (array, i, strcmp, 1, STRCMP_Z900_G5)
|
|
Packit Service |
32cd59 |
# endif
|
|
Packit Service |
32cd59 |
)
|
|
Packit Service |
32cd59 |
#endif /* HAVE_STRCMP_IFUNC */
|
|
Packit Service |
32cd59 |
|
|
Packit Service |
12c651 |
#if HAVE_STRNCMP_IFUNC
|
|
Packit Service |
12c651 |
IFUNC_IMPL (i, name, strncmp,
|
|
Packit Service |
12c651 |
# if HAVE_STRNCMP_Z13
|
|
Packit Service |
12c651 |
IFUNC_IMPL_ADD (array, i, strncmp,
|
|
Packit Service |
12c651 |
dl_hwcap & HWCAP_S390_VX, STRNCMP_Z13)
|
|
Packit Service |
12c651 |
# endif
|
|
Packit Service |
12c651 |
# if HAVE_STRNCMP_C
|
|
Packit Service |
12c651 |
IFUNC_IMPL_ADD (array, i, strncmp, 1, STRNCMP_C)
|
|
Packit Service |
12c651 |
# endif
|
|
Packit Service |
12c651 |
)
|
|
Packit Service |
12c651 |
#endif /* HAVE_STRNCMP_IFUNC */
|
|
Packit Service |
12c651 |
|
|
Packit Service |
927e27 |
#if HAVE_STRCHR_IFUNC
|
|
Packit Service |
927e27 |
IFUNC_IMPL (i, name, strchr,
|
|
Packit Service |
927e27 |
# if HAVE_STRCHR_Z13
|
|
Packit Service |
927e27 |
IFUNC_IMPL_ADD (array, i, strchr,
|
|
Packit Service |
927e27 |
dl_hwcap & HWCAP_S390_VX, STRCHR_Z13)
|
|
Packit Service |
927e27 |
# endif
|
|
Packit Service |
927e27 |
# if HAVE_STRCHR_C
|
|
Packit Service |
927e27 |
IFUNC_IMPL_ADD (array, i, strchr, 1, STRCHR_C)
|
|
Packit Service |
927e27 |
# endif
|
|
Packit Service |
927e27 |
)
|
|
Packit Service |
927e27 |
#endif /* HAVE_STRCHR_IFUNC */
|
|
Packit Service |
927e27 |
|
|
Packit Service |
47f860 |
#if HAVE_STRCHRNUL_IFUNC
|
|
Packit Service |
47f860 |
IFUNC_IMPL (i, name, strchrnul,
|
|
Packit Service |
47f860 |
# if HAVE_STRCHRNUL_Z13
|
|
Packit Service |
47f860 |
IFUNC_IMPL_ADD (array, i, strchrnul,
|
|
Packit Service |
47f860 |
dl_hwcap & HWCAP_S390_VX, STRCHRNUL_Z13)
|
|
Packit Service |
47f860 |
# endif
|
|
Packit Service |
47f860 |
# if HAVE_STRCHRNUL_C
|
|
Packit Service |
47f860 |
IFUNC_IMPL_ADD (array, i, strchrnul, 1, STRCHRNUL_C)
|
|
Packit Service |
47f860 |
# endif
|
|
Packit Service |
47f860 |
)
|
|
Packit Service |
47f860 |
#endif /* HAVE_STRCHRNUL_IFUNC */
|
|
Packit Service |
47f860 |
|
|
Packit Service |
1500e6 |
#if HAVE_STRRCHR_IFUNC
|
|
Packit Service |
1500e6 |
IFUNC_IMPL (i, name, strrchr,
|
|
Packit Service |
1500e6 |
# if HAVE_STRRCHR_Z13
|
|
Packit Service |
1500e6 |
IFUNC_IMPL_ADD (array, i, strrchr,
|
|
Packit Service |
1500e6 |
dl_hwcap & HWCAP_S390_VX, STRRCHR_Z13)
|
|
Packit Service |
1500e6 |
# endif
|
|
Packit Service |
1500e6 |
# if HAVE_STRRCHR_C
|
|
Packit Service |
1500e6 |
IFUNC_IMPL_ADD (array, i, strrchr, 1, STRRCHR_C)
|
|
Packit Service |
1500e6 |
# endif
|
|
Packit Service |
1500e6 |
)
|
|
Packit Service |
1500e6 |
#endif /* HAVE_STRRCHR_IFUNC */
|
|
Packit Service |
1500e6 |
|
|
Packit Service |
6a2039 |
#if HAVE_STRSPN_IFUNC
|
|
Packit Service |
6a2039 |
IFUNC_IMPL (i, name, strspn,
|
|
Packit Service |
6a2039 |
# if HAVE_STRSPN_Z13
|
|
Packit Service |
6a2039 |
IFUNC_IMPL_ADD (array, i, strspn,
|
|
Packit Service |
6a2039 |
dl_hwcap & HWCAP_S390_VX, STRSPN_Z13)
|
|
Packit Service |
6a2039 |
# endif
|
|
Packit Service |
6a2039 |
# if HAVE_STRSPN_C
|
|
Packit Service |
6a2039 |
IFUNC_IMPL_ADD (array, i, strspn, 1, STRSPN_C)
|
|
Packit Service |
6a2039 |
# endif
|
|
Packit Service |
6a2039 |
)
|
|
Packit Service |
6a2039 |
#endif /* HAVE_STRSPN_IFUNC */
|
|
Packit Service |
6a2039 |
|
|
Packit Service |
ddbf5a |
#if HAVE_STRPBRK_IFUNC
|
|
Packit Service |
ddbf5a |
IFUNC_IMPL (i, name, strpbrk,
|
|
Packit Service |
ddbf5a |
# if HAVE_STRPBRK_Z13
|
|
Packit Service |
ddbf5a |
IFUNC_IMPL_ADD (array, i, strpbrk,
|
|
Packit Service |
ddbf5a |
dl_hwcap & HWCAP_S390_VX, STRPBRK_Z13)
|
|
Packit Service |
ddbf5a |
# endif
|
|
Packit Service |
ddbf5a |
# if HAVE_STRPBRK_C
|
|
Packit Service |
ddbf5a |
IFUNC_IMPL_ADD (array, i, strpbrk, 1, STRPBRK_C)
|
|
Packit Service |
ddbf5a |
# endif
|
|
Packit Service |
ddbf5a |
)
|
|
Packit Service |
ddbf5a |
#endif /* HAVE_STRPBRK_IFUNC */
|
|
Packit Service |
ddbf5a |
|
|
Packit Service |
f8e8ae |
#if HAVE_STRCSPN_IFUNC
|
|
Packit Service |
f8e8ae |
IFUNC_IMPL (i, name, strcspn,
|
|
Packit Service |
f8e8ae |
# if HAVE_STRCSPN_Z13
|
|
Packit Service |
f8e8ae |
IFUNC_IMPL_ADD (array, i, strcspn,
|
|
Packit Service |
f8e8ae |
dl_hwcap & HWCAP_S390_VX, STRCSPN_Z13)
|
|
Packit Service |
f8e8ae |
# endif
|
|
Packit Service |
f8e8ae |
# if HAVE_STRCSPN_C
|
|
Packit Service |
f8e8ae |
IFUNC_IMPL_ADD (array, i, strcspn, 1, STRCSPN_C)
|
|
Packit Service |
f8e8ae |
# endif
|
|
Packit Service |
f8e8ae |
)
|
|
Packit Service |
f8e8ae |
#endif /* HAVE_STRCSPN_IFUNC */
|
|
Packit Service |
f8e8ae |
|
|
Packit Service |
376870 |
#if HAVE_MEMCHR_IFUNC
|
|
Packit Service |
376870 |
IFUNC_IMPL (i, name, memchr,
|
|
Packit Service |
376870 |
# if HAVE_MEMCHR_Z13
|
|
Packit Service |
376870 |
IFUNC_IMPL_ADD (array, i, memchr,
|
|
Packit Service |
376870 |
dl_hwcap & HWCAP_S390_VX, MEMCHR_Z13)
|
|
Packit Service |
376870 |
# endif
|
|
Packit Service |
376870 |
# if HAVE_MEMCHR_Z900_G5
|
|
Packit Service |
376870 |
IFUNC_IMPL_ADD (array, i, memchr, 1, MEMCHR_Z900_G5)
|
|
Packit Service |
376870 |
# endif
|
|
Packit Service |
376870 |
)
|
|
Packit Service |
376870 |
#endif /* HAVE_MEMCHR_IFUNC */
|
|
Packit Service |
376870 |
|
|
Packit Service |
a52cc0 |
#if HAVE_RAWMEMCHR_IFUNC
|
|
Packit Service |
a52cc0 |
IFUNC_IMPL (i, name, rawmemchr,
|
|
Packit Service |
a52cc0 |
# if HAVE_RAWMEMCHR_Z13
|
|
Packit Service |
a52cc0 |
IFUNC_IMPL_ADD (array, i, rawmemchr,
|
|
Packit Service |
a52cc0 |
dl_hwcap & HWCAP_S390_VX, RAWMEMCHR_Z13)
|
|
Packit Service |
a52cc0 |
# endif
|
|
Packit Service |
a52cc0 |
# if HAVE_RAWMEMCHR_C
|
|
Packit Service |
a52cc0 |
IFUNC_IMPL_ADD (array, i, rawmemchr, 1, RAWMEMCHR_C)
|
|
Packit Service |
a52cc0 |
# endif
|
|
Packit Service |
a52cc0 |
)
|
|
Packit Service |
a52cc0 |
#endif /* HAVE_RAWMEMCHR_IFUNC */
|
|
Packit Service |
a52cc0 |
|
|
Packit Service |
3aaf82 |
#if HAVE_MEMCCPY_IFUNC
|
|
Packit Service |
3aaf82 |
IFUNC_IMPL (i, name, memccpy,
|
|
Packit Service |
3aaf82 |
# if HAVE_MEMCCPY_Z13
|
|
Packit Service |
3aaf82 |
IFUNC_IMPL_ADD (array, i, memccpy,
|
|
Packit Service |
3aaf82 |
dl_hwcap & HWCAP_S390_VX, MEMCCPY_Z13)
|
|
Packit Service |
3aaf82 |
# endif
|
|
Packit Service |
3aaf82 |
# if HAVE_MEMCCPY_C
|
|
Packit Service |
3aaf82 |
IFUNC_IMPL_ADD (array, i, memccpy, 1, MEMCCPY_C)
|
|
Packit Service |
3aaf82 |
# endif
|
|
Packit Service |
3aaf82 |
)
|
|
Packit Service |
3aaf82 |
#endif /* HAVE_MEMCCPY_IFUNC */
|
|
Packit Service |
3aaf82 |
|
|
Packit Service |
01a621 |
#if HAVE_MEMRCHR_IFUNC
|
|
Packit Service |
01a621 |
IFUNC_IMPL (i, name, memrchr,
|
|
Packit Service |
01a621 |
# if HAVE_MEMRCHR_Z13
|
|
Packit Service |
01a621 |
IFUNC_IMPL_ADD (array, i, memrchr,
|
|
Packit Service |
01a621 |
dl_hwcap & HWCAP_S390_VX, MEMRCHR_Z13)
|
|
Packit Service |
01a621 |
# endif
|
|
Packit Service |
01a621 |
# if HAVE_MEMRCHR_C
|
|
Packit Service |
01a621 |
IFUNC_IMPL_ADD (array, i, memrchr, 1, MEMRCHR_C)
|
|
Packit Service |
01a621 |
# endif
|
|
Packit Service |
01a621 |
)
|
|
Packit Service |
01a621 |
#endif /* HAVE_MEMRCHR_IFUNC */
|
|
Packit Service |
01a621 |
|
|
Packit Service |
cb824d |
#if HAVE_WCSLEN_IFUNC
|
|
Packit Service |
cb824d |
IFUNC_IMPL (i, name, wcslen,
|
|
Packit Service |
cb824d |
# if HAVE_WCSLEN_Z13
|
|
Packit Service |
cb824d |
IFUNC_IMPL_ADD (array, i, wcslen,
|
|
Packit Service |
cb824d |
dl_hwcap & HWCAP_S390_VX, WCSLEN_Z13)
|
|
Packit Service |
cb824d |
# endif
|
|
Packit Service |
cb824d |
# if HAVE_WCSLEN_C
|
|
Packit Service |
cb824d |
IFUNC_IMPL_ADD (array, i, wcslen, 1, WCSLEN_C)
|
|
Packit Service |
cb824d |
# endif
|
|
Packit Service |
cb824d |
)
|
|
Packit Service |
cb824d |
#endif /* HAVE_WCSLEN_IFUNC */
|
|
Packit Service |
cb824d |
|
|
Packit Service |
b59374 |
#if HAVE_WCSNLEN_IFUNC
|
|
Packit Service |
b59374 |
IFUNC_IMPL (i, name, wcsnlen,
|
|
Packit Service |
b59374 |
# if HAVE_WCSNLEN_Z13
|
|
Packit Service |
b59374 |
IFUNC_IMPL_ADD (array, i, wcsnlen,
|
|
Packit Service |
b59374 |
dl_hwcap & HWCAP_S390_VX, WCSNLEN_Z13)
|
|
Packit Service |
b59374 |
# endif
|
|
Packit Service |
b59374 |
# if HAVE_WCSNLEN_C
|
|
Packit Service |
b59374 |
IFUNC_IMPL_ADD (array, i, wcsnlen, 1, WCSNLEN_C)
|
|
Packit Service |
b59374 |
# endif
|
|
Packit Service |
b59374 |
)
|
|
Packit Service |
b59374 |
#endif /* HAVE_WCSNLEN_IFUNC */
|
|
Packit Service |
b59374 |
|
|
Packit Service |
2f485d |
#if HAVE_WCSCPY_IFUNC
|
|
Packit Service |
2f485d |
IFUNC_IMPL (i, name, wcscpy,
|
|
Packit Service |
2f485d |
# if HAVE_WCSCPY_Z13
|
|
Packit Service |
2f485d |
IFUNC_IMPL_ADD (array, i, wcscpy,
|
|
Packit Service |
2f485d |
dl_hwcap & HWCAP_S390_VX, WCSCPY_Z13)
|
|
Packit Service |
2f485d |
# endif
|
|
Packit Service |
2f485d |
# if HAVE_WCSCPY_C
|
|
Packit Service |
2f485d |
IFUNC_IMPL_ADD (array, i, wcscpy, 1, WCSCPY_C)
|
|
Packit Service |
2f485d |
# endif
|
|
Packit Service |
2f485d |
)
|
|
Packit Service |
2f485d |
#endif /* HAVE_WCSCPY_IFUNC */
|
|
Packit Service |
2f485d |
|
|
Packit Service |
227c06 |
#if HAVE_WCPCPY_IFUNC
|
|
Packit Service |
227c06 |
IFUNC_IMPL (i, name, wcpcpy,
|
|
Packit Service |
227c06 |
# if HAVE_WCPCPY_Z13
|
|
Packit Service |
227c06 |
IFUNC_IMPL_ADD (array, i, wcpcpy,
|
|
Packit Service |
227c06 |
dl_hwcap & HWCAP_S390_VX, WCPCPY_Z13)
|
|
Packit Service |
227c06 |
# endif
|
|
Packit Service |
227c06 |
# if HAVE_WCPCPY_C
|
|
Packit Service |
227c06 |
IFUNC_IMPL_ADD (array, i, wcpcpy, 1, WCPCPY_C)
|
|
Packit Service |
227c06 |
# endif
|
|
Packit Service |
227c06 |
)
|
|
Packit Service |
227c06 |
#endif /* HAVE_WCPCPY_IFUNC */
|
|
Packit Service |
227c06 |
|
|
Packit Service |
8aebd1 |
#if HAVE_WCSNCPY_IFUNC
|
|
Packit Service |
8aebd1 |
IFUNC_IMPL (i, name, wcsncpy,
|
|
Packit Service |
8aebd1 |
# if HAVE_WCSNCPY_Z13
|
|
Packit Service |
8aebd1 |
IFUNC_IMPL_ADD (array, i, wcsncpy,
|
|
Packit Service |
8aebd1 |
dl_hwcap & HWCAP_S390_VX, WCSNCPY_Z13)
|
|
Packit Service |
8aebd1 |
# endif
|
|
Packit Service |
8aebd1 |
# if HAVE_WCSNCPY_C
|
|
Packit Service |
8aebd1 |
IFUNC_IMPL_ADD (array, i, wcsncpy, 1, WCSNCPY_C)
|
|
Packit Service |
8aebd1 |
# endif
|
|
Packit Service |
8aebd1 |
)
|
|
Packit Service |
8aebd1 |
#endif /* HAVE_WCSNCPY_IFUNC */
|
|
Packit Service |
8aebd1 |
|
|
Packit Service |
895212 |
#if HAVE_WCPNCPY_IFUNC
|
|
Packit Service |
895212 |
IFUNC_IMPL (i, name, wcpncpy,
|
|
Packit Service |
895212 |
# if HAVE_WCPNCPY_Z13
|
|
Packit Service |
895212 |
IFUNC_IMPL_ADD (array, i, wcpncpy,
|
|
Packit Service |
895212 |
dl_hwcap & HWCAP_S390_VX, WCPNCPY_Z13)
|
|
Packit Service |
895212 |
# endif
|
|
Packit Service |
895212 |
# if HAVE_WCPNCPY_C
|
|
Packit Service |
895212 |
IFUNC_IMPL_ADD (array, i, wcpncpy, 1, WCPNCPY_C)
|
|
Packit Service |
895212 |
# endif
|
|
Packit Service |
895212 |
)
|
|
Packit Service |
895212 |
#endif /* HAVE_WCPNCPY_IFUNC */
|
|
Packit Service |
895212 |
|
|
Packit Service |
1c5418 |
#ifdef HAVE_S390_VX_ASM_SUPPORT
|
|
Packit Service |
1c5418 |
|
|
Packit Service |
1c5418 |
# define IFUNC_VX_IMPL(FUNC) \
|
|
Packit Service |
1c5418 |
IFUNC_IMPL (i, name, FUNC, \
|
|
Packit Service |
1c5418 |
IFUNC_IMPL_ADD (array, i, FUNC, dl_hwcap & HWCAP_S390_VX, \
|
|
Packit Service |
1c5418 |
__##FUNC##_vx) \
|
|
Packit Service |
1c5418 |
IFUNC_IMPL_ADD (array, i, FUNC, 1, __##FUNC##_c))
|
|
Packit Service |
1c5418 |
|
|
Packit Service |
1c5418 |
IFUNC_VX_IMPL (wcscat);
|
|
Packit Service |
1c5418 |
|
|
Packit Service |
1c5418 |
IFUNC_VX_IMPL (wcsncat);
|
|
Packit Service |
1c5418 |
|
|
Packit Service |
1c5418 |
IFUNC_VX_IMPL (wcscmp);
|
|
Packit Service |
1c5418 |
|
|
Packit Service |
1c5418 |
IFUNC_VX_IMPL (wcsncmp);
|
|
Packit Service |
1c5418 |
|
|
Packit Service |
1c5418 |
IFUNC_VX_IMPL (wcschr);
|
|
Packit Service |
1c5418 |
|
|
Packit Service |
1c5418 |
IFUNC_VX_IMPL (wcschrnul);
|
|
Packit Service |
1c5418 |
|
|
Packit Service |
1c5418 |
IFUNC_VX_IMPL (wcsrchr);
|
|
Packit Service |
1c5418 |
|
|
Packit Service |
1c5418 |
IFUNC_VX_IMPL (wcsspn);
|
|
Packit Service |
1c5418 |
|
|
Packit Service |
1c5418 |
IFUNC_VX_IMPL (wcspbrk);
|
|
Packit Service |
1c5418 |
|
|
Packit Service |
1c5418 |
IFUNC_VX_IMPL (wcscspn);
|
|
Packit Service |
1c5418 |
|
|
Packit Service |
1c5418 |
IFUNC_VX_IMPL (wmemchr);
|
|
Packit Service |
1c5418 |
|
|
Packit Service |
1c5418 |
IFUNC_VX_IMPL (wmemset);
|
|
Packit Service |
1c5418 |
|
|
Packit Service |
1c5418 |
IFUNC_VX_IMPL (wmemcmp);
|
|
Packit Service |
1c5418 |
|
|
Packit Service |
1c5418 |
#endif /* HAVE_S390_VX_ASM_SUPPORT */
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
return i;
|
|
Packit Service |
82fcde |
}
|