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 Bot b23bed
#include <ifunc-memset.h>
Packit Bot 114c31
#include <ifunc-memcmp.h>
Packit Bot 862923
#include <ifunc-memcpy.h>
Packit Bot 38d9ae
#include <ifunc-strstr.h>
Packit Bot bb25b7
#include <ifunc-memmem.h>
Packit Bot 6300c5
#include <ifunc-strlen.h>
Packit Bot 3829ca
#include <ifunc-strnlen.h>
Packit Bot 3391ed
#include <ifunc-strcpy.h>
Packit Bot 69736a
#include <ifunc-stpcpy.h>
Packit Bot 980236
#include <ifunc-strncpy.h>
Packit Bot 38beba
#include <ifunc-stpncpy.h>
Packit Bot e12baf
#include <ifunc-strcat.h>
Packit Bot 82df69
#include <ifunc-strncat.h>
Packit Bot a66d51
#include <ifunc-strcmp.h>
Packit Bot d3f87f
#include <ifunc-strncmp.h>
Packit Bot daf99b
#include <ifunc-strchr.h>
Packit Bot c684b7
#include <ifunc-strchrnul.h>
Packit Bot cbb537
#include <ifunc-strrchr.h>
Packit Bot 5c1ee9
#include <ifunc-strspn.h>
Packit Bot 490b07
#include <ifunc-strpbrk.h>
Packit Bot d5359c
#include <ifunc-strcspn.h>
Packit Bot c73271
#include <ifunc-memchr.h>
Packit Bot a418ca
#include <ifunc-rawmemchr.h>
Packit Bot 8c2af3
#include <ifunc-memccpy.h>
Packit Bot 42c094
#include <ifunc-memrchr.h>
Packit Bot 454307
#include <ifunc-wcslen.h>
Packit Bot 1b5642
#include <ifunc-wcsnlen.h>
Packit Bot b08673
#include <ifunc-wcscpy.h>
Packit Bot 84cf94
#include <ifunc-wcpcpy.h>
Packit Bot 2a39a2
#include <ifunc-wcsncpy.h>
Packit Bot 01b4bb
#include <ifunc-wcpncpy.h>
Packit Bot 4b5486
#include <ifunc-wcscat.h>
Packit Bot 09d72c
#include <ifunc-wcsncat.h>
Packit Bot 3bf9c8
#include <ifunc-wcscmp.h>
Packit Bot 51fd89
#include <ifunc-wcsncmp.h>
Packit Bot 555890
#include <ifunc-wcschr.h>
Packit Bot 33d59a
#include <ifunc-wcschrnul.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 Bot b23bed
#if HAVE_MEMSET_IFUNC
Packit 6c4009
  IFUNC_IMPL (i, name, memset,
Packit Bot b23bed
# if HAVE_MEMSET_Z196
Packit 6c4009
	      IFUNC_IMPL_ADD (array, i, memset,
Packit Bot b23bed
			      S390_IS_Z196 (stfle_bits), MEMSET_Z196)
Packit Bot b23bed
# endif
Packit Bot b23bed
# if HAVE_MEMSET_Z10
Packit 6c4009
	      IFUNC_IMPL_ADD (array, i, memset,
Packit Bot b23bed
			      S390_IS_Z10 (stfle_bits), MEMSET_Z10)
Packit Bot b23bed
# endif
Packit Bot b23bed
# if HAVE_MEMSET_Z900_G5
Packit Bot b23bed
	      IFUNC_IMPL_ADD (array, i, memset, 1, MEMSET_Z900_G5)
Packit Bot b23bed
# endif
Packit Bot b23bed
	      )
Packit Bot b43748
Packit Bot b43748
  /* Note: bzero is implemented in memset.  */
Packit Bot b43748
  IFUNC_IMPL (i, name, bzero,
Packit Bot b43748
# if HAVE_MEMSET_Z196
Packit Bot b43748
	      IFUNC_IMPL_ADD (array, i, bzero,
Packit Bot b43748
			      S390_IS_Z196 (stfle_bits), BZERO_Z196)
Packit Bot b43748
# endif
Packit Bot b43748
# if HAVE_MEMSET_Z10
Packit Bot b43748
	      IFUNC_IMPL_ADD (array, i, bzero,
Packit Bot b43748
			      S390_IS_Z10 (stfle_bits), BZERO_Z10)
Packit Bot b43748
# endif
Packit Bot b43748
# if HAVE_MEMSET_Z900_G5
Packit Bot b43748
	      IFUNC_IMPL_ADD (array, i, bzero, 1, BZERO_Z900_G5)
Packit Bot b43748
# endif
Packit Bot b43748
	      )
Packit Bot b23bed
#endif /* HAVE_MEMSET_IFUNC */
Packit Bot 0c2104
Packit Bot 114c31
#if HAVE_MEMCMP_IFUNC
Packit 6c4009
  IFUNC_IMPL (i, name, memcmp,
Packit Bot 114c31
# if HAVE_MEMCMP_Z196
Packit 6c4009
	      IFUNC_IMPL_ADD (array, i, memcmp,
Packit Bot 114c31
			      S390_IS_Z196 (stfle_bits), MEMCMP_Z196)
Packit Bot 114c31
# endif
Packit Bot 114c31
# if HAVE_MEMCMP_Z10
Packit 6c4009
	      IFUNC_IMPL_ADD (array, i, memcmp,
Packit Bot 114c31
			      S390_IS_Z10 (stfle_bits), MEMCMP_Z10)
Packit Bot 114c31
# endif
Packit Bot 114c31
# if HAVE_MEMCMP_Z900_G5
Packit Bot 114c31
	      IFUNC_IMPL_ADD (array, i, memcmp, 1, MEMCMP_Z900_G5)
Packit Bot 114c31
# endif
Packit Bot 114c31
	      )
Packit Bot 114c31
#endif /* HAVE_MEMCMP_IFUNC */
Packit Bot 0c2104
Packit Bot 862923
#if HAVE_MEMCPY_IFUNC
Packit 6c4009
  IFUNC_IMPL (i, name, memcpy,
Packit Bot 862923
# if HAVE_MEMCPY_Z196
Packit 6c4009
	      IFUNC_IMPL_ADD (array, i, memcpy,
Packit Bot 862923
			      S390_IS_Z196 (stfle_bits), MEMCPY_Z196)
Packit Bot 862923
# endif
Packit Bot 862923
# if HAVE_MEMCPY_Z10
Packit 6c4009
	      IFUNC_IMPL_ADD (array, i, memcpy,
Packit Bot 862923
			      S390_IS_Z10 (stfle_bits), MEMCPY_Z10)
Packit Bot 862923
# endif
Packit Bot 862923
# if HAVE_MEMCPY_Z900_G5
Packit Bot 862923
	      IFUNC_IMPL_ADD (array, i, memcpy, 1, MEMCPY_Z900_G5)
Packit Bot 862923
# endif
Packit Bot 862923
	      )
Packit 6c4009
Packit 6c4009
  IFUNC_IMPL (i, name, mempcpy,
Packit Bot 862923
# if HAVE_MEMCPY_Z196
Packit 6c4009
	      IFUNC_IMPL_ADD (array, i, mempcpy,
Packit Bot 862923
			      S390_IS_Z196 (stfle_bits), MEMPCPY_Z196)
Packit Bot 862923
# endif
Packit Bot 862923
# if HAVE_MEMCPY_Z10
Packit 6c4009
	      IFUNC_IMPL_ADD (array, i, mempcpy,
Packit Bot 862923
			      S390_IS_Z10 (stfle_bits), MEMPCPY_Z10)
Packit Bot 862923
# endif
Packit Bot 862923
# if HAVE_MEMCPY_Z900_G5
Packit Bot 862923
	      IFUNC_IMPL_ADD (array, i, mempcpy, 1, MEMPCPY_Z900_G5)
Packit Bot 862923
# endif
Packit Bot 862923
	      )
Packit Bot 862923
#endif /* HAVE_MEMCPY_IFUNC  */
Packit Bot 0c2104
Packit Bot 63cc2b
#if HAVE_MEMMOVE_IFUNC
Packit Bot 63cc2b
    IFUNC_IMPL (i, name, memmove,
Packit Bot 63cc2b
# if HAVE_MEMMOVE_Z13
Packit Bot 63cc2b
		IFUNC_IMPL_ADD (array, i, memmove,
Packit Bot 63cc2b
				dl_hwcap & HWCAP_S390_VX, MEMMOVE_Z13)
Packit Bot 63cc2b
# endif
Packit Bot 63cc2b
# if HAVE_MEMMOVE_C
Packit Bot 63cc2b
		IFUNC_IMPL_ADD (array, i, memmove, 1, MEMMOVE_C)
Packit Bot 63cc2b
# endif
Packit Bot 63cc2b
		)
Packit Bot 63cc2b
#endif /* HAVE_MEMMOVE_IFUNC  */
Packit Bot 63cc2b
Packit Bot 38d9ae
#if HAVE_STRSTR_IFUNC
Packit Bot 38d9ae
    IFUNC_IMPL (i, name, strstr,
Packit Bot 38d9ae
# if HAVE_STRSTR_Z13
Packit Bot 38d9ae
		IFUNC_IMPL_ADD (array, i, strstr,
Packit Bot 38d9ae
				dl_hwcap & HWCAP_S390_VX, STRSTR_Z13)
Packit Bot 38d9ae
# endif
Packit Bot 38d9ae
# if HAVE_STRSTR_C
Packit Bot 38d9ae
		IFUNC_IMPL_ADD (array, i, strstr, 1, STRSTR_C)
Packit Bot 38d9ae
# endif
Packit Bot 38d9ae
		)
Packit Bot 38d9ae
#endif /* HAVE_STRSTR_IFUNC  */
Packit Bot 38d9ae
Packit Bot bb25b7
#if HAVE_MEMMEM_IFUNC
Packit Bot bb25b7
    IFUNC_IMPL (i, name, memmem,
Packit Bot bb25b7
# if HAVE_MEMMEM_Z13
Packit Bot bb25b7
		IFUNC_IMPL_ADD (array, i, memmem,
Packit Bot bb25b7
				dl_hwcap & HWCAP_S390_VX, MEMMEM_Z13)
Packit Bot bb25b7
# endif
Packit Bot bb25b7
# if HAVE_MEMMEM_C
Packit Bot bb25b7
		IFUNC_IMPL_ADD (array, i, memmem, 1, MEMMEM_C)
Packit Bot bb25b7
# endif
Packit Bot bb25b7
		)
Packit Bot bb25b7
#endif /* HAVE_MEMMEM_IFUNC  */
Packit Bot bb25b7
Packit Bot 6300c5
#if HAVE_STRLEN_IFUNC
Packit Bot 6300c5
    IFUNC_IMPL (i, name, strlen,
Packit Bot 6300c5
# if HAVE_STRLEN_Z13
Packit Bot 6300c5
		IFUNC_IMPL_ADD (array, i, strlen,
Packit Bot 6300c5
				dl_hwcap & HWCAP_S390_VX, STRLEN_Z13)
Packit Bot 6300c5
# endif
Packit Bot 6300c5
# if HAVE_STRLEN_C
Packit Bot 6300c5
		IFUNC_IMPL_ADD (array, i, strlen, 1, STRLEN_C)
Packit Bot 6300c5
# endif
Packit Bot 6300c5
		)
Packit Bot 6300c5
#endif /* HAVE_STRLEN_IFUNC  */
Packit Bot 6300c5
Packit Bot 3829ca
#if HAVE_STRNLEN_IFUNC
Packit Bot 3829ca
    IFUNC_IMPL (i, name, strnlen,
Packit Bot 3829ca
# if HAVE_STRNLEN_Z13
Packit Bot 3829ca
		IFUNC_IMPL_ADD (array, i, strnlen,
Packit Bot 3829ca
				dl_hwcap & HWCAP_S390_VX, STRNLEN_Z13)
Packit Bot 3829ca
# endif
Packit Bot 3829ca
# if HAVE_STRNLEN_C
Packit Bot 3829ca
		IFUNC_IMPL_ADD (array, i, strnlen, 1, STRNLEN_C)
Packit Bot 3829ca
# endif
Packit Bot 3829ca
		)
Packit Bot 3829ca
#endif /* HAVE_STRNLEN_IFUNC  */
Packit Bot 3829ca
Packit Bot 3391ed
#if HAVE_STRCPY_IFUNC
Packit Bot 3391ed
    IFUNC_IMPL (i, name, strcpy,
Packit Bot 3391ed
# if HAVE_STRCPY_Z13
Packit Bot 3391ed
		IFUNC_IMPL_ADD (array, i, strcpy,
Packit Bot 3391ed
				dl_hwcap & HWCAP_S390_VX, STRCPY_Z13)
Packit Bot 3391ed
# endif
Packit Bot 3391ed
# if HAVE_STRCPY_Z900_G5
Packit Bot 3391ed
		IFUNC_IMPL_ADD (array, i, strcpy, 1, STRCPY_Z900_G5)
Packit Bot 3391ed
# endif
Packit Bot 3391ed
		)
Packit Bot 3391ed
#endif /* HAVE_STRCPY_IFUNC  */
Packit Bot 3391ed
Packit Bot 69736a
#if HAVE_STPCPY_IFUNC
Packit Bot 69736a
    IFUNC_IMPL (i, name, stpcpy,
Packit Bot 69736a
# if HAVE_STPCPY_Z13
Packit Bot 69736a
		IFUNC_IMPL_ADD (array, i, stpcpy,
Packit Bot 69736a
				dl_hwcap & HWCAP_S390_VX, STPCPY_Z13)
Packit Bot 69736a
# endif
Packit Bot 69736a
# if HAVE_STPCPY_C
Packit Bot 69736a
		IFUNC_IMPL_ADD (array, i, stpcpy, 1, STPCPY_C)
Packit Bot 69736a
# endif
Packit Bot 69736a
		)
Packit Bot 69736a
#endif /* HAVE_STPCPY_IFUNC  */
Packit Bot 69736a
Packit Bot 980236
#if HAVE_STRNCPY_IFUNC
Packit Bot 980236
    IFUNC_IMPL (i, name, strncpy,
Packit Bot 980236
# if HAVE_STRNCPY_Z13
Packit Bot 980236
		IFUNC_IMPL_ADD (array, i, strncpy,
Packit Bot 980236
				dl_hwcap & HWCAP_S390_VX, STRNCPY_Z13)
Packit Bot 980236
# endif
Packit Bot 980236
# if HAVE_STRNCPY_Z900_G5
Packit Bot 980236
		IFUNC_IMPL_ADD (array, i, strncpy, 1, STRNCPY_Z900_G5)
Packit Bot 980236
# endif
Packit Bot 980236
		)
Packit Bot 980236
#endif /* HAVE_STRNCPY_IFUNC  */
Packit Bot 980236
Packit Bot 38beba
#if HAVE_STPNCPY_IFUNC
Packit Bot 38beba
    IFUNC_IMPL (i, name, stpncpy,
Packit Bot 38beba
# if HAVE_STPNCPY_Z13
Packit Bot 38beba
		IFUNC_IMPL_ADD (array, i, stpncpy,
Packit Bot 38beba
				dl_hwcap & HWCAP_S390_VX, STPNCPY_Z13)
Packit Bot 38beba
# endif
Packit Bot 38beba
# if HAVE_STPNCPY_C
Packit Bot 38beba
		IFUNC_IMPL_ADD (array, i, stpncpy, 1, STPNCPY_C)
Packit Bot 38beba
# endif
Packit Bot 38beba
		)
Packit Bot 38beba
#endif /* HAVE_STPNCPY_IFUNC  */
Packit Bot 38beba
Packit Bot e12baf
#if HAVE_STRCAT_IFUNC
Packit Bot e12baf
    IFUNC_IMPL (i, name, strcat,
Packit Bot e12baf
# if HAVE_STRCAT_Z13
Packit Bot e12baf
		IFUNC_IMPL_ADD (array, i, strcat,
Packit Bot e12baf
				dl_hwcap & HWCAP_S390_VX, STRCAT_Z13)
Packit Bot e12baf
# endif
Packit Bot e12baf
# if HAVE_STRCAT_C
Packit Bot e12baf
		IFUNC_IMPL_ADD (array, i, strcat, 1, STRCAT_C)
Packit Bot e12baf
# endif
Packit Bot e12baf
		)
Packit Bot e12baf
#endif /* HAVE_STRCAT_IFUNC  */
Packit Bot 980236
Packit Bot 82df69
#if HAVE_STRNCAT_IFUNC
Packit Bot 82df69
    IFUNC_IMPL (i, name, strncat,
Packit Bot 82df69
# if HAVE_STRNCAT_Z13
Packit Bot 82df69
		IFUNC_IMPL_ADD (array, i, strncat,
Packit Bot 82df69
				dl_hwcap & HWCAP_S390_VX, STRNCAT_Z13)
Packit Bot 82df69
# endif
Packit Bot 82df69
# if HAVE_STRNCAT_C
Packit Bot 82df69
		IFUNC_IMPL_ADD (array, i, strncat, 1, STRNCAT_C)
Packit Bot 82df69
# endif
Packit Bot 82df69
		)
Packit Bot 82df69
#endif /* HAVE_STRNCAT_IFUNC  */
Packit Bot 82df69
Packit Bot a66d51
#if HAVE_STRCMP_IFUNC
Packit Bot a66d51
    IFUNC_IMPL (i, name, strcmp,
Packit Bot a66d51
# if HAVE_STRCMP_Z13
Packit Bot a66d51
		IFUNC_IMPL_ADD (array, i, strcmp,
Packit Bot a66d51
				dl_hwcap & HWCAP_S390_VX, STRCMP_Z13)
Packit Bot a66d51
# endif
Packit Bot a66d51
# if HAVE_STRCMP_Z900_G5
Packit Bot a66d51
		IFUNC_IMPL_ADD (array, i, strcmp, 1, STRCMP_Z900_G5)
Packit Bot a66d51
# endif
Packit Bot a66d51
		)
Packit Bot a66d51
#endif /* HAVE_STRCMP_IFUNC  */
Packit Bot a66d51
Packit Bot d3f87f
#if HAVE_STRNCMP_IFUNC
Packit Bot d3f87f
    IFUNC_IMPL (i, name, strncmp,
Packit Bot d3f87f
# if HAVE_STRNCMP_Z13
Packit Bot d3f87f
		IFUNC_IMPL_ADD (array, i, strncmp,
Packit Bot d3f87f
				dl_hwcap & HWCAP_S390_VX, STRNCMP_Z13)
Packit Bot d3f87f
# endif
Packit Bot d3f87f
# if HAVE_STRNCMP_C
Packit Bot d3f87f
		IFUNC_IMPL_ADD (array, i, strncmp, 1, STRNCMP_C)
Packit Bot d3f87f
# endif
Packit Bot d3f87f
		)
Packit Bot d3f87f
#endif /* HAVE_STRNCMP_IFUNC  */
Packit Bot d3f87f
Packit Bot daf99b
#if HAVE_STRCHR_IFUNC
Packit Bot daf99b
    IFUNC_IMPL (i, name, strchr,
Packit Bot daf99b
# if HAVE_STRCHR_Z13
Packit Bot daf99b
		IFUNC_IMPL_ADD (array, i, strchr,
Packit Bot daf99b
				dl_hwcap & HWCAP_S390_VX, STRCHR_Z13)
Packit Bot daf99b
# endif
Packit Bot daf99b
# if HAVE_STRCHR_C
Packit Bot daf99b
		IFUNC_IMPL_ADD (array, i, strchr, 1, STRCHR_C)
Packit Bot daf99b
# endif
Packit Bot daf99b
		)
Packit Bot daf99b
#endif /* HAVE_STRCHR_IFUNC  */
Packit Bot daf99b
Packit Bot c684b7
#if HAVE_STRCHRNUL_IFUNC
Packit Bot c684b7
    IFUNC_IMPL (i, name, strchrnul,
Packit Bot c684b7
# if HAVE_STRCHRNUL_Z13
Packit Bot c684b7
		IFUNC_IMPL_ADD (array, i, strchrnul,
Packit Bot c684b7
				dl_hwcap & HWCAP_S390_VX, STRCHRNUL_Z13)
Packit Bot c684b7
# endif
Packit Bot c684b7
# if HAVE_STRCHRNUL_C
Packit Bot c684b7
		IFUNC_IMPL_ADD (array, i, strchrnul, 1, STRCHRNUL_C)
Packit Bot c684b7
# endif
Packit Bot c684b7
		)
Packit Bot c684b7
#endif /* HAVE_STRCHRNUL_IFUNC  */
Packit Bot c684b7
Packit Bot cbb537
#if HAVE_STRRCHR_IFUNC
Packit Bot cbb537
    IFUNC_IMPL (i, name, strrchr,
Packit Bot cbb537
# if HAVE_STRRCHR_Z13
Packit Bot cbb537
		IFUNC_IMPL_ADD (array, i, strrchr,
Packit Bot cbb537
				dl_hwcap & HWCAP_S390_VX, STRRCHR_Z13)
Packit Bot cbb537
# endif
Packit Bot cbb537
# if HAVE_STRRCHR_C
Packit Bot cbb537
		IFUNC_IMPL_ADD (array, i, strrchr, 1, STRRCHR_C)
Packit Bot cbb537
# endif
Packit Bot cbb537
		)
Packit Bot cbb537
#endif /* HAVE_STRRCHR_IFUNC  */
Packit Bot cbb537
Packit Bot 5c1ee9
#if HAVE_STRSPN_IFUNC
Packit Bot 5c1ee9
    IFUNC_IMPL (i, name, strspn,
Packit Bot 5c1ee9
# if HAVE_STRSPN_Z13
Packit Bot 5c1ee9
		IFUNC_IMPL_ADD (array, i, strspn,
Packit Bot 5c1ee9
				dl_hwcap & HWCAP_S390_VX, STRSPN_Z13)
Packit Bot 5c1ee9
# endif
Packit Bot 5c1ee9
# if HAVE_STRSPN_C
Packit Bot 5c1ee9
		IFUNC_IMPL_ADD (array, i, strspn, 1, STRSPN_C)
Packit Bot 5c1ee9
# endif
Packit Bot 5c1ee9
		)
Packit Bot 5c1ee9
#endif /* HAVE_STRSPN_IFUNC  */
Packit Bot 5c1ee9
Packit Bot 490b07
#if HAVE_STRPBRK_IFUNC
Packit Bot 490b07
    IFUNC_IMPL (i, name, strpbrk,
Packit Bot 490b07
# if HAVE_STRPBRK_Z13
Packit Bot 490b07
		IFUNC_IMPL_ADD (array, i, strpbrk,
Packit Bot 490b07
				dl_hwcap & HWCAP_S390_VX, STRPBRK_Z13)
Packit Bot 490b07
# endif
Packit Bot 490b07
# if HAVE_STRPBRK_C
Packit Bot 490b07
		IFUNC_IMPL_ADD (array, i, strpbrk, 1, STRPBRK_C)
Packit Bot 490b07
# endif
Packit Bot 490b07
		)
Packit Bot 490b07
#endif /* HAVE_STRPBRK_IFUNC  */
Packit Bot 490b07
Packit Bot d5359c
#if HAVE_STRCSPN_IFUNC
Packit Bot d5359c
    IFUNC_IMPL (i, name, strcspn,
Packit Bot d5359c
# if HAVE_STRCSPN_Z13
Packit Bot d5359c
		IFUNC_IMPL_ADD (array, i, strcspn,
Packit Bot d5359c
				dl_hwcap & HWCAP_S390_VX, STRCSPN_Z13)
Packit Bot d5359c
# endif
Packit Bot d5359c
# if HAVE_STRCSPN_C
Packit Bot d5359c
		IFUNC_IMPL_ADD (array, i, strcspn, 1, STRCSPN_C)
Packit Bot d5359c
# endif
Packit Bot d5359c
		)
Packit Bot d5359c
#endif /* HAVE_STRCSPN_IFUNC  */
Packit Bot d5359c
Packit Bot c73271
#if HAVE_MEMCHR_IFUNC
Packit Bot c73271
    IFUNC_IMPL (i, name, memchr,
Packit Bot c73271
# if HAVE_MEMCHR_Z13
Packit Bot c73271
		IFUNC_IMPL_ADD (array, i, memchr,
Packit Bot c73271
				dl_hwcap & HWCAP_S390_VX, MEMCHR_Z13)
Packit Bot c73271
# endif
Packit Bot c73271
# if HAVE_MEMCHR_Z900_G5
Packit Bot c73271
		IFUNC_IMPL_ADD (array, i, memchr, 1, MEMCHR_Z900_G5)
Packit Bot c73271
# endif
Packit Bot c73271
		)
Packit Bot c73271
#endif /* HAVE_MEMCHR_IFUNC  */
Packit Bot c73271
Packit Bot a418ca
#if HAVE_RAWMEMCHR_IFUNC
Packit Bot a418ca
    IFUNC_IMPL (i, name, rawmemchr,
Packit Bot a418ca
# if HAVE_RAWMEMCHR_Z13
Packit Bot a418ca
		IFUNC_IMPL_ADD (array, i, rawmemchr,
Packit Bot a418ca
				dl_hwcap & HWCAP_S390_VX, RAWMEMCHR_Z13)
Packit Bot a418ca
# endif
Packit Bot a418ca
# if HAVE_RAWMEMCHR_C
Packit Bot a418ca
		IFUNC_IMPL_ADD (array, i, rawmemchr, 1, RAWMEMCHR_C)
Packit Bot a418ca
# endif
Packit Bot a418ca
		)
Packit Bot a418ca
#endif /* HAVE_RAWMEMCHR_IFUNC  */
Packit Bot a418ca
Packit Bot 8c2af3
#if HAVE_MEMCCPY_IFUNC
Packit Bot 8c2af3
    IFUNC_IMPL (i, name, memccpy,
Packit Bot 8c2af3
# if HAVE_MEMCCPY_Z13
Packit Bot 8c2af3
		IFUNC_IMPL_ADD (array, i, memccpy,
Packit Bot 8c2af3
				dl_hwcap & HWCAP_S390_VX, MEMCCPY_Z13)
Packit Bot 8c2af3
# endif
Packit Bot 8c2af3
# if HAVE_MEMCCPY_C
Packit Bot 8c2af3
		IFUNC_IMPL_ADD (array, i, memccpy, 1, MEMCCPY_C)
Packit Bot 8c2af3
# endif
Packit Bot 8c2af3
		)
Packit Bot 8c2af3
#endif /* HAVE_MEMCCPY_IFUNC  */
Packit Bot 8c2af3
Packit Bot 42c094
#if HAVE_MEMRCHR_IFUNC
Packit Bot 42c094
    IFUNC_IMPL (i, name, memrchr,
Packit Bot 42c094
# if HAVE_MEMRCHR_Z13
Packit Bot 42c094
		IFUNC_IMPL_ADD (array, i, memrchr,
Packit Bot 42c094
				dl_hwcap & HWCAP_S390_VX, MEMRCHR_Z13)
Packit Bot 42c094
# endif
Packit Bot 42c094
# if HAVE_MEMRCHR_C
Packit Bot 42c094
		IFUNC_IMPL_ADD (array, i, memrchr, 1, MEMRCHR_C)
Packit Bot 42c094
# endif
Packit Bot 42c094
		)
Packit Bot 42c094
#endif /* HAVE_MEMRCHR_IFUNC  */
Packit Bot 42c094
Packit Bot 454307
#if HAVE_WCSLEN_IFUNC
Packit Bot 454307
    IFUNC_IMPL (i, name, wcslen,
Packit Bot 454307
# if HAVE_WCSLEN_Z13
Packit Bot 454307
		IFUNC_IMPL_ADD (array, i, wcslen,
Packit Bot 454307
				dl_hwcap & HWCAP_S390_VX, WCSLEN_Z13)
Packit Bot 454307
# endif
Packit Bot 454307
# if HAVE_WCSLEN_C
Packit Bot 454307
		IFUNC_IMPL_ADD (array, i, wcslen, 1, WCSLEN_C)
Packit Bot 454307
# endif
Packit Bot 454307
		)
Packit Bot 454307
#endif /* HAVE_WCSLEN_IFUNC  */
Packit Bot 454307
Packit Bot 1b5642
#if HAVE_WCSNLEN_IFUNC
Packit Bot 1b5642
    IFUNC_IMPL (i, name, wcsnlen,
Packit Bot 1b5642
# if HAVE_WCSNLEN_Z13
Packit Bot 1b5642
		IFUNC_IMPL_ADD (array, i, wcsnlen,
Packit Bot 1b5642
				dl_hwcap & HWCAP_S390_VX, WCSNLEN_Z13)
Packit Bot 1b5642
# endif
Packit Bot 1b5642
# if HAVE_WCSNLEN_C
Packit Bot 1b5642
		IFUNC_IMPL_ADD (array, i, wcsnlen, 1, WCSNLEN_C)
Packit Bot 1b5642
# endif
Packit Bot 1b5642
		)
Packit Bot 1b5642
#endif /* HAVE_WCSNLEN_IFUNC  */
Packit Bot 1b5642
Packit Bot b08673
#if HAVE_WCSCPY_IFUNC
Packit Bot b08673
    IFUNC_IMPL (i, name, wcscpy,
Packit Bot b08673
# if HAVE_WCSCPY_Z13
Packit Bot b08673
		IFUNC_IMPL_ADD (array, i, wcscpy,
Packit Bot b08673
				dl_hwcap & HWCAP_S390_VX, WCSCPY_Z13)
Packit Bot b08673
# endif
Packit Bot b08673
# if HAVE_WCSCPY_C
Packit Bot b08673
		IFUNC_IMPL_ADD (array, i, wcscpy, 1, WCSCPY_C)
Packit Bot b08673
# endif
Packit Bot b08673
		)
Packit Bot b08673
#endif /* HAVE_WCSCPY_IFUNC  */
Packit Bot b08673
Packit Bot 84cf94
#if HAVE_WCPCPY_IFUNC
Packit Bot 84cf94
    IFUNC_IMPL (i, name, wcpcpy,
Packit Bot 84cf94
# if HAVE_WCPCPY_Z13
Packit Bot 84cf94
		IFUNC_IMPL_ADD (array, i, wcpcpy,
Packit Bot 84cf94
				dl_hwcap & HWCAP_S390_VX, WCPCPY_Z13)
Packit Bot 84cf94
# endif
Packit Bot 84cf94
# if HAVE_WCPCPY_C
Packit Bot 84cf94
		IFUNC_IMPL_ADD (array, i, wcpcpy, 1, WCPCPY_C)
Packit Bot 84cf94
# endif
Packit Bot 84cf94
		)
Packit Bot 84cf94
#endif /* HAVE_WCPCPY_IFUNC  */
Packit Bot 84cf94
Packit Bot 2a39a2
#if HAVE_WCSNCPY_IFUNC
Packit Bot 2a39a2
    IFUNC_IMPL (i, name, wcsncpy,
Packit Bot 2a39a2
# if HAVE_WCSNCPY_Z13
Packit Bot 2a39a2
		IFUNC_IMPL_ADD (array, i, wcsncpy,
Packit Bot 2a39a2
				dl_hwcap & HWCAP_S390_VX, WCSNCPY_Z13)
Packit Bot 2a39a2
# endif
Packit Bot 2a39a2
# if HAVE_WCSNCPY_C
Packit Bot 2a39a2
		IFUNC_IMPL_ADD (array, i, wcsncpy, 1, WCSNCPY_C)
Packit Bot 2a39a2
# endif
Packit Bot 2a39a2
		)
Packit Bot 2a39a2
#endif /* HAVE_WCSNCPY_IFUNC  */
Packit Bot 2a39a2
Packit Bot 01b4bb
#if HAVE_WCPNCPY_IFUNC
Packit Bot 01b4bb
    IFUNC_IMPL (i, name, wcpncpy,
Packit Bot 01b4bb
# if HAVE_WCPNCPY_Z13
Packit Bot 01b4bb
		IFUNC_IMPL_ADD (array, i, wcpncpy,
Packit Bot 01b4bb
				dl_hwcap & HWCAP_S390_VX, WCPNCPY_Z13)
Packit Bot 01b4bb
# endif
Packit Bot 01b4bb
# if HAVE_WCPNCPY_C
Packit Bot 01b4bb
		IFUNC_IMPL_ADD (array, i, wcpncpy, 1, WCPNCPY_C)
Packit Bot 01b4bb
# endif
Packit Bot 01b4bb
		)
Packit Bot 01b4bb
#endif /* HAVE_WCPNCPY_IFUNC  */
Packit Bot 01b4bb
Packit Bot 4b5486
#if HAVE_WCSCAT_IFUNC
Packit Bot 4b5486
    IFUNC_IMPL (i, name, wcscat,
Packit Bot 4b5486
# if HAVE_WCSCAT_Z13
Packit Bot 4b5486
		IFUNC_IMPL_ADD (array, i, wcscat,
Packit Bot 4b5486
				dl_hwcap & HWCAP_S390_VX, WCSCAT_Z13)
Packit Bot 4b5486
# endif
Packit Bot 4b5486
# if HAVE_WCSCAT_C
Packit Bot 4b5486
		IFUNC_IMPL_ADD (array, i, wcscat, 1, WCSCAT_C)
Packit Bot 4b5486
# endif
Packit Bot 4b5486
		)
Packit Bot 4b5486
#endif /* HAVE_WCSCAT_IFUNC  */
Packit Bot 4b5486
Packit Bot 09d72c
#if HAVE_WCSNCAT_IFUNC
Packit Bot 09d72c
    IFUNC_IMPL (i, name, wcsncat,
Packit Bot 09d72c
# if HAVE_WCSNCAT_Z13
Packit Bot 09d72c
		IFUNC_IMPL_ADD (array, i, wcsncat,
Packit Bot 09d72c
				dl_hwcap & HWCAP_S390_VX, WCSNCAT_Z13)
Packit Bot 09d72c
# endif
Packit Bot 09d72c
# if HAVE_WCSNCAT_C
Packit Bot 09d72c
		IFUNC_IMPL_ADD (array, i, wcsncat, 1, WCSNCAT_C)
Packit Bot 09d72c
# endif
Packit Bot 09d72c
		)
Packit Bot 09d72c
#endif /* HAVE_WCSNCAT_IFUNC  */
Packit Bot 09d72c
Packit Bot 3bf9c8
#if HAVE_WCSCMP_IFUNC
Packit Bot 3bf9c8
    IFUNC_IMPL (i, name, wcscmp,
Packit Bot 3bf9c8
# if HAVE_WCSCMP_Z13
Packit Bot 3bf9c8
		IFUNC_IMPL_ADD (array, i, wcscmp,
Packit Bot 3bf9c8
				dl_hwcap & HWCAP_S390_VX, WCSCMP_Z13)
Packit Bot 3bf9c8
# endif
Packit Bot 3bf9c8
# if HAVE_WCSCMP_C
Packit Bot 3bf9c8
		IFUNC_IMPL_ADD (array, i, wcscmp, 1, WCSCMP_C)
Packit Bot 3bf9c8
# endif
Packit Bot 3bf9c8
		)
Packit Bot 3bf9c8
#endif /* HAVE_WCSCMP_IFUNC  */
Packit Bot 3bf9c8
Packit Bot 51fd89
#if HAVE_WCSNCMP_IFUNC
Packit Bot 51fd89
    IFUNC_IMPL (i, name, wcsncmp,
Packit Bot 51fd89
# if HAVE_WCSNCMP_Z13
Packit Bot 51fd89
		IFUNC_IMPL_ADD (array, i, wcsncmp,
Packit Bot 51fd89
				dl_hwcap & HWCAP_S390_VX, WCSNCMP_Z13)
Packit Bot 51fd89
# endif
Packit Bot 51fd89
# if HAVE_WCSNCMP_C
Packit Bot 51fd89
		IFUNC_IMPL_ADD (array, i, wcsncmp, 1, WCSNCMP_C)
Packit Bot 51fd89
# endif
Packit Bot 51fd89
		)
Packit Bot 51fd89
#endif /* HAVE_WCSNCMP_IFUNC  */
Packit Bot 51fd89
Packit Bot 555890
#if HAVE_WCSCHR_IFUNC
Packit Bot 555890
    IFUNC_IMPL (i, name, wcschr,
Packit Bot 555890
# if HAVE_WCSCHR_Z13
Packit Bot 555890
		IFUNC_IMPL_ADD (array, i, wcschr,
Packit Bot 555890
				dl_hwcap & HWCAP_S390_VX, WCSCHR_Z13)
Packit Bot 555890
# endif
Packit Bot 555890
# if HAVE_WCSCHR_C
Packit Bot 555890
		IFUNC_IMPL_ADD (array, i, wcschr, 1, WCSCHR_C)
Packit Bot 555890
# endif
Packit Bot 555890
		)
Packit Bot 555890
#endif /* HAVE_WCSCHR_IFUNC  */
Packit Bot 555890
Packit Bot 33d59a
#if HAVE_WCSCHRNUL_IFUNC
Packit Bot 33d59a
    IFUNC_IMPL (i, name, wcschrnul,
Packit Bot 33d59a
# if HAVE_WCSCHRNUL_Z13
Packit Bot 33d59a
		IFUNC_IMPL_ADD (array, i, wcschrnul,
Packit Bot 33d59a
				dl_hwcap & HWCAP_S390_VX, WCSCHRNUL_Z13)
Packit Bot 33d59a
# endif
Packit Bot 33d59a
# if HAVE_WCSCHRNUL_C
Packit Bot 33d59a
		IFUNC_IMPL_ADD (array, i, wcschrnul, 1, WCSCHRNUL_C)
Packit Bot 33d59a
# endif
Packit Bot 33d59a
		)
Packit Bot 33d59a
#endif /* HAVE_WCSCHRNUL_IFUNC  */
Packit Bot 33d59a
Packit Bot 0c2104
#ifdef HAVE_S390_VX_ASM_SUPPORT
Packit Bot 0c2104
Packit Bot 0c2104
# define IFUNC_VX_IMPL(FUNC)						\
Packit Bot 0c2104
  IFUNC_IMPL (i, name, FUNC,						\
Packit Bot 0c2104
	      IFUNC_IMPL_ADD (array, i, FUNC, dl_hwcap & HWCAP_S390_VX, \
Packit Bot 0c2104
			      __##FUNC##_vx)				\
Packit Bot 0c2104
	      IFUNC_IMPL_ADD (array, i, FUNC, 1, __##FUNC##_c))
Packit Bot 0c2104
Packit Bot 0c2104
  IFUNC_VX_IMPL (wcsrchr);
Packit Bot 0c2104
Packit Bot 0c2104
  IFUNC_VX_IMPL (wcsspn);
Packit Bot 0c2104
Packit Bot 0c2104
  IFUNC_VX_IMPL (wcspbrk);
Packit Bot 0c2104
Packit Bot 0c2104
  IFUNC_VX_IMPL (wcscspn);
Packit Bot 0c2104
Packit Bot 0c2104
  IFUNC_VX_IMPL (wmemchr);
Packit Bot 0c2104
Packit Bot 0c2104
  IFUNC_VX_IMPL (wmemset);
Packit Bot 0c2104
Packit Bot 0c2104
  IFUNC_VX_IMPL (wmemcmp);
Packit Bot 0c2104
Packit Bot 0c2104
#endif /* HAVE_S390_VX_ASM_SUPPORT */
Packit 6c4009
Packit 6c4009
  return i;
Packit 6c4009
}