Blame sysdeps/s390/multiarch/ifunc-impl-list.c

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 5d5063
#include <ifunc-memset.h>
Packit Service d9ef1b
#include <ifunc-memcmp.h>
Packit Service 29031e
#include <ifunc-memcpy.h>
Packit Service 04a158
#include <ifunc-strstr.h>
Packit Service 72e31c
#include <ifunc-memmem.h>
Packit Service 7e7614
#include <ifunc-strlen.h>
Packit Service caf8d1
#include <ifunc-strnlen.h>
Packit Service 2db708
#include <ifunc-strcpy.h>
Packit Service a27122
#include <ifunc-stpcpy.h>
Packit Service cc21de
#include <ifunc-strncpy.h>
Packit Service 737c37
#include <ifunc-stpncpy.h>
Packit Service 634342
#include <ifunc-strcat.h>
Packit Service c9657b
#include <ifunc-strncat.h>
Packit Service b9b3ef
#include <ifunc-strcmp.h>
Packit Service e8dc85
#include <ifunc-strncmp.h>
Packit Service b6166e
#include <ifunc-strchr.h>
Packit Service ae4c77
#include <ifunc-strchrnul.h>
Packit Service d9910f
#include <ifunc-strrchr.h>
Packit Service 004a8b
#include <ifunc-strspn.h>
Packit Service 388d29
#include <ifunc-strpbrk.h>
Packit Service a64de6
#include <ifunc-strcspn.h>
Packit Service d0d4c8
#include <ifunc-memchr.h>
Packit Service 4ca88c
#include <ifunc-rawmemchr.h>
Packit Service 14e5ba
#include <ifunc-memccpy.h>
Packit Service 67fea7
#include <ifunc-memrchr.h>
Packit Service b4872b
#include <ifunc-wcslen.h>
Packit Service 08e4c4
#include <ifunc-wcsnlen.h>
Packit Service 3a835c
#include <ifunc-wcscpy.h>
Packit Service d4138b
#include <ifunc-wcpcpy.h>
Packit Service 4527f5
#include <ifunc-wcsncpy.h>
Packit Service 38d4ff
#include <ifunc-wcpncpy.h>
Packit Service 160f2c
#include <ifunc-wcscat.h>
Packit Service 53966a
#include <ifunc-wcsncat.h>
Packit Service e1d8ec
#include <ifunc-wcscmp.h>
Packit Service 564184
#include <ifunc-wcsncmp.h>
Packit Service dab6cd
#include <ifunc-wcschr.h>
Packit Service c3cdb2
#include <ifunc-wcschrnul.h>
Packit Service a80c31
#include <ifunc-wcsrchr.h>
Packit Service ad24b1
#include <ifunc-wcsspn.h>
Packit Service 137d02
#include <ifunc-wcspbrk.h>
Packit Service 569bce
#include <ifunc-wcscspn.h>
Packit Service 85dd02
#include <ifunc-wmemchr.h>
Packit Service f5edf2
#include <ifunc-wmemset.h>
Packit Service 074208
#include <ifunc-wmemcmp.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 5d5063
#if HAVE_MEMSET_IFUNC
Packit 6c4009
  IFUNC_IMPL (i, name, memset,
Packit Service 5d5063
# if HAVE_MEMSET_Z196
Packit 6c4009
	      IFUNC_IMPL_ADD (array, i, memset,
Packit Service 5d5063
			      S390_IS_Z196 (stfle_bits), MEMSET_Z196)
Packit Service 5d5063
# endif
Packit Service 5d5063
# if HAVE_MEMSET_Z10
Packit 6c4009
	      IFUNC_IMPL_ADD (array, i, memset,
Packit Service 5d5063
			      S390_IS_Z10 (stfle_bits), MEMSET_Z10)
Packit Service 5d5063
# endif
Packit Service 5d5063
# if HAVE_MEMSET_Z900_G5
Packit Service 5d5063
	      IFUNC_IMPL_ADD (array, i, memset, 1, MEMSET_Z900_G5)
Packit Service 5d5063
# endif
Packit Service 5d5063
	      )
Packit Service 311b6e
Packit Service 311b6e
  /* Note: bzero is implemented in memset.  */
Packit Service 311b6e
  IFUNC_IMPL (i, name, bzero,
Packit Service 311b6e
# if HAVE_MEMSET_Z196
Packit Service 311b6e
	      IFUNC_IMPL_ADD (array, i, bzero,
Packit Service 311b6e
			      S390_IS_Z196 (stfle_bits), BZERO_Z196)
Packit Service 311b6e
# endif
Packit Service 311b6e
# if HAVE_MEMSET_Z10
Packit Service 311b6e
	      IFUNC_IMPL_ADD (array, i, bzero,
Packit Service 311b6e
			      S390_IS_Z10 (stfle_bits), BZERO_Z10)
Packit Service 311b6e
# endif
Packit Service 311b6e
# if HAVE_MEMSET_Z900_G5
Packit Service 311b6e
	      IFUNC_IMPL_ADD (array, i, bzero, 1, BZERO_Z900_G5)
Packit Service 311b6e
# endif
Packit Service 311b6e
	      )
Packit Service 5d5063
#endif /* HAVE_MEMSET_IFUNC */
Packit Service 6de65a
Packit Service d9ef1b
#if HAVE_MEMCMP_IFUNC
Packit 6c4009
  IFUNC_IMPL (i, name, memcmp,
Packit Service d9ef1b
# if HAVE_MEMCMP_Z196
Packit 6c4009
	      IFUNC_IMPL_ADD (array, i, memcmp,
Packit Service d9ef1b
			      S390_IS_Z196 (stfle_bits), MEMCMP_Z196)
Packit Service d9ef1b
# endif
Packit Service d9ef1b
# if HAVE_MEMCMP_Z10
Packit 6c4009
	      IFUNC_IMPL_ADD (array, i, memcmp,
Packit Service d9ef1b
			      S390_IS_Z10 (stfle_bits), MEMCMP_Z10)
Packit Service d9ef1b
# endif
Packit Service d9ef1b
# if HAVE_MEMCMP_Z900_G5
Packit Service d9ef1b
	      IFUNC_IMPL_ADD (array, i, memcmp, 1, MEMCMP_Z900_G5)
Packit Service d9ef1b
# endif
Packit Service d9ef1b
	      )
Packit Service d9ef1b
#endif /* HAVE_MEMCMP_IFUNC */
Packit Service 6de65a
Packit Service 29031e
#if HAVE_MEMCPY_IFUNC
Packit 6c4009
  IFUNC_IMPL (i, name, memcpy,
Packit Service 29031e
# if HAVE_MEMCPY_Z196
Packit 6c4009
	      IFUNC_IMPL_ADD (array, i, memcpy,
Packit Service 29031e
			      S390_IS_Z196 (stfle_bits), MEMCPY_Z196)
Packit Service 29031e
# endif
Packit Service 29031e
# if HAVE_MEMCPY_Z10
Packit 6c4009
	      IFUNC_IMPL_ADD (array, i, memcpy,
Packit Service 29031e
			      S390_IS_Z10 (stfle_bits), MEMCPY_Z10)
Packit Service 29031e
# endif
Packit Service 29031e
# if HAVE_MEMCPY_Z900_G5
Packit Service 29031e
	      IFUNC_IMPL_ADD (array, i, memcpy, 1, MEMCPY_Z900_G5)
Packit Service 29031e
# endif
Packit Service 29031e
	      )
Packit 6c4009
Packit 6c4009
  IFUNC_IMPL (i, name, mempcpy,
Packit Service 29031e
# if HAVE_MEMCPY_Z196
Packit 6c4009
	      IFUNC_IMPL_ADD (array, i, mempcpy,
Packit Service 29031e
			      S390_IS_Z196 (stfle_bits), MEMPCPY_Z196)
Packit Service 29031e
# endif
Packit Service 29031e
# if HAVE_MEMCPY_Z10
Packit 6c4009
	      IFUNC_IMPL_ADD (array, i, mempcpy,
Packit Service 29031e
			      S390_IS_Z10 (stfle_bits), MEMPCPY_Z10)
Packit Service 29031e
# endif
Packit Service 29031e
# if HAVE_MEMCPY_Z900_G5
Packit Service 29031e
	      IFUNC_IMPL_ADD (array, i, mempcpy, 1, MEMPCPY_Z900_G5)
Packit Service 29031e
# endif
Packit Service 29031e
	      )
Packit Service 29031e
#endif /* HAVE_MEMCPY_IFUNC  */
Packit Service 6de65a
Packit Service dd06b0
#if HAVE_MEMMOVE_IFUNC
Packit Service dd06b0
    IFUNC_IMPL (i, name, memmove,
Packit Service 8334c5
# if HAVE_MEMMOVE_ARCH13
Packit Service 8334c5
		IFUNC_IMPL_ADD (array, i, memmove,
Packit Service 8334c5
				S390_IS_ARCH13_MIE3 (stfle_bits),
Packit Service 8334c5
				MEMMOVE_ARCH13)
Packit Service 8334c5
# endif
Packit Service dd06b0
# if HAVE_MEMMOVE_Z13
Packit Service dd06b0
		IFUNC_IMPL_ADD (array, i, memmove,
Packit Service dd06b0
				dl_hwcap & HWCAP_S390_VX, MEMMOVE_Z13)
Packit Service dd06b0
# endif
Packit Service dd06b0
# if HAVE_MEMMOVE_C
Packit Service dd06b0
		IFUNC_IMPL_ADD (array, i, memmove, 1, MEMMOVE_C)
Packit Service dd06b0
# endif
Packit Service dd06b0
		)
Packit Service dd06b0
#endif /* HAVE_MEMMOVE_IFUNC  */
Packit Service dd06b0
Packit Service 04a158
#if HAVE_STRSTR_IFUNC
Packit Service 04a158
    IFUNC_IMPL (i, name, strstr,
Packit Service 3098ab
# if HAVE_STRSTR_ARCH13
Packit Service 3098ab
		IFUNC_IMPL_ADD (array, i, strstr,
Packit Service 3098ab
				dl_hwcap & HWCAP_S390_VXRS_EXT2, STRSTR_ARCH13)
Packit Service 3098ab
# endif
Packit Service 04a158
# if HAVE_STRSTR_Z13
Packit Service 04a158
		IFUNC_IMPL_ADD (array, i, strstr,
Packit Service 04a158
				dl_hwcap & HWCAP_S390_VX, STRSTR_Z13)
Packit Service 04a158
# endif
Packit Service 04a158
# if HAVE_STRSTR_C
Packit Service 04a158
		IFUNC_IMPL_ADD (array, i, strstr, 1, STRSTR_C)
Packit Service 04a158
# endif
Packit Service 04a158
		)
Packit Service 04a158
#endif /* HAVE_STRSTR_IFUNC  */
Packit Service 04a158
Packit Service 72e31c
#if HAVE_MEMMEM_IFUNC
Packit Service 72e31c
    IFUNC_IMPL (i, name, memmem,
Packit Service a0a256
# if HAVE_MEMMEM_ARCH13
Packit Service a0a256
	      IFUNC_IMPL_ADD (array, i, memmem,
Packit Service a0a256
			      dl_hwcap & HWCAP_S390_VXRS_EXT2, MEMMEM_ARCH13)
Packit Service a0a256
# endif
Packit Service 72e31c
# if HAVE_MEMMEM_Z13
Packit Service 72e31c
		IFUNC_IMPL_ADD (array, i, memmem,
Packit Service 72e31c
				dl_hwcap & HWCAP_S390_VX, MEMMEM_Z13)
Packit Service 72e31c
# endif
Packit Service 72e31c
# if HAVE_MEMMEM_C
Packit Service 72e31c
		IFUNC_IMPL_ADD (array, i, memmem, 1, MEMMEM_C)
Packit Service 72e31c
# endif
Packit Service 72e31c
		)
Packit Service 72e31c
#endif /* HAVE_MEMMEM_IFUNC  */
Packit Service 72e31c
Packit Service 7e7614
#if HAVE_STRLEN_IFUNC
Packit Service 7e7614
    IFUNC_IMPL (i, name, strlen,
Packit Service 7e7614
# if HAVE_STRLEN_Z13
Packit Service 7e7614
		IFUNC_IMPL_ADD (array, i, strlen,
Packit Service 7e7614
				dl_hwcap & HWCAP_S390_VX, STRLEN_Z13)
Packit Service 7e7614
# endif
Packit Service 7e7614
# if HAVE_STRLEN_C
Packit Service 7e7614
		IFUNC_IMPL_ADD (array, i, strlen, 1, STRLEN_C)
Packit Service 7e7614
# endif
Packit Service 7e7614
		)
Packit Service 7e7614
#endif /* HAVE_STRLEN_IFUNC  */
Packit Service 7e7614
Packit Service caf8d1
#if HAVE_STRNLEN_IFUNC
Packit Service caf8d1
    IFUNC_IMPL (i, name, strnlen,
Packit Service caf8d1
# if HAVE_STRNLEN_Z13
Packit Service caf8d1
		IFUNC_IMPL_ADD (array, i, strnlen,
Packit Service caf8d1
				dl_hwcap & HWCAP_S390_VX, STRNLEN_Z13)
Packit Service caf8d1
# endif
Packit Service caf8d1
# if HAVE_STRNLEN_C
Packit Service caf8d1
		IFUNC_IMPL_ADD (array, i, strnlen, 1, STRNLEN_C)
Packit Service caf8d1
# endif
Packit Service caf8d1
		)
Packit Service caf8d1
#endif /* HAVE_STRNLEN_IFUNC  */
Packit Service caf8d1
Packit Service 2db708
#if HAVE_STRCPY_IFUNC
Packit Service 2db708
    IFUNC_IMPL (i, name, strcpy,
Packit Service 2db708
# if HAVE_STRCPY_Z13
Packit Service 2db708
		IFUNC_IMPL_ADD (array, i, strcpy,
Packit Service 2db708
				dl_hwcap & HWCAP_S390_VX, STRCPY_Z13)
Packit Service 2db708
# endif
Packit Service 2db708
# if HAVE_STRCPY_Z900_G5
Packit Service 2db708
		IFUNC_IMPL_ADD (array, i, strcpy, 1, STRCPY_Z900_G5)
Packit Service 2db708
# endif
Packit Service 2db708
		)
Packit Service 2db708
#endif /* HAVE_STRCPY_IFUNC  */
Packit Service 2db708
Packit Service a27122
#if HAVE_STPCPY_IFUNC
Packit Service a27122
    IFUNC_IMPL (i, name, stpcpy,
Packit Service a27122
# if HAVE_STPCPY_Z13
Packit Service a27122
		IFUNC_IMPL_ADD (array, i, stpcpy,
Packit Service a27122
				dl_hwcap & HWCAP_S390_VX, STPCPY_Z13)
Packit Service a27122
# endif
Packit Service a27122
# if HAVE_STPCPY_C
Packit Service a27122
		IFUNC_IMPL_ADD (array, i, stpcpy, 1, STPCPY_C)
Packit Service a27122
# endif
Packit Service a27122
		)
Packit Service a27122
#endif /* HAVE_STPCPY_IFUNC  */
Packit Service a27122
Packit Service cc21de
#if HAVE_STRNCPY_IFUNC
Packit Service cc21de
    IFUNC_IMPL (i, name, strncpy,
Packit Service cc21de
# if HAVE_STRNCPY_Z13
Packit Service cc21de
		IFUNC_IMPL_ADD (array, i, strncpy,
Packit Service cc21de
				dl_hwcap & HWCAP_S390_VX, STRNCPY_Z13)
Packit Service cc21de
# endif
Packit Service cc21de
# if HAVE_STRNCPY_Z900_G5
Packit Service cc21de
		IFUNC_IMPL_ADD (array, i, strncpy, 1, STRNCPY_Z900_G5)
Packit Service cc21de
# endif
Packit Service cc21de
		)
Packit Service cc21de
#endif /* HAVE_STRNCPY_IFUNC  */
Packit Service cc21de
Packit Service 737c37
#if HAVE_STPNCPY_IFUNC
Packit Service 737c37
    IFUNC_IMPL (i, name, stpncpy,
Packit Service 737c37
# if HAVE_STPNCPY_Z13
Packit Service 737c37
		IFUNC_IMPL_ADD (array, i, stpncpy,
Packit Service 737c37
				dl_hwcap & HWCAP_S390_VX, STPNCPY_Z13)
Packit Service 737c37
# endif
Packit Service 737c37
# if HAVE_STPNCPY_C
Packit Service 737c37
		IFUNC_IMPL_ADD (array, i, stpncpy, 1, STPNCPY_C)
Packit Service 737c37
# endif
Packit Service 737c37
		)
Packit Service 737c37
#endif /* HAVE_STPNCPY_IFUNC  */
Packit Service 737c37
Packit Service 634342
#if HAVE_STRCAT_IFUNC
Packit Service 634342
    IFUNC_IMPL (i, name, strcat,
Packit Service 634342
# if HAVE_STRCAT_Z13
Packit Service 634342
		IFUNC_IMPL_ADD (array, i, strcat,
Packit Service 634342
				dl_hwcap & HWCAP_S390_VX, STRCAT_Z13)
Packit Service 634342
# endif
Packit Service 634342
# if HAVE_STRCAT_C
Packit Service 634342
		IFUNC_IMPL_ADD (array, i, strcat, 1, STRCAT_C)
Packit Service 634342
# endif
Packit Service 634342
		)
Packit Service 634342
#endif /* HAVE_STRCAT_IFUNC  */
Packit Service cc21de
Packit Service c9657b
#if HAVE_STRNCAT_IFUNC
Packit Service c9657b
    IFUNC_IMPL (i, name, strncat,
Packit Service c9657b
# if HAVE_STRNCAT_Z13
Packit Service c9657b
		IFUNC_IMPL_ADD (array, i, strncat,
Packit Service c9657b
				dl_hwcap & HWCAP_S390_VX, STRNCAT_Z13)
Packit Service c9657b
# endif
Packit Service c9657b
# if HAVE_STRNCAT_C
Packit Service c9657b
		IFUNC_IMPL_ADD (array, i, strncat, 1, STRNCAT_C)
Packit Service c9657b
# endif
Packit Service c9657b
		)
Packit Service c9657b
#endif /* HAVE_STRNCAT_IFUNC  */
Packit Service c9657b
Packit Service b9b3ef
#if HAVE_STRCMP_IFUNC
Packit Service b9b3ef
    IFUNC_IMPL (i, name, strcmp,
Packit Service b9b3ef
# if HAVE_STRCMP_Z13
Packit Service b9b3ef
		IFUNC_IMPL_ADD (array, i, strcmp,
Packit Service b9b3ef
				dl_hwcap & HWCAP_S390_VX, STRCMP_Z13)
Packit Service b9b3ef
# endif
Packit Service b9b3ef
# if HAVE_STRCMP_Z900_G5
Packit Service b9b3ef
		IFUNC_IMPL_ADD (array, i, strcmp, 1, STRCMP_Z900_G5)
Packit Service b9b3ef
# endif
Packit Service b9b3ef
		)
Packit Service b9b3ef
#endif /* HAVE_STRCMP_IFUNC  */
Packit Service b9b3ef
Packit Service e8dc85
#if HAVE_STRNCMP_IFUNC
Packit Service e8dc85
    IFUNC_IMPL (i, name, strncmp,
Packit Service e8dc85
# if HAVE_STRNCMP_Z13
Packit Service e8dc85
		IFUNC_IMPL_ADD (array, i, strncmp,
Packit Service e8dc85
				dl_hwcap & HWCAP_S390_VX, STRNCMP_Z13)
Packit Service e8dc85
# endif
Packit Service e8dc85
# if HAVE_STRNCMP_C
Packit Service e8dc85
		IFUNC_IMPL_ADD (array, i, strncmp, 1, STRNCMP_C)
Packit Service e8dc85
# endif
Packit Service e8dc85
		)
Packit Service e8dc85
#endif /* HAVE_STRNCMP_IFUNC  */
Packit Service e8dc85
Packit Service b6166e
#if HAVE_STRCHR_IFUNC
Packit Service b6166e
    IFUNC_IMPL (i, name, strchr,
Packit Service b6166e
# if HAVE_STRCHR_Z13
Packit Service b6166e
		IFUNC_IMPL_ADD (array, i, strchr,
Packit Service b6166e
				dl_hwcap & HWCAP_S390_VX, STRCHR_Z13)
Packit Service b6166e
# endif
Packit Service b6166e
# if HAVE_STRCHR_C
Packit Service b6166e
		IFUNC_IMPL_ADD (array, i, strchr, 1, STRCHR_C)
Packit Service b6166e
# endif
Packit Service b6166e
		)
Packit Service b6166e
#endif /* HAVE_STRCHR_IFUNC  */
Packit Service b6166e
Packit Service ae4c77
#if HAVE_STRCHRNUL_IFUNC
Packit Service ae4c77
    IFUNC_IMPL (i, name, strchrnul,
Packit Service ae4c77
# if HAVE_STRCHRNUL_Z13
Packit Service ae4c77
		IFUNC_IMPL_ADD (array, i, strchrnul,
Packit Service ae4c77
				dl_hwcap & HWCAP_S390_VX, STRCHRNUL_Z13)
Packit Service ae4c77
# endif
Packit Service ae4c77
# if HAVE_STRCHRNUL_C
Packit Service ae4c77
		IFUNC_IMPL_ADD (array, i, strchrnul, 1, STRCHRNUL_C)
Packit Service ae4c77
# endif
Packit Service ae4c77
		)
Packit Service ae4c77
#endif /* HAVE_STRCHRNUL_IFUNC  */
Packit Service ae4c77
Packit Service d9910f
#if HAVE_STRRCHR_IFUNC
Packit Service d9910f
    IFUNC_IMPL (i, name, strrchr,
Packit Service d9910f
# if HAVE_STRRCHR_Z13
Packit Service d9910f
		IFUNC_IMPL_ADD (array, i, strrchr,
Packit Service d9910f
				dl_hwcap & HWCAP_S390_VX, STRRCHR_Z13)
Packit Service d9910f
# endif
Packit Service d9910f
# if HAVE_STRRCHR_C
Packit Service d9910f
		IFUNC_IMPL_ADD (array, i, strrchr, 1, STRRCHR_C)
Packit Service d9910f
# endif
Packit Service d9910f
		)
Packit Service d9910f
#endif /* HAVE_STRRCHR_IFUNC  */
Packit Service d9910f
Packit Service 004a8b
#if HAVE_STRSPN_IFUNC
Packit Service 004a8b
    IFUNC_IMPL (i, name, strspn,
Packit Service 004a8b
# if HAVE_STRSPN_Z13
Packit Service 004a8b
		IFUNC_IMPL_ADD (array, i, strspn,
Packit Service 004a8b
				dl_hwcap & HWCAP_S390_VX, STRSPN_Z13)
Packit Service 004a8b
# endif
Packit Service 004a8b
# if HAVE_STRSPN_C
Packit Service 004a8b
		IFUNC_IMPL_ADD (array, i, strspn, 1, STRSPN_C)
Packit Service 004a8b
# endif
Packit Service 004a8b
		)
Packit Service 004a8b
#endif /* HAVE_STRSPN_IFUNC  */
Packit Service 004a8b
Packit Service 388d29
#if HAVE_STRPBRK_IFUNC
Packit Service 388d29
    IFUNC_IMPL (i, name, strpbrk,
Packit Service 388d29
# if HAVE_STRPBRK_Z13
Packit Service 388d29
		IFUNC_IMPL_ADD (array, i, strpbrk,
Packit Service 388d29
				dl_hwcap & HWCAP_S390_VX, STRPBRK_Z13)
Packit Service 388d29
# endif
Packit Service 388d29
# if HAVE_STRPBRK_C
Packit Service 388d29
		IFUNC_IMPL_ADD (array, i, strpbrk, 1, STRPBRK_C)
Packit Service 388d29
# endif
Packit Service 388d29
		)
Packit Service 388d29
#endif /* HAVE_STRPBRK_IFUNC  */
Packit Service 388d29
Packit Service a64de6
#if HAVE_STRCSPN_IFUNC
Packit Service a64de6
    IFUNC_IMPL (i, name, strcspn,
Packit Service a64de6
# if HAVE_STRCSPN_Z13
Packit Service a64de6
		IFUNC_IMPL_ADD (array, i, strcspn,
Packit Service a64de6
				dl_hwcap & HWCAP_S390_VX, STRCSPN_Z13)
Packit Service a64de6
# endif
Packit Service a64de6
# if HAVE_STRCSPN_C
Packit Service a64de6
		IFUNC_IMPL_ADD (array, i, strcspn, 1, STRCSPN_C)
Packit Service a64de6
# endif
Packit Service a64de6
		)
Packit Service a64de6
#endif /* HAVE_STRCSPN_IFUNC  */
Packit Service a64de6
Packit Service d0d4c8
#if HAVE_MEMCHR_IFUNC
Packit Service d0d4c8
    IFUNC_IMPL (i, name, memchr,
Packit Service d0d4c8
# if HAVE_MEMCHR_Z13
Packit Service d0d4c8
		IFUNC_IMPL_ADD (array, i, memchr,
Packit Service d0d4c8
				dl_hwcap & HWCAP_S390_VX, MEMCHR_Z13)
Packit Service d0d4c8
# endif
Packit Service d0d4c8
# if HAVE_MEMCHR_Z900_G5
Packit Service d0d4c8
		IFUNC_IMPL_ADD (array, i, memchr, 1, MEMCHR_Z900_G5)
Packit Service d0d4c8
# endif
Packit Service d0d4c8
		)
Packit Service d0d4c8
#endif /* HAVE_MEMCHR_IFUNC  */
Packit Service d0d4c8
Packit Service 4ca88c
#if HAVE_RAWMEMCHR_IFUNC
Packit Service 4ca88c
    IFUNC_IMPL (i, name, rawmemchr,
Packit Service 4ca88c
# if HAVE_RAWMEMCHR_Z13
Packit Service 4ca88c
		IFUNC_IMPL_ADD (array, i, rawmemchr,
Packit Service 4ca88c
				dl_hwcap & HWCAP_S390_VX, RAWMEMCHR_Z13)
Packit Service 4ca88c
# endif
Packit Service 4ca88c
# if HAVE_RAWMEMCHR_C
Packit Service 4ca88c
		IFUNC_IMPL_ADD (array, i, rawmemchr, 1, RAWMEMCHR_C)
Packit Service 4ca88c
# endif
Packit Service 4ca88c
		)
Packit Service 4ca88c
#endif /* HAVE_RAWMEMCHR_IFUNC  */
Packit Service 4ca88c
Packit Service 14e5ba
#if HAVE_MEMCCPY_IFUNC
Packit Service 14e5ba
    IFUNC_IMPL (i, name, memccpy,
Packit Service 14e5ba
# if HAVE_MEMCCPY_Z13
Packit Service 14e5ba
		IFUNC_IMPL_ADD (array, i, memccpy,
Packit Service 14e5ba
				dl_hwcap & HWCAP_S390_VX, MEMCCPY_Z13)
Packit Service 14e5ba
# endif
Packit Service 14e5ba
# if HAVE_MEMCCPY_C
Packit Service 14e5ba
		IFUNC_IMPL_ADD (array, i, memccpy, 1, MEMCCPY_C)
Packit Service 14e5ba
# endif
Packit Service 14e5ba
		)
Packit Service 14e5ba
#endif /* HAVE_MEMCCPY_IFUNC  */
Packit Service 14e5ba
Packit Service 67fea7
#if HAVE_MEMRCHR_IFUNC
Packit Service 67fea7
    IFUNC_IMPL (i, name, memrchr,
Packit Service 67fea7
# if HAVE_MEMRCHR_Z13
Packit Service 67fea7
		IFUNC_IMPL_ADD (array, i, memrchr,
Packit Service 67fea7
				dl_hwcap & HWCAP_S390_VX, MEMRCHR_Z13)
Packit Service 67fea7
# endif
Packit Service 67fea7
# if HAVE_MEMRCHR_C
Packit Service 67fea7
		IFUNC_IMPL_ADD (array, i, memrchr, 1, MEMRCHR_C)
Packit Service 67fea7
# endif
Packit Service 67fea7
		)
Packit Service 67fea7
#endif /* HAVE_MEMRCHR_IFUNC  */
Packit Service 67fea7
Packit Service b4872b
#if HAVE_WCSLEN_IFUNC
Packit Service b4872b
    IFUNC_IMPL (i, name, wcslen,
Packit Service b4872b
# if HAVE_WCSLEN_Z13
Packit Service b4872b
		IFUNC_IMPL_ADD (array, i, wcslen,
Packit Service b4872b
				dl_hwcap & HWCAP_S390_VX, WCSLEN_Z13)
Packit Service b4872b
# endif
Packit Service b4872b
# if HAVE_WCSLEN_C
Packit Service b4872b
		IFUNC_IMPL_ADD (array, i, wcslen, 1, WCSLEN_C)
Packit Service b4872b
# endif
Packit Service b4872b
		)
Packit Service b4872b
#endif /* HAVE_WCSLEN_IFUNC  */
Packit Service b4872b
Packit Service 08e4c4
#if HAVE_WCSNLEN_IFUNC
Packit Service 08e4c4
    IFUNC_IMPL (i, name, wcsnlen,
Packit Service 08e4c4
# if HAVE_WCSNLEN_Z13
Packit Service 08e4c4
		IFUNC_IMPL_ADD (array, i, wcsnlen,
Packit Service 08e4c4
				dl_hwcap & HWCAP_S390_VX, WCSNLEN_Z13)
Packit Service 08e4c4
# endif
Packit Service 08e4c4
# if HAVE_WCSNLEN_C
Packit Service 08e4c4
		IFUNC_IMPL_ADD (array, i, wcsnlen, 1, WCSNLEN_C)
Packit Service 08e4c4
# endif
Packit Service 08e4c4
		)
Packit Service 08e4c4
#endif /* HAVE_WCSNLEN_IFUNC  */
Packit Service 08e4c4
Packit Service 3a835c
#if HAVE_WCSCPY_IFUNC
Packit Service 3a835c
    IFUNC_IMPL (i, name, wcscpy,
Packit Service 3a835c
# if HAVE_WCSCPY_Z13
Packit Service 3a835c
		IFUNC_IMPL_ADD (array, i, wcscpy,
Packit Service 3a835c
				dl_hwcap & HWCAP_S390_VX, WCSCPY_Z13)
Packit Service 3a835c
# endif
Packit Service 3a835c
# if HAVE_WCSCPY_C
Packit Service 3a835c
		IFUNC_IMPL_ADD (array, i, wcscpy, 1, WCSCPY_C)
Packit Service 3a835c
# endif
Packit Service 3a835c
		)
Packit Service 3a835c
#endif /* HAVE_WCSCPY_IFUNC  */
Packit Service 3a835c
Packit Service d4138b
#if HAVE_WCPCPY_IFUNC
Packit Service d4138b
    IFUNC_IMPL (i, name, wcpcpy,
Packit Service d4138b
# if HAVE_WCPCPY_Z13
Packit Service d4138b
		IFUNC_IMPL_ADD (array, i, wcpcpy,
Packit Service d4138b
				dl_hwcap & HWCAP_S390_VX, WCPCPY_Z13)
Packit Service d4138b
# endif
Packit Service d4138b
# if HAVE_WCPCPY_C
Packit Service d4138b
		IFUNC_IMPL_ADD (array, i, wcpcpy, 1, WCPCPY_C)
Packit Service d4138b
# endif
Packit Service d4138b
		)
Packit Service d4138b
#endif /* HAVE_WCPCPY_IFUNC  */
Packit Service d4138b
Packit Service 4527f5
#if HAVE_WCSNCPY_IFUNC
Packit Service 4527f5
    IFUNC_IMPL (i, name, wcsncpy,
Packit Service 4527f5
# if HAVE_WCSNCPY_Z13
Packit Service 4527f5
		IFUNC_IMPL_ADD (array, i, wcsncpy,
Packit Service 4527f5
				dl_hwcap & HWCAP_S390_VX, WCSNCPY_Z13)
Packit Service 4527f5
# endif
Packit Service 4527f5
# if HAVE_WCSNCPY_C
Packit Service 4527f5
		IFUNC_IMPL_ADD (array, i, wcsncpy, 1, WCSNCPY_C)
Packit Service 4527f5
# endif
Packit Service 4527f5
		)
Packit Service 4527f5
#endif /* HAVE_WCSNCPY_IFUNC  */
Packit Service 4527f5
Packit Service 38d4ff
#if HAVE_WCPNCPY_IFUNC
Packit Service 38d4ff
    IFUNC_IMPL (i, name, wcpncpy,
Packit Service 38d4ff
# if HAVE_WCPNCPY_Z13
Packit Service 38d4ff
		IFUNC_IMPL_ADD (array, i, wcpncpy,
Packit Service 38d4ff
				dl_hwcap & HWCAP_S390_VX, WCPNCPY_Z13)
Packit Service 38d4ff
# endif
Packit Service 38d4ff
# if HAVE_WCPNCPY_C
Packit Service 38d4ff
		IFUNC_IMPL_ADD (array, i, wcpncpy, 1, WCPNCPY_C)
Packit Service 38d4ff
# endif
Packit Service 38d4ff
		)
Packit Service 38d4ff
#endif /* HAVE_WCPNCPY_IFUNC  */
Packit Service 38d4ff
Packit Service 160f2c
#if HAVE_WCSCAT_IFUNC
Packit Service 160f2c
    IFUNC_IMPL (i, name, wcscat,
Packit Service 160f2c
# if HAVE_WCSCAT_Z13
Packit Service 160f2c
		IFUNC_IMPL_ADD (array, i, wcscat,
Packit Service 160f2c
				dl_hwcap & HWCAP_S390_VX, WCSCAT_Z13)
Packit Service 160f2c
# endif
Packit Service 160f2c
# if HAVE_WCSCAT_C
Packit Service 160f2c
		IFUNC_IMPL_ADD (array, i, wcscat, 1, WCSCAT_C)
Packit Service 160f2c
# endif
Packit Service 160f2c
		)
Packit Service 160f2c
#endif /* HAVE_WCSCAT_IFUNC  */
Packit Service 160f2c
Packit Service 53966a
#if HAVE_WCSNCAT_IFUNC
Packit Service 53966a
    IFUNC_IMPL (i, name, wcsncat,
Packit Service 53966a
# if HAVE_WCSNCAT_Z13
Packit Service 53966a
		IFUNC_IMPL_ADD (array, i, wcsncat,
Packit Service 53966a
				dl_hwcap & HWCAP_S390_VX, WCSNCAT_Z13)
Packit Service 53966a
# endif
Packit Service 53966a
# if HAVE_WCSNCAT_C
Packit Service 53966a
		IFUNC_IMPL_ADD (array, i, wcsncat, 1, WCSNCAT_C)
Packit Service 53966a
# endif
Packit Service 53966a
		)
Packit Service 53966a
#endif /* HAVE_WCSNCAT_IFUNC  */
Packit Service 53966a
Packit Service e1d8ec
#if HAVE_WCSCMP_IFUNC
Packit Service e1d8ec
    IFUNC_IMPL (i, name, wcscmp,
Packit Service e1d8ec
# if HAVE_WCSCMP_Z13
Packit Service e1d8ec
		IFUNC_IMPL_ADD (array, i, wcscmp,
Packit Service e1d8ec
				dl_hwcap & HWCAP_S390_VX, WCSCMP_Z13)
Packit Service e1d8ec
# endif
Packit Service e1d8ec
# if HAVE_WCSCMP_C
Packit Service e1d8ec
		IFUNC_IMPL_ADD (array, i, wcscmp, 1, WCSCMP_C)
Packit Service e1d8ec
# endif
Packit Service e1d8ec
		)
Packit Service e1d8ec
#endif /* HAVE_WCSCMP_IFUNC  */
Packit Service e1d8ec
Packit Service 564184
#if HAVE_WCSNCMP_IFUNC
Packit Service 564184
    IFUNC_IMPL (i, name, wcsncmp,
Packit Service 564184
# if HAVE_WCSNCMP_Z13
Packit Service 564184
		IFUNC_IMPL_ADD (array, i, wcsncmp,
Packit Service 564184
				dl_hwcap & HWCAP_S390_VX, WCSNCMP_Z13)
Packit Service 564184
# endif
Packit Service 564184
# if HAVE_WCSNCMP_C
Packit Service 564184
		IFUNC_IMPL_ADD (array, i, wcsncmp, 1, WCSNCMP_C)
Packit Service 564184
# endif
Packit Service 564184
		)
Packit Service 564184
#endif /* HAVE_WCSNCMP_IFUNC  */
Packit Service 564184
Packit Service dab6cd
#if HAVE_WCSCHR_IFUNC
Packit Service dab6cd
    IFUNC_IMPL (i, name, wcschr,
Packit Service dab6cd
# if HAVE_WCSCHR_Z13
Packit Service dab6cd
		IFUNC_IMPL_ADD (array, i, wcschr,
Packit Service dab6cd
				dl_hwcap & HWCAP_S390_VX, WCSCHR_Z13)
Packit Service dab6cd
# endif
Packit Service dab6cd
# if HAVE_WCSCHR_C
Packit Service dab6cd
		IFUNC_IMPL_ADD (array, i, wcschr, 1, WCSCHR_C)
Packit Service dab6cd
# endif
Packit Service dab6cd
		)
Packit Service dab6cd
#endif /* HAVE_WCSCHR_IFUNC  */
Packit Service dab6cd
Packit Service c3cdb2
#if HAVE_WCSCHRNUL_IFUNC
Packit Service c3cdb2
    IFUNC_IMPL (i, name, wcschrnul,
Packit Service c3cdb2
# if HAVE_WCSCHRNUL_Z13
Packit Service c3cdb2
		IFUNC_IMPL_ADD (array, i, wcschrnul,
Packit Service c3cdb2
				dl_hwcap & HWCAP_S390_VX, WCSCHRNUL_Z13)
Packit Service c3cdb2
# endif
Packit Service c3cdb2
# if HAVE_WCSCHRNUL_C
Packit Service c3cdb2
		IFUNC_IMPL_ADD (array, i, wcschrnul, 1, WCSCHRNUL_C)
Packit Service c3cdb2
# endif
Packit Service c3cdb2
		)
Packit Service c3cdb2
#endif /* HAVE_WCSCHRNUL_IFUNC  */
Packit Service c3cdb2
Packit Service a80c31
#if HAVE_WCSRCHR_IFUNC
Packit Service a80c31
    IFUNC_IMPL (i, name, wcsrchr,
Packit Service a80c31
# if HAVE_WCSRCHR_Z13
Packit Service a80c31
		IFUNC_IMPL_ADD (array, i, wcsrchr,
Packit Service a80c31
				dl_hwcap & HWCAP_S390_VX, WCSRCHR_Z13)
Packit Service a80c31
# endif
Packit Service a80c31
# if HAVE_WCSRCHR_C
Packit Service a80c31
		IFUNC_IMPL_ADD (array, i, wcsrchr, 1, WCSRCHR_C)
Packit Service a80c31
# endif
Packit Service a80c31
		)
Packit Service a80c31
#endif /* HAVE_WCSRCHR_IFUNC  */
Packit Service a80c31
Packit Service ad24b1
#if HAVE_WCSSPN_IFUNC
Packit Service ad24b1
    IFUNC_IMPL (i, name, wcsspn,
Packit Service ad24b1
# if HAVE_WCSSPN_Z13
Packit Service ad24b1
		IFUNC_IMPL_ADD (array, i, wcsspn,
Packit Service ad24b1
				dl_hwcap & HWCAP_S390_VX, WCSSPN_Z13)
Packit Service ad24b1
# endif
Packit Service ad24b1
# if HAVE_WCSSPN_C
Packit Service ad24b1
		IFUNC_IMPL_ADD (array, i, wcsspn, 1, WCSSPN_C)
Packit Service ad24b1
# endif
Packit Service ad24b1
		)
Packit Service ad24b1
#endif /* HAVE_WCSSPN_IFUNC  */
Packit Service ad24b1
Packit Service 137d02
#if HAVE_WCSPBRK_IFUNC
Packit Service 137d02
    IFUNC_IMPL (i, name, wcspbrk,
Packit Service 137d02
# if HAVE_WCSPBRK_Z13
Packit Service 137d02
		IFUNC_IMPL_ADD (array, i, wcspbrk,
Packit Service 137d02
				dl_hwcap & HWCAP_S390_VX, WCSPBRK_Z13)
Packit Service 137d02
# endif
Packit Service 137d02
# if HAVE_WCSPBRK_C
Packit Service 137d02
		IFUNC_IMPL_ADD (array, i, wcspbrk, 1, WCSPBRK_C)
Packit Service 137d02
# endif
Packit Service 137d02
		)
Packit Service 137d02
#endif /* HAVE_WCSPBRK_IFUNC  */
Packit Service 137d02
Packit Service 569bce
#if HAVE_WCSCSPN_IFUNC
Packit Service 569bce
    IFUNC_IMPL (i, name, wcscspn,
Packit Service 569bce
# if HAVE_WCSCSPN_Z13
Packit Service 569bce
		IFUNC_IMPL_ADD (array, i, wcscspn,
Packit Service 569bce
				dl_hwcap & HWCAP_S390_VX, WCSCSPN_Z13)
Packit Service 569bce
# endif
Packit Service 569bce
# if HAVE_WCSCSPN_C
Packit Service 569bce
		IFUNC_IMPL_ADD (array, i, wcscspn, 1, WCSCSPN_C)
Packit Service 569bce
# endif
Packit Service 569bce
		)
Packit Service 569bce
#endif /* HAVE_WCSCSPN_IFUNC  */
Packit Service 569bce
Packit Service 85dd02
#if HAVE_WMEMCHR_IFUNC
Packit Service 85dd02
    IFUNC_IMPL (i, name, wmemchr,
Packit Service 85dd02
# if HAVE_WMEMCHR_Z13
Packit Service 85dd02
		IFUNC_IMPL_ADD (array, i, wmemchr,
Packit Service 85dd02
				dl_hwcap & HWCAP_S390_VX, WMEMCHR_Z13)
Packit Service 85dd02
# endif
Packit Service 85dd02
# if HAVE_WMEMCHR_C
Packit Service 85dd02
		IFUNC_IMPL_ADD (array, i, wmemchr, 1, WMEMCHR_C)
Packit Service 85dd02
# endif
Packit Service 85dd02
		)
Packit Service 85dd02
#endif /* HAVE_WMEMCHR_IFUNC  */
Packit Service 85dd02
Packit Service f5edf2
#if HAVE_WMEMSET_IFUNC
Packit Service f5edf2
    IFUNC_IMPL (i, name, wmemset,
Packit Service f5edf2
# if HAVE_WMEMSET_Z13
Packit Service f5edf2
		IFUNC_IMPL_ADD (array, i, wmemset,
Packit Service f5edf2
				dl_hwcap & HWCAP_S390_VX, WMEMSET_Z13)
Packit Service f5edf2
# endif
Packit Service f5edf2
# if HAVE_WMEMSET_C
Packit Service f5edf2
		IFUNC_IMPL_ADD (array, i, wmemset, 1, WMEMSET_C)
Packit Service f5edf2
# endif
Packit Service f5edf2
		)
Packit Service f5edf2
#endif /* HAVE_WMEMSET_IFUNC  */
Packit Service f5edf2
Packit Service 074208
#if HAVE_WMEMCMP_IFUNC
Packit Service 074208
    IFUNC_IMPL (i, name, wmemcmp,
Packit Service 074208
# if HAVE_WMEMCMP_Z13
Packit Service 074208
		IFUNC_IMPL_ADD (array, i, wmemcmp,
Packit Service 074208
				dl_hwcap & HWCAP_S390_VX, WMEMCMP_Z13)
Packit Service 074208
# endif
Packit Service 074208
# if HAVE_WMEMCMP_C
Packit Service 074208
		IFUNC_IMPL_ADD (array, i, wmemcmp, 1, WMEMCMP_C)
Packit Service 074208
# endif
Packit Service 074208
		)
Packit Service 074208
#endif /* HAVE_WMEMCMP_IFUNC  */
Packit 6c4009
Packit 6c4009
  return i;
Packit 6c4009
}