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

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 9c6a1b
#include <ifunc-wcscat.h>
Packit Service 539939
#include <ifunc-wcsncat.h>
Packit Service 67c620
#include <ifunc-wcscmp.h>
Packit Service f2f482
#include <ifunc-wcsncmp.h>
Packit Service fe85cb
#include <ifunc-wcschr.h>
Packit Service 4cce0b
#include <ifunc-wcschrnul.h>
Packit Service df4989
#include <ifunc-wcsrchr.h>
Packit Service 8e98a5
#include <ifunc-wcsspn.h>
Packit Service 553098
#include <ifunc-wcspbrk.h>
Packit Service de848b
#include <ifunc-wcscspn.h>
Packit Service 93b261
#include <ifunc-wmemchr.h>
Packit Service 487eef
#include <ifunc-wmemset.h>
Packit Service d07a3f
#include <ifunc-wmemcmp.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 e20524
# if HAVE_MEMMOVE_ARCH13
Packit Service e20524
		IFUNC_IMPL_ADD (array, i, memmove,
Packit Service e20524
				S390_IS_ARCH13_MIE3 (stfle_bits),
Packit Service e20524
				MEMMOVE_ARCH13)
Packit Service e20524
# endif
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 5911bc
# if HAVE_STRSTR_ARCH13
Packit Service 5911bc
		IFUNC_IMPL_ADD (array, i, strstr,
Packit Service 5911bc
				dl_hwcap & HWCAP_S390_VXRS_EXT2, STRSTR_ARCH13)
Packit Service 5911bc
# endif
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 6bec11
# if HAVE_MEMMEM_ARCH13
Packit Service 6bec11
	      IFUNC_IMPL_ADD (array, i, memmem,
Packit Service 6bec11
			      dl_hwcap & HWCAP_S390_VXRS_EXT2, MEMMEM_ARCH13)
Packit Service 6bec11
# endif
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 9c6a1b
#if HAVE_WCSCAT_IFUNC
Packit Service 9c6a1b
    IFUNC_IMPL (i, name, wcscat,
Packit Service 9c6a1b
# if HAVE_WCSCAT_Z13
Packit Service 9c6a1b
		IFUNC_IMPL_ADD (array, i, wcscat,
Packit Service 9c6a1b
				dl_hwcap & HWCAP_S390_VX, WCSCAT_Z13)
Packit Service 9c6a1b
# endif
Packit Service 9c6a1b
# if HAVE_WCSCAT_C
Packit Service 9c6a1b
		IFUNC_IMPL_ADD (array, i, wcscat, 1, WCSCAT_C)
Packit Service 9c6a1b
# endif
Packit Service 9c6a1b
		)
Packit Service 9c6a1b
#endif /* HAVE_WCSCAT_IFUNC  */
Packit Service 9c6a1b
Packit Service 539939
#if HAVE_WCSNCAT_IFUNC
Packit Service 539939
    IFUNC_IMPL (i, name, wcsncat,
Packit Service 539939
# if HAVE_WCSNCAT_Z13
Packit Service 539939
		IFUNC_IMPL_ADD (array, i, wcsncat,
Packit Service 539939
				dl_hwcap & HWCAP_S390_VX, WCSNCAT_Z13)
Packit Service 539939
# endif
Packit Service 539939
# if HAVE_WCSNCAT_C
Packit Service 539939
		IFUNC_IMPL_ADD (array, i, wcsncat, 1, WCSNCAT_C)
Packit Service 539939
# endif
Packit Service 539939
		)
Packit Service 539939
#endif /* HAVE_WCSNCAT_IFUNC  */
Packit Service 539939
Packit Service 67c620
#if HAVE_WCSCMP_IFUNC
Packit Service 67c620
    IFUNC_IMPL (i, name, wcscmp,
Packit Service 67c620
# if HAVE_WCSCMP_Z13
Packit Service 67c620
		IFUNC_IMPL_ADD (array, i, wcscmp,
Packit Service 67c620
				dl_hwcap & HWCAP_S390_VX, WCSCMP_Z13)
Packit Service 67c620
# endif
Packit Service 67c620
# if HAVE_WCSCMP_C
Packit Service 67c620
		IFUNC_IMPL_ADD (array, i, wcscmp, 1, WCSCMP_C)
Packit Service 67c620
# endif
Packit Service 67c620
		)
Packit Service 67c620
#endif /* HAVE_WCSCMP_IFUNC  */
Packit Service 67c620
Packit Service f2f482
#if HAVE_WCSNCMP_IFUNC
Packit Service f2f482
    IFUNC_IMPL (i, name, wcsncmp,
Packit Service f2f482
# if HAVE_WCSNCMP_Z13
Packit Service f2f482
		IFUNC_IMPL_ADD (array, i, wcsncmp,
Packit Service f2f482
				dl_hwcap & HWCAP_S390_VX, WCSNCMP_Z13)
Packit Service f2f482
# endif
Packit Service f2f482
# if HAVE_WCSNCMP_C
Packit Service f2f482
		IFUNC_IMPL_ADD (array, i, wcsncmp, 1, WCSNCMP_C)
Packit Service f2f482
# endif
Packit Service f2f482
		)
Packit Service f2f482
#endif /* HAVE_WCSNCMP_IFUNC  */
Packit Service f2f482
Packit Service fe85cb
#if HAVE_WCSCHR_IFUNC
Packit Service fe85cb
    IFUNC_IMPL (i, name, wcschr,
Packit Service fe85cb
# if HAVE_WCSCHR_Z13
Packit Service fe85cb
		IFUNC_IMPL_ADD (array, i, wcschr,
Packit Service fe85cb
				dl_hwcap & HWCAP_S390_VX, WCSCHR_Z13)
Packit Service fe85cb
# endif
Packit Service fe85cb
# if HAVE_WCSCHR_C
Packit Service fe85cb
		IFUNC_IMPL_ADD (array, i, wcschr, 1, WCSCHR_C)
Packit Service fe85cb
# endif
Packit Service fe85cb
		)
Packit Service fe85cb
#endif /* HAVE_WCSCHR_IFUNC  */
Packit Service fe85cb
Packit Service 4cce0b
#if HAVE_WCSCHRNUL_IFUNC
Packit Service 4cce0b
    IFUNC_IMPL (i, name, wcschrnul,
Packit Service 4cce0b
# if HAVE_WCSCHRNUL_Z13
Packit Service 4cce0b
		IFUNC_IMPL_ADD (array, i, wcschrnul,
Packit Service 4cce0b
				dl_hwcap & HWCAP_S390_VX, WCSCHRNUL_Z13)
Packit Service 4cce0b
# endif
Packit Service 4cce0b
# if HAVE_WCSCHRNUL_C
Packit Service 4cce0b
		IFUNC_IMPL_ADD (array, i, wcschrnul, 1, WCSCHRNUL_C)
Packit Service 4cce0b
# endif
Packit Service 4cce0b
		)
Packit Service 4cce0b
#endif /* HAVE_WCSCHRNUL_IFUNC  */
Packit Service 4cce0b
Packit Service df4989
#if HAVE_WCSRCHR_IFUNC
Packit Service df4989
    IFUNC_IMPL (i, name, wcsrchr,
Packit Service df4989
# if HAVE_WCSRCHR_Z13
Packit Service df4989
		IFUNC_IMPL_ADD (array, i, wcsrchr,
Packit Service df4989
				dl_hwcap & HWCAP_S390_VX, WCSRCHR_Z13)
Packit Service df4989
# endif
Packit Service df4989
# if HAVE_WCSRCHR_C
Packit Service df4989
		IFUNC_IMPL_ADD (array, i, wcsrchr, 1, WCSRCHR_C)
Packit Service df4989
# endif
Packit Service df4989
		)
Packit Service df4989
#endif /* HAVE_WCSRCHR_IFUNC  */
Packit Service df4989
Packit Service 8e98a5
#if HAVE_WCSSPN_IFUNC
Packit Service 8e98a5
    IFUNC_IMPL (i, name, wcsspn,
Packit Service 8e98a5
# if HAVE_WCSSPN_Z13
Packit Service 8e98a5
		IFUNC_IMPL_ADD (array, i, wcsspn,
Packit Service 8e98a5
				dl_hwcap & HWCAP_S390_VX, WCSSPN_Z13)
Packit Service 8e98a5
# endif
Packit Service 8e98a5
# if HAVE_WCSSPN_C
Packit Service 8e98a5
		IFUNC_IMPL_ADD (array, i, wcsspn, 1, WCSSPN_C)
Packit Service 8e98a5
# endif
Packit Service 8e98a5
		)
Packit Service 8e98a5
#endif /* HAVE_WCSSPN_IFUNC  */
Packit Service 8e98a5
Packit Service 553098
#if HAVE_WCSPBRK_IFUNC
Packit Service 553098
    IFUNC_IMPL (i, name, wcspbrk,
Packit Service 553098
# if HAVE_WCSPBRK_Z13
Packit Service 553098
		IFUNC_IMPL_ADD (array, i, wcspbrk,
Packit Service 553098
				dl_hwcap & HWCAP_S390_VX, WCSPBRK_Z13)
Packit Service 553098
# endif
Packit Service 553098
# if HAVE_WCSPBRK_C
Packit Service 553098
		IFUNC_IMPL_ADD (array, i, wcspbrk, 1, WCSPBRK_C)
Packit Service 553098
# endif
Packit Service 553098
		)
Packit Service 553098
#endif /* HAVE_WCSPBRK_IFUNC  */
Packit Service 553098
Packit Service de848b
#if HAVE_WCSCSPN_IFUNC
Packit Service de848b
    IFUNC_IMPL (i, name, wcscspn,
Packit Service de848b
# if HAVE_WCSCSPN_Z13
Packit Service de848b
		IFUNC_IMPL_ADD (array, i, wcscspn,
Packit Service de848b
				dl_hwcap & HWCAP_S390_VX, WCSCSPN_Z13)
Packit Service de848b
# endif
Packit Service de848b
# if HAVE_WCSCSPN_C
Packit Service de848b
		IFUNC_IMPL_ADD (array, i, wcscspn, 1, WCSCSPN_C)
Packit Service de848b
# endif
Packit Service de848b
		)
Packit Service de848b
#endif /* HAVE_WCSCSPN_IFUNC  */
Packit Service de848b
Packit Service 93b261
#if HAVE_WMEMCHR_IFUNC
Packit Service 93b261
    IFUNC_IMPL (i, name, wmemchr,
Packit Service 93b261
# if HAVE_WMEMCHR_Z13
Packit Service 93b261
		IFUNC_IMPL_ADD (array, i, wmemchr,
Packit Service 93b261
				dl_hwcap & HWCAP_S390_VX, WMEMCHR_Z13)
Packit Service 93b261
# endif
Packit Service 93b261
# if HAVE_WMEMCHR_C
Packit Service 93b261
		IFUNC_IMPL_ADD (array, i, wmemchr, 1, WMEMCHR_C)
Packit Service 93b261
# endif
Packit Service 93b261
		)
Packit Service 93b261
#endif /* HAVE_WMEMCHR_IFUNC  */
Packit Service 93b261
Packit Service 487eef
#if HAVE_WMEMSET_IFUNC
Packit Service 487eef
    IFUNC_IMPL (i, name, wmemset,
Packit Service 487eef
# if HAVE_WMEMSET_Z13
Packit Service 487eef
		IFUNC_IMPL_ADD (array, i, wmemset,
Packit Service 487eef
				dl_hwcap & HWCAP_S390_VX, WMEMSET_Z13)
Packit Service 487eef
# endif
Packit Service 487eef
# if HAVE_WMEMSET_C
Packit Service 487eef
		IFUNC_IMPL_ADD (array, i, wmemset, 1, WMEMSET_C)
Packit Service 487eef
# endif
Packit Service 487eef
		)
Packit Service 487eef
#endif /* HAVE_WMEMSET_IFUNC  */
Packit Service 487eef
Packit Service d07a3f
#if HAVE_WMEMCMP_IFUNC
Packit Service d07a3f
    IFUNC_IMPL (i, name, wmemcmp,
Packit Service d07a3f
# if HAVE_WMEMCMP_Z13
Packit Service d07a3f
		IFUNC_IMPL_ADD (array, i, wmemcmp,
Packit Service d07a3f
				dl_hwcap & HWCAP_S390_VX, WMEMCMP_Z13)
Packit Service d07a3f
# endif
Packit Service d07a3f
# if HAVE_WMEMCMP_C
Packit Service d07a3f
		IFUNC_IMPL_ADD (array, i, wmemcmp, 1, WMEMCMP_C)
Packit Service d07a3f
# endif
Packit Service d07a3f
		)
Packit Service d07a3f
#endif /* HAVE_WMEMCMP_IFUNC  */
Packit Service 82fcde
Packit Service 82fcde
  return i;
Packit Service 82fcde
}