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 5321d4
#include <ifunc-memset.h>
Packit Service a05f6b
#include <ifunc-memcmp.h>
Packit Service 391628
#include <ifunc-memcpy.h>
Packit Service 08e43f
#include <ifunc-strstr.h>
Packit Service b6ba21
#include <ifunc-memmem.h>
Packit Service b7482e
#include <ifunc-strlen.h>
Packit Service 15f873
#include <ifunc-strnlen.h>
Packit Service 73d558
#include <ifunc-strcpy.h>
Packit Service fb4e6a
#include <ifunc-stpcpy.h>
Packit Service 3a68f2
#include <ifunc-strncpy.h>
Packit Service e74447
#include <ifunc-stpncpy.h>
Packit Service 0c51ed
#include <ifunc-strcat.h>
Packit Service a75973
#include <ifunc-strncat.h>
Packit Service fa9182
#include <ifunc-strcmp.h>
Packit Service 5326e2
#include <ifunc-strncmp.h>
Packit Service d64664
#include <ifunc-strchr.h>
Packit Service 5e9812
#include <ifunc-strchrnul.h>
Packit Service 406a25
#include <ifunc-strrchr.h>
Packit Service 126f23
#include <ifunc-strspn.h>
Packit Service dd846c
#include <ifunc-strpbrk.h>
Packit Service d318d7
#include <ifunc-strcspn.h>
Packit Service 129e7d
#include <ifunc-memchr.h>
Packit Service 1e1498
#include <ifunc-rawmemchr.h>
Packit Service 46c4a1
#include <ifunc-memccpy.h>
Packit Service 811ee2
#include <ifunc-memrchr.h>
Packit Service ce2afb
#include <ifunc-wcslen.h>
Packit Service 50d105
#include <ifunc-wcsnlen.h>
Packit Service e1d519
#include <ifunc-wcscpy.h>
Packit Service c9d83a
#include <ifunc-wcpcpy.h>
Packit Service a64cb7
#include <ifunc-wcsncpy.h>
Packit Service 591d15
#include <ifunc-wcpncpy.h>
Packit Service f124f2
#include <ifunc-wcscat.h>
Packit Service 2be7aa
#include <ifunc-wcsncat.h>
Packit Service 27e091
#include <ifunc-wcscmp.h>
Packit Service b1e4d6
#include <ifunc-wcsncmp.h>
Packit Service 3eb67e
#include <ifunc-wcschr.h>
Packit Service 95c0d3
#include <ifunc-wcschrnul.h>
Packit Service c68ba0
#include <ifunc-wcsrchr.h>
Packit Service 43cdbd
#include <ifunc-wcsspn.h>
Packit Service 70290e
#include <ifunc-wcspbrk.h>
Packit Service 2a648e
#include <ifunc-wcscspn.h>
Packit Service efeb85
#include <ifunc-wmemchr.h>
Packit Service b5f72c
#include <ifunc-wmemset.h>
Packit Service 0d903d
#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 5321d4
#if HAVE_MEMSET_IFUNC
Packit Service 82fcde
  IFUNC_IMPL (i, name, memset,
Packit Service 5321d4
# if HAVE_MEMSET_Z196
Packit Service 82fcde
	      IFUNC_IMPL_ADD (array, i, memset,
Packit Service 5321d4
			      S390_IS_Z196 (stfle_bits), MEMSET_Z196)
Packit Service 5321d4
# endif
Packit Service 5321d4
# if HAVE_MEMSET_Z10
Packit Service 82fcde
	      IFUNC_IMPL_ADD (array, i, memset,
Packit Service 5321d4
			      S390_IS_Z10 (stfle_bits), MEMSET_Z10)
Packit Service 5321d4
# endif
Packit Service 5321d4
# if HAVE_MEMSET_Z900_G5
Packit Service 5321d4
	      IFUNC_IMPL_ADD (array, i, memset, 1, MEMSET_Z900_G5)
Packit Service 5321d4
# endif
Packit Service 5321d4
	      )
Packit Service 6252ed
Packit Service 6252ed
  /* Note: bzero is implemented in memset.  */
Packit Service 6252ed
  IFUNC_IMPL (i, name, bzero,
Packit Service 6252ed
# if HAVE_MEMSET_Z196
Packit Service 6252ed
	      IFUNC_IMPL_ADD (array, i, bzero,
Packit Service 6252ed
			      S390_IS_Z196 (stfle_bits), BZERO_Z196)
Packit Service 6252ed
# endif
Packit Service 6252ed
# if HAVE_MEMSET_Z10
Packit Service 6252ed
	      IFUNC_IMPL_ADD (array, i, bzero,
Packit Service 6252ed
			      S390_IS_Z10 (stfle_bits), BZERO_Z10)
Packit Service 6252ed
# endif
Packit Service 6252ed
# if HAVE_MEMSET_Z900_G5
Packit Service 6252ed
	      IFUNC_IMPL_ADD (array, i, bzero, 1, BZERO_Z900_G5)
Packit Service 6252ed
# endif
Packit Service 6252ed
	      )
Packit Service 5321d4
#endif /* HAVE_MEMSET_IFUNC */
Packit Service 82fcde
Packit Service a05f6b
#if HAVE_MEMCMP_IFUNC
Packit Service 82fcde
  IFUNC_IMPL (i, name, memcmp,
Packit Service a05f6b
# if HAVE_MEMCMP_Z196
Packit Service 82fcde
	      IFUNC_IMPL_ADD (array, i, memcmp,
Packit Service a05f6b
			      S390_IS_Z196 (stfle_bits), MEMCMP_Z196)
Packit Service a05f6b
# endif
Packit Service a05f6b
# if HAVE_MEMCMP_Z10
Packit Service 82fcde
	      IFUNC_IMPL_ADD (array, i, memcmp,
Packit Service a05f6b
			      S390_IS_Z10 (stfle_bits), MEMCMP_Z10)
Packit Service a05f6b
# endif
Packit Service a05f6b
# if HAVE_MEMCMP_Z900_G5
Packit Service a05f6b
	      IFUNC_IMPL_ADD (array, i, memcmp, 1, MEMCMP_Z900_G5)
Packit Service a05f6b
# endif
Packit Service a05f6b
	      )
Packit Service a05f6b
#endif /* HAVE_MEMCMP_IFUNC */
Packit Service 82fcde
Packit Service 391628
#if HAVE_MEMCPY_IFUNC
Packit Service 82fcde
  IFUNC_IMPL (i, name, memcpy,
Packit Service 391628
# if HAVE_MEMCPY_Z196
Packit Service 82fcde
	      IFUNC_IMPL_ADD (array, i, memcpy,
Packit Service 391628
			      S390_IS_Z196 (stfle_bits), MEMCPY_Z196)
Packit Service 391628
# endif
Packit Service 391628
# if HAVE_MEMCPY_Z10
Packit Service 82fcde
	      IFUNC_IMPL_ADD (array, i, memcpy,
Packit Service 391628
			      S390_IS_Z10 (stfle_bits), MEMCPY_Z10)
Packit Service 391628
# endif
Packit Service 391628
# if HAVE_MEMCPY_Z900_G5
Packit Service 391628
	      IFUNC_IMPL_ADD (array, i, memcpy, 1, MEMCPY_Z900_G5)
Packit Service 391628
# endif
Packit Service 391628
	      )
Packit Service 82fcde
Packit Service 82fcde
  IFUNC_IMPL (i, name, mempcpy,
Packit Service 391628
# if HAVE_MEMCPY_Z196
Packit Service 82fcde
	      IFUNC_IMPL_ADD (array, i, mempcpy,
Packit Service 391628
			      S390_IS_Z196 (stfle_bits), MEMPCPY_Z196)
Packit Service 391628
# endif
Packit Service 391628
# if HAVE_MEMCPY_Z10
Packit Service 82fcde
	      IFUNC_IMPL_ADD (array, i, mempcpy,
Packit Service 391628
			      S390_IS_Z10 (stfle_bits), MEMPCPY_Z10)
Packit Service 391628
# endif
Packit Service 391628
# if HAVE_MEMCPY_Z900_G5
Packit Service 391628
	      IFUNC_IMPL_ADD (array, i, mempcpy, 1, MEMPCPY_Z900_G5)
Packit Service 391628
# endif
Packit Service 391628
	      )
Packit Service 391628
#endif /* HAVE_MEMCPY_IFUNC  */
Packit Service 82fcde
Packit Service 7e0d71
#if HAVE_MEMMOVE_IFUNC
Packit Service 7e0d71
    IFUNC_IMPL (i, name, memmove,
Packit Service e08202
# if HAVE_MEMMOVE_ARCH13
Packit Service e08202
		IFUNC_IMPL_ADD (array, i, memmove,
Packit Service e08202
				S390_IS_ARCH13_MIE3 (stfle_bits),
Packit Service e08202
				MEMMOVE_ARCH13)
Packit Service e08202
# endif
Packit Service 7e0d71
# if HAVE_MEMMOVE_Z13
Packit Service 7e0d71
		IFUNC_IMPL_ADD (array, i, memmove,
Packit Service 7e0d71
				dl_hwcap & HWCAP_S390_VX, MEMMOVE_Z13)
Packit Service 7e0d71
# endif
Packit Service 7e0d71
# if HAVE_MEMMOVE_C
Packit Service 7e0d71
		IFUNC_IMPL_ADD (array, i, memmove, 1, MEMMOVE_C)
Packit Service 7e0d71
# endif
Packit Service 7e0d71
		)
Packit Service 7e0d71
#endif /* HAVE_MEMMOVE_IFUNC  */
Packit Service 7e0d71
Packit Service 08e43f
#if HAVE_STRSTR_IFUNC
Packit Service 08e43f
    IFUNC_IMPL (i, name, strstr,
Packit Service c0638a
# if HAVE_STRSTR_ARCH13
Packit Service c0638a
		IFUNC_IMPL_ADD (array, i, strstr,
Packit Service c0638a
				dl_hwcap & HWCAP_S390_VXRS_EXT2, STRSTR_ARCH13)
Packit Service c0638a
# endif
Packit Service 08e43f
# if HAVE_STRSTR_Z13
Packit Service 08e43f
		IFUNC_IMPL_ADD (array, i, strstr,
Packit Service 08e43f
				dl_hwcap & HWCAP_S390_VX, STRSTR_Z13)
Packit Service 08e43f
# endif
Packit Service 08e43f
# if HAVE_STRSTR_C
Packit Service 08e43f
		IFUNC_IMPL_ADD (array, i, strstr, 1, STRSTR_C)
Packit Service 08e43f
# endif
Packit Service 08e43f
		)
Packit Service 08e43f
#endif /* HAVE_STRSTR_IFUNC  */
Packit Service 08e43f
Packit Service b6ba21
#if HAVE_MEMMEM_IFUNC
Packit Service b6ba21
    IFUNC_IMPL (i, name, memmem,
Packit Service 9dd35d
# if HAVE_MEMMEM_ARCH13
Packit Service 9dd35d
	      IFUNC_IMPL_ADD (array, i, memmem,
Packit Service 9dd35d
			      dl_hwcap & HWCAP_S390_VXRS_EXT2, MEMMEM_ARCH13)
Packit Service 9dd35d
# endif
Packit Service b6ba21
# if HAVE_MEMMEM_Z13
Packit Service b6ba21
		IFUNC_IMPL_ADD (array, i, memmem,
Packit Service b6ba21
				dl_hwcap & HWCAP_S390_VX, MEMMEM_Z13)
Packit Service b6ba21
# endif
Packit Service b6ba21
# if HAVE_MEMMEM_C
Packit Service b6ba21
		IFUNC_IMPL_ADD (array, i, memmem, 1, MEMMEM_C)
Packit Service b6ba21
# endif
Packit Service b6ba21
		)
Packit Service b6ba21
#endif /* HAVE_MEMMEM_IFUNC  */
Packit Service b6ba21
Packit Service b7482e
#if HAVE_STRLEN_IFUNC
Packit Service b7482e
    IFUNC_IMPL (i, name, strlen,
Packit Service b7482e
# if HAVE_STRLEN_Z13
Packit Service b7482e
		IFUNC_IMPL_ADD (array, i, strlen,
Packit Service b7482e
				dl_hwcap & HWCAP_S390_VX, STRLEN_Z13)
Packit Service b7482e
# endif
Packit Service b7482e
# if HAVE_STRLEN_C
Packit Service b7482e
		IFUNC_IMPL_ADD (array, i, strlen, 1, STRLEN_C)
Packit Service b7482e
# endif
Packit Service b7482e
		)
Packit Service b7482e
#endif /* HAVE_STRLEN_IFUNC  */
Packit Service b7482e
Packit Service 15f873
#if HAVE_STRNLEN_IFUNC
Packit Service 15f873
    IFUNC_IMPL (i, name, strnlen,
Packit Service 15f873
# if HAVE_STRNLEN_Z13
Packit Service 15f873
		IFUNC_IMPL_ADD (array, i, strnlen,
Packit Service 15f873
				dl_hwcap & HWCAP_S390_VX, STRNLEN_Z13)
Packit Service 15f873
# endif
Packit Service 15f873
# if HAVE_STRNLEN_C
Packit Service 15f873
		IFUNC_IMPL_ADD (array, i, strnlen, 1, STRNLEN_C)
Packit Service 15f873
# endif
Packit Service 15f873
		)
Packit Service 15f873
#endif /* HAVE_STRNLEN_IFUNC  */
Packit Service 15f873
Packit Service 73d558
#if HAVE_STRCPY_IFUNC
Packit Service 73d558
    IFUNC_IMPL (i, name, strcpy,
Packit Service 73d558
# if HAVE_STRCPY_Z13
Packit Service 73d558
		IFUNC_IMPL_ADD (array, i, strcpy,
Packit Service 73d558
				dl_hwcap & HWCAP_S390_VX, STRCPY_Z13)
Packit Service 73d558
# endif
Packit Service 73d558
# if HAVE_STRCPY_Z900_G5
Packit Service 73d558
		IFUNC_IMPL_ADD (array, i, strcpy, 1, STRCPY_Z900_G5)
Packit Service 73d558
# endif
Packit Service 73d558
		)
Packit Service 73d558
#endif /* HAVE_STRCPY_IFUNC  */
Packit Service 73d558
Packit Service fb4e6a
#if HAVE_STPCPY_IFUNC
Packit Service fb4e6a
    IFUNC_IMPL (i, name, stpcpy,
Packit Service fb4e6a
# if HAVE_STPCPY_Z13
Packit Service fb4e6a
		IFUNC_IMPL_ADD (array, i, stpcpy,
Packit Service fb4e6a
				dl_hwcap & HWCAP_S390_VX, STPCPY_Z13)
Packit Service fb4e6a
# endif
Packit Service fb4e6a
# if HAVE_STPCPY_C
Packit Service fb4e6a
		IFUNC_IMPL_ADD (array, i, stpcpy, 1, STPCPY_C)
Packit Service fb4e6a
# endif
Packit Service fb4e6a
		)
Packit Service fb4e6a
#endif /* HAVE_STPCPY_IFUNC  */
Packit Service fb4e6a
Packit Service 3a68f2
#if HAVE_STRNCPY_IFUNC
Packit Service 3a68f2
    IFUNC_IMPL (i, name, strncpy,
Packit Service 3a68f2
# if HAVE_STRNCPY_Z13
Packit Service 3a68f2
		IFUNC_IMPL_ADD (array, i, strncpy,
Packit Service 3a68f2
				dl_hwcap & HWCAP_S390_VX, STRNCPY_Z13)
Packit Service 3a68f2
# endif
Packit Service 3a68f2
# if HAVE_STRNCPY_Z900_G5
Packit Service 3a68f2
		IFUNC_IMPL_ADD (array, i, strncpy, 1, STRNCPY_Z900_G5)
Packit Service 3a68f2
# endif
Packit Service 3a68f2
		)
Packit Service 3a68f2
#endif /* HAVE_STRNCPY_IFUNC  */
Packit Service 3a68f2
Packit Service e74447
#if HAVE_STPNCPY_IFUNC
Packit Service e74447
    IFUNC_IMPL (i, name, stpncpy,
Packit Service e74447
# if HAVE_STPNCPY_Z13
Packit Service e74447
		IFUNC_IMPL_ADD (array, i, stpncpy,
Packit Service e74447
				dl_hwcap & HWCAP_S390_VX, STPNCPY_Z13)
Packit Service e74447
# endif
Packit Service e74447
# if HAVE_STPNCPY_C
Packit Service e74447
		IFUNC_IMPL_ADD (array, i, stpncpy, 1, STPNCPY_C)
Packit Service e74447
# endif
Packit Service e74447
		)
Packit Service e74447
#endif /* HAVE_STPNCPY_IFUNC  */
Packit Service e74447
Packit Service 0c51ed
#if HAVE_STRCAT_IFUNC
Packit Service 0c51ed
    IFUNC_IMPL (i, name, strcat,
Packit Service 0c51ed
# if HAVE_STRCAT_Z13
Packit Service 0c51ed
		IFUNC_IMPL_ADD (array, i, strcat,
Packit Service 0c51ed
				dl_hwcap & HWCAP_S390_VX, STRCAT_Z13)
Packit Service 0c51ed
# endif
Packit Service 0c51ed
# if HAVE_STRCAT_C
Packit Service 0c51ed
		IFUNC_IMPL_ADD (array, i, strcat, 1, STRCAT_C)
Packit Service 0c51ed
# endif
Packit Service 0c51ed
		)
Packit Service 0c51ed
#endif /* HAVE_STRCAT_IFUNC  */
Packit Service 3a68f2
Packit Service a75973
#if HAVE_STRNCAT_IFUNC
Packit Service a75973
    IFUNC_IMPL (i, name, strncat,
Packit Service a75973
# if HAVE_STRNCAT_Z13
Packit Service a75973
		IFUNC_IMPL_ADD (array, i, strncat,
Packit Service a75973
				dl_hwcap & HWCAP_S390_VX, STRNCAT_Z13)
Packit Service a75973
# endif
Packit Service a75973
# if HAVE_STRNCAT_C
Packit Service a75973
		IFUNC_IMPL_ADD (array, i, strncat, 1, STRNCAT_C)
Packit Service a75973
# endif
Packit Service a75973
		)
Packit Service a75973
#endif /* HAVE_STRNCAT_IFUNC  */
Packit Service a75973
Packit Service fa9182
#if HAVE_STRCMP_IFUNC
Packit Service fa9182
    IFUNC_IMPL (i, name, strcmp,
Packit Service fa9182
# if HAVE_STRCMP_Z13
Packit Service fa9182
		IFUNC_IMPL_ADD (array, i, strcmp,
Packit Service fa9182
				dl_hwcap & HWCAP_S390_VX, STRCMP_Z13)
Packit Service fa9182
# endif
Packit Service fa9182
# if HAVE_STRCMP_Z900_G5
Packit Service fa9182
		IFUNC_IMPL_ADD (array, i, strcmp, 1, STRCMP_Z900_G5)
Packit Service fa9182
# endif
Packit Service fa9182
		)
Packit Service fa9182
#endif /* HAVE_STRCMP_IFUNC  */
Packit Service fa9182
Packit Service 5326e2
#if HAVE_STRNCMP_IFUNC
Packit Service 5326e2
    IFUNC_IMPL (i, name, strncmp,
Packit Service 5326e2
# if HAVE_STRNCMP_Z13
Packit Service 5326e2
		IFUNC_IMPL_ADD (array, i, strncmp,
Packit Service 5326e2
				dl_hwcap & HWCAP_S390_VX, STRNCMP_Z13)
Packit Service 5326e2
# endif
Packit Service 5326e2
# if HAVE_STRNCMP_C
Packit Service 5326e2
		IFUNC_IMPL_ADD (array, i, strncmp, 1, STRNCMP_C)
Packit Service 5326e2
# endif
Packit Service 5326e2
		)
Packit Service 5326e2
#endif /* HAVE_STRNCMP_IFUNC  */
Packit Service 5326e2
Packit Service d64664
#if HAVE_STRCHR_IFUNC
Packit Service d64664
    IFUNC_IMPL (i, name, strchr,
Packit Service d64664
# if HAVE_STRCHR_Z13
Packit Service d64664
		IFUNC_IMPL_ADD (array, i, strchr,
Packit Service d64664
				dl_hwcap & HWCAP_S390_VX, STRCHR_Z13)
Packit Service d64664
# endif
Packit Service d64664
# if HAVE_STRCHR_C
Packit Service d64664
		IFUNC_IMPL_ADD (array, i, strchr, 1, STRCHR_C)
Packit Service d64664
# endif
Packit Service d64664
		)
Packit Service d64664
#endif /* HAVE_STRCHR_IFUNC  */
Packit Service d64664
Packit Service 5e9812
#if HAVE_STRCHRNUL_IFUNC
Packit Service 5e9812
    IFUNC_IMPL (i, name, strchrnul,
Packit Service 5e9812
# if HAVE_STRCHRNUL_Z13
Packit Service 5e9812
		IFUNC_IMPL_ADD (array, i, strchrnul,
Packit Service 5e9812
				dl_hwcap & HWCAP_S390_VX, STRCHRNUL_Z13)
Packit Service 5e9812
# endif
Packit Service 5e9812
# if HAVE_STRCHRNUL_C
Packit Service 5e9812
		IFUNC_IMPL_ADD (array, i, strchrnul, 1, STRCHRNUL_C)
Packit Service 5e9812
# endif
Packit Service 5e9812
		)
Packit Service 5e9812
#endif /* HAVE_STRCHRNUL_IFUNC  */
Packit Service 5e9812
Packit Service 406a25
#if HAVE_STRRCHR_IFUNC
Packit Service 406a25
    IFUNC_IMPL (i, name, strrchr,
Packit Service 406a25
# if HAVE_STRRCHR_Z13
Packit Service 406a25
		IFUNC_IMPL_ADD (array, i, strrchr,
Packit Service 406a25
				dl_hwcap & HWCAP_S390_VX, STRRCHR_Z13)
Packit Service 406a25
# endif
Packit Service 406a25
# if HAVE_STRRCHR_C
Packit Service 406a25
		IFUNC_IMPL_ADD (array, i, strrchr, 1, STRRCHR_C)
Packit Service 406a25
# endif
Packit Service 406a25
		)
Packit Service 406a25
#endif /* HAVE_STRRCHR_IFUNC  */
Packit Service 406a25
Packit Service 126f23
#if HAVE_STRSPN_IFUNC
Packit Service 126f23
    IFUNC_IMPL (i, name, strspn,
Packit Service 126f23
# if HAVE_STRSPN_Z13
Packit Service 126f23
		IFUNC_IMPL_ADD (array, i, strspn,
Packit Service 126f23
				dl_hwcap & HWCAP_S390_VX, STRSPN_Z13)
Packit Service 126f23
# endif
Packit Service 126f23
# if HAVE_STRSPN_C
Packit Service 126f23
		IFUNC_IMPL_ADD (array, i, strspn, 1, STRSPN_C)
Packit Service 126f23
# endif
Packit Service 126f23
		)
Packit Service 126f23
#endif /* HAVE_STRSPN_IFUNC  */
Packit Service 126f23
Packit Service dd846c
#if HAVE_STRPBRK_IFUNC
Packit Service dd846c
    IFUNC_IMPL (i, name, strpbrk,
Packit Service dd846c
# if HAVE_STRPBRK_Z13
Packit Service dd846c
		IFUNC_IMPL_ADD (array, i, strpbrk,
Packit Service dd846c
				dl_hwcap & HWCAP_S390_VX, STRPBRK_Z13)
Packit Service dd846c
# endif
Packit Service dd846c
# if HAVE_STRPBRK_C
Packit Service dd846c
		IFUNC_IMPL_ADD (array, i, strpbrk, 1, STRPBRK_C)
Packit Service dd846c
# endif
Packit Service dd846c
		)
Packit Service dd846c
#endif /* HAVE_STRPBRK_IFUNC  */
Packit Service dd846c
Packit Service d318d7
#if HAVE_STRCSPN_IFUNC
Packit Service d318d7
    IFUNC_IMPL (i, name, strcspn,
Packit Service d318d7
# if HAVE_STRCSPN_Z13
Packit Service d318d7
		IFUNC_IMPL_ADD (array, i, strcspn,
Packit Service d318d7
				dl_hwcap & HWCAP_S390_VX, STRCSPN_Z13)
Packit Service d318d7
# endif
Packit Service d318d7
# if HAVE_STRCSPN_C
Packit Service d318d7
		IFUNC_IMPL_ADD (array, i, strcspn, 1, STRCSPN_C)
Packit Service d318d7
# endif
Packit Service d318d7
		)
Packit Service d318d7
#endif /* HAVE_STRCSPN_IFUNC  */
Packit Service d318d7
Packit Service 129e7d
#if HAVE_MEMCHR_IFUNC
Packit Service 129e7d
    IFUNC_IMPL (i, name, memchr,
Packit Service 129e7d
# if HAVE_MEMCHR_Z13
Packit Service 129e7d
		IFUNC_IMPL_ADD (array, i, memchr,
Packit Service 129e7d
				dl_hwcap & HWCAP_S390_VX, MEMCHR_Z13)
Packit Service 129e7d
# endif
Packit Service 129e7d
# if HAVE_MEMCHR_Z900_G5
Packit Service 129e7d
		IFUNC_IMPL_ADD (array, i, memchr, 1, MEMCHR_Z900_G5)
Packit Service 129e7d
# endif
Packit Service 129e7d
		)
Packit Service 129e7d
#endif /* HAVE_MEMCHR_IFUNC  */
Packit Service 129e7d
Packit Service 1e1498
#if HAVE_RAWMEMCHR_IFUNC
Packit Service 1e1498
    IFUNC_IMPL (i, name, rawmemchr,
Packit Service 1e1498
# if HAVE_RAWMEMCHR_Z13
Packit Service 1e1498
		IFUNC_IMPL_ADD (array, i, rawmemchr,
Packit Service 1e1498
				dl_hwcap & HWCAP_S390_VX, RAWMEMCHR_Z13)
Packit Service 1e1498
# endif
Packit Service 1e1498
# if HAVE_RAWMEMCHR_C
Packit Service 1e1498
		IFUNC_IMPL_ADD (array, i, rawmemchr, 1, RAWMEMCHR_C)
Packit Service 1e1498
# endif
Packit Service 1e1498
		)
Packit Service 1e1498
#endif /* HAVE_RAWMEMCHR_IFUNC  */
Packit Service 1e1498
Packit Service 46c4a1
#if HAVE_MEMCCPY_IFUNC
Packit Service 46c4a1
    IFUNC_IMPL (i, name, memccpy,
Packit Service 46c4a1
# if HAVE_MEMCCPY_Z13
Packit Service 46c4a1
		IFUNC_IMPL_ADD (array, i, memccpy,
Packit Service 46c4a1
				dl_hwcap & HWCAP_S390_VX, MEMCCPY_Z13)
Packit Service 46c4a1
# endif
Packit Service 46c4a1
# if HAVE_MEMCCPY_C
Packit Service 46c4a1
		IFUNC_IMPL_ADD (array, i, memccpy, 1, MEMCCPY_C)
Packit Service 46c4a1
# endif
Packit Service 46c4a1
		)
Packit Service 46c4a1
#endif /* HAVE_MEMCCPY_IFUNC  */
Packit Service 46c4a1
Packit Service 811ee2
#if HAVE_MEMRCHR_IFUNC
Packit Service 811ee2
    IFUNC_IMPL (i, name, memrchr,
Packit Service 811ee2
# if HAVE_MEMRCHR_Z13
Packit Service 811ee2
		IFUNC_IMPL_ADD (array, i, memrchr,
Packit Service 811ee2
				dl_hwcap & HWCAP_S390_VX, MEMRCHR_Z13)
Packit Service 811ee2
# endif
Packit Service 811ee2
# if HAVE_MEMRCHR_C
Packit Service 811ee2
		IFUNC_IMPL_ADD (array, i, memrchr, 1, MEMRCHR_C)
Packit Service 811ee2
# endif
Packit Service 811ee2
		)
Packit Service 811ee2
#endif /* HAVE_MEMRCHR_IFUNC  */
Packit Service 811ee2
Packit Service ce2afb
#if HAVE_WCSLEN_IFUNC
Packit Service ce2afb
    IFUNC_IMPL (i, name, wcslen,
Packit Service ce2afb
# if HAVE_WCSLEN_Z13
Packit Service ce2afb
		IFUNC_IMPL_ADD (array, i, wcslen,
Packit Service ce2afb
				dl_hwcap & HWCAP_S390_VX, WCSLEN_Z13)
Packit Service ce2afb
# endif
Packit Service ce2afb
# if HAVE_WCSLEN_C
Packit Service ce2afb
		IFUNC_IMPL_ADD (array, i, wcslen, 1, WCSLEN_C)
Packit Service ce2afb
# endif
Packit Service ce2afb
		)
Packit Service ce2afb
#endif /* HAVE_WCSLEN_IFUNC  */
Packit Service ce2afb
Packit Service 50d105
#if HAVE_WCSNLEN_IFUNC
Packit Service 50d105
    IFUNC_IMPL (i, name, wcsnlen,
Packit Service 50d105
# if HAVE_WCSNLEN_Z13
Packit Service 50d105
		IFUNC_IMPL_ADD (array, i, wcsnlen,
Packit Service 50d105
				dl_hwcap & HWCAP_S390_VX, WCSNLEN_Z13)
Packit Service 50d105
# endif
Packit Service 50d105
# if HAVE_WCSNLEN_C
Packit Service 50d105
		IFUNC_IMPL_ADD (array, i, wcsnlen, 1, WCSNLEN_C)
Packit Service 50d105
# endif
Packit Service 50d105
		)
Packit Service 50d105
#endif /* HAVE_WCSNLEN_IFUNC  */
Packit Service 50d105
Packit Service e1d519
#if HAVE_WCSCPY_IFUNC
Packit Service e1d519
    IFUNC_IMPL (i, name, wcscpy,
Packit Service e1d519
# if HAVE_WCSCPY_Z13
Packit Service e1d519
		IFUNC_IMPL_ADD (array, i, wcscpy,
Packit Service e1d519
				dl_hwcap & HWCAP_S390_VX, WCSCPY_Z13)
Packit Service e1d519
# endif
Packit Service e1d519
# if HAVE_WCSCPY_C
Packit Service e1d519
		IFUNC_IMPL_ADD (array, i, wcscpy, 1, WCSCPY_C)
Packit Service e1d519
# endif
Packit Service e1d519
		)
Packit Service e1d519
#endif /* HAVE_WCSCPY_IFUNC  */
Packit Service e1d519
Packit Service c9d83a
#if HAVE_WCPCPY_IFUNC
Packit Service c9d83a
    IFUNC_IMPL (i, name, wcpcpy,
Packit Service c9d83a
# if HAVE_WCPCPY_Z13
Packit Service c9d83a
		IFUNC_IMPL_ADD (array, i, wcpcpy,
Packit Service c9d83a
				dl_hwcap & HWCAP_S390_VX, WCPCPY_Z13)
Packit Service c9d83a
# endif
Packit Service c9d83a
# if HAVE_WCPCPY_C
Packit Service c9d83a
		IFUNC_IMPL_ADD (array, i, wcpcpy, 1, WCPCPY_C)
Packit Service c9d83a
# endif
Packit Service c9d83a
		)
Packit Service c9d83a
#endif /* HAVE_WCPCPY_IFUNC  */
Packit Service c9d83a
Packit Service a64cb7
#if HAVE_WCSNCPY_IFUNC
Packit Service a64cb7
    IFUNC_IMPL (i, name, wcsncpy,
Packit Service a64cb7
# if HAVE_WCSNCPY_Z13
Packit Service a64cb7
		IFUNC_IMPL_ADD (array, i, wcsncpy,
Packit Service a64cb7
				dl_hwcap & HWCAP_S390_VX, WCSNCPY_Z13)
Packit Service a64cb7
# endif
Packit Service a64cb7
# if HAVE_WCSNCPY_C
Packit Service a64cb7
		IFUNC_IMPL_ADD (array, i, wcsncpy, 1, WCSNCPY_C)
Packit Service a64cb7
# endif
Packit Service a64cb7
		)
Packit Service a64cb7
#endif /* HAVE_WCSNCPY_IFUNC  */
Packit Service a64cb7
Packit Service 591d15
#if HAVE_WCPNCPY_IFUNC
Packit Service 591d15
    IFUNC_IMPL (i, name, wcpncpy,
Packit Service 591d15
# if HAVE_WCPNCPY_Z13
Packit Service 591d15
		IFUNC_IMPL_ADD (array, i, wcpncpy,
Packit Service 591d15
				dl_hwcap & HWCAP_S390_VX, WCPNCPY_Z13)
Packit Service 591d15
# endif
Packit Service 591d15
# if HAVE_WCPNCPY_C
Packit Service 591d15
		IFUNC_IMPL_ADD (array, i, wcpncpy, 1, WCPNCPY_C)
Packit Service 591d15
# endif
Packit Service 591d15
		)
Packit Service 591d15
#endif /* HAVE_WCPNCPY_IFUNC  */
Packit Service 591d15
Packit Service f124f2
#if HAVE_WCSCAT_IFUNC
Packit Service f124f2
    IFUNC_IMPL (i, name, wcscat,
Packit Service f124f2
# if HAVE_WCSCAT_Z13
Packit Service f124f2
		IFUNC_IMPL_ADD (array, i, wcscat,
Packit Service f124f2
				dl_hwcap & HWCAP_S390_VX, WCSCAT_Z13)
Packit Service f124f2
# endif
Packit Service f124f2
# if HAVE_WCSCAT_C
Packit Service f124f2
		IFUNC_IMPL_ADD (array, i, wcscat, 1, WCSCAT_C)
Packit Service f124f2
# endif
Packit Service f124f2
		)
Packit Service f124f2
#endif /* HAVE_WCSCAT_IFUNC  */
Packit Service f124f2
Packit Service 2be7aa
#if HAVE_WCSNCAT_IFUNC
Packit Service 2be7aa
    IFUNC_IMPL (i, name, wcsncat,
Packit Service 2be7aa
# if HAVE_WCSNCAT_Z13
Packit Service 2be7aa
		IFUNC_IMPL_ADD (array, i, wcsncat,
Packit Service 2be7aa
				dl_hwcap & HWCAP_S390_VX, WCSNCAT_Z13)
Packit Service 2be7aa
# endif
Packit Service 2be7aa
# if HAVE_WCSNCAT_C
Packit Service 2be7aa
		IFUNC_IMPL_ADD (array, i, wcsncat, 1, WCSNCAT_C)
Packit Service 2be7aa
# endif
Packit Service 2be7aa
		)
Packit Service 2be7aa
#endif /* HAVE_WCSNCAT_IFUNC  */
Packit Service 2be7aa
Packit Service 27e091
#if HAVE_WCSCMP_IFUNC
Packit Service 27e091
    IFUNC_IMPL (i, name, wcscmp,
Packit Service 27e091
# if HAVE_WCSCMP_Z13
Packit Service 27e091
		IFUNC_IMPL_ADD (array, i, wcscmp,
Packit Service 27e091
				dl_hwcap & HWCAP_S390_VX, WCSCMP_Z13)
Packit Service 27e091
# endif
Packit Service 27e091
# if HAVE_WCSCMP_C
Packit Service 27e091
		IFUNC_IMPL_ADD (array, i, wcscmp, 1, WCSCMP_C)
Packit Service 27e091
# endif
Packit Service 27e091
		)
Packit Service 27e091
#endif /* HAVE_WCSCMP_IFUNC  */
Packit Service 27e091
Packit Service b1e4d6
#if HAVE_WCSNCMP_IFUNC
Packit Service b1e4d6
    IFUNC_IMPL (i, name, wcsncmp,
Packit Service b1e4d6
# if HAVE_WCSNCMP_Z13
Packit Service b1e4d6
		IFUNC_IMPL_ADD (array, i, wcsncmp,
Packit Service b1e4d6
				dl_hwcap & HWCAP_S390_VX, WCSNCMP_Z13)
Packit Service b1e4d6
# endif
Packit Service b1e4d6
# if HAVE_WCSNCMP_C
Packit Service b1e4d6
		IFUNC_IMPL_ADD (array, i, wcsncmp, 1, WCSNCMP_C)
Packit Service b1e4d6
# endif
Packit Service b1e4d6
		)
Packit Service b1e4d6
#endif /* HAVE_WCSNCMP_IFUNC  */
Packit Service b1e4d6
Packit Service 3eb67e
#if HAVE_WCSCHR_IFUNC
Packit Service 3eb67e
    IFUNC_IMPL (i, name, wcschr,
Packit Service 3eb67e
# if HAVE_WCSCHR_Z13
Packit Service 3eb67e
		IFUNC_IMPL_ADD (array, i, wcschr,
Packit Service 3eb67e
				dl_hwcap & HWCAP_S390_VX, WCSCHR_Z13)
Packit Service 3eb67e
# endif
Packit Service 3eb67e
# if HAVE_WCSCHR_C
Packit Service 3eb67e
		IFUNC_IMPL_ADD (array, i, wcschr, 1, WCSCHR_C)
Packit Service 3eb67e
# endif
Packit Service 3eb67e
		)
Packit Service 3eb67e
#endif /* HAVE_WCSCHR_IFUNC  */
Packit Service 3eb67e
Packit Service 95c0d3
#if HAVE_WCSCHRNUL_IFUNC
Packit Service 95c0d3
    IFUNC_IMPL (i, name, wcschrnul,
Packit Service 95c0d3
# if HAVE_WCSCHRNUL_Z13
Packit Service 95c0d3
		IFUNC_IMPL_ADD (array, i, wcschrnul,
Packit Service 95c0d3
				dl_hwcap & HWCAP_S390_VX, WCSCHRNUL_Z13)
Packit Service 95c0d3
# endif
Packit Service 95c0d3
# if HAVE_WCSCHRNUL_C
Packit Service 95c0d3
		IFUNC_IMPL_ADD (array, i, wcschrnul, 1, WCSCHRNUL_C)
Packit Service 95c0d3
# endif
Packit Service 95c0d3
		)
Packit Service 95c0d3
#endif /* HAVE_WCSCHRNUL_IFUNC  */
Packit Service 95c0d3
Packit Service c68ba0
#if HAVE_WCSRCHR_IFUNC
Packit Service c68ba0
    IFUNC_IMPL (i, name, wcsrchr,
Packit Service c68ba0
# if HAVE_WCSRCHR_Z13
Packit Service c68ba0
		IFUNC_IMPL_ADD (array, i, wcsrchr,
Packit Service c68ba0
				dl_hwcap & HWCAP_S390_VX, WCSRCHR_Z13)
Packit Service c68ba0
# endif
Packit Service c68ba0
# if HAVE_WCSRCHR_C
Packit Service c68ba0
		IFUNC_IMPL_ADD (array, i, wcsrchr, 1, WCSRCHR_C)
Packit Service c68ba0
# endif
Packit Service c68ba0
		)
Packit Service c68ba0
#endif /* HAVE_WCSRCHR_IFUNC  */
Packit Service c68ba0
Packit Service 43cdbd
#if HAVE_WCSSPN_IFUNC
Packit Service 43cdbd
    IFUNC_IMPL (i, name, wcsspn,
Packit Service 43cdbd
# if HAVE_WCSSPN_Z13
Packit Service 43cdbd
		IFUNC_IMPL_ADD (array, i, wcsspn,
Packit Service 43cdbd
				dl_hwcap & HWCAP_S390_VX, WCSSPN_Z13)
Packit Service 43cdbd
# endif
Packit Service 43cdbd
# if HAVE_WCSSPN_C
Packit Service 43cdbd
		IFUNC_IMPL_ADD (array, i, wcsspn, 1, WCSSPN_C)
Packit Service 43cdbd
# endif
Packit Service 43cdbd
		)
Packit Service 43cdbd
#endif /* HAVE_WCSSPN_IFUNC  */
Packit Service 43cdbd
Packit Service 70290e
#if HAVE_WCSPBRK_IFUNC
Packit Service 70290e
    IFUNC_IMPL (i, name, wcspbrk,
Packit Service 70290e
# if HAVE_WCSPBRK_Z13
Packit Service 70290e
		IFUNC_IMPL_ADD (array, i, wcspbrk,
Packit Service 70290e
				dl_hwcap & HWCAP_S390_VX, WCSPBRK_Z13)
Packit Service 70290e
# endif
Packit Service 70290e
# if HAVE_WCSPBRK_C
Packit Service 70290e
		IFUNC_IMPL_ADD (array, i, wcspbrk, 1, WCSPBRK_C)
Packit Service 70290e
# endif
Packit Service 70290e
		)
Packit Service 70290e
#endif /* HAVE_WCSPBRK_IFUNC  */
Packit Service 70290e
Packit Service 2a648e
#if HAVE_WCSCSPN_IFUNC
Packit Service 2a648e
    IFUNC_IMPL (i, name, wcscspn,
Packit Service 2a648e
# if HAVE_WCSCSPN_Z13
Packit Service 2a648e
		IFUNC_IMPL_ADD (array, i, wcscspn,
Packit Service 2a648e
				dl_hwcap & HWCAP_S390_VX, WCSCSPN_Z13)
Packit Service 2a648e
# endif
Packit Service 2a648e
# if HAVE_WCSCSPN_C
Packit Service 2a648e
		IFUNC_IMPL_ADD (array, i, wcscspn, 1, WCSCSPN_C)
Packit Service 2a648e
# endif
Packit Service 2a648e
		)
Packit Service 2a648e
#endif /* HAVE_WCSCSPN_IFUNC  */
Packit Service 2a648e
Packit Service efeb85
#if HAVE_WMEMCHR_IFUNC
Packit Service efeb85
    IFUNC_IMPL (i, name, wmemchr,
Packit Service efeb85
# if HAVE_WMEMCHR_Z13
Packit Service efeb85
		IFUNC_IMPL_ADD (array, i, wmemchr,
Packit Service efeb85
				dl_hwcap & HWCAP_S390_VX, WMEMCHR_Z13)
Packit Service efeb85
# endif
Packit Service efeb85
# if HAVE_WMEMCHR_C
Packit Service efeb85
		IFUNC_IMPL_ADD (array, i, wmemchr, 1, WMEMCHR_C)
Packit Service efeb85
# endif
Packit Service efeb85
		)
Packit Service efeb85
#endif /* HAVE_WMEMCHR_IFUNC  */
Packit Service efeb85
Packit Service b5f72c
#if HAVE_WMEMSET_IFUNC
Packit Service b5f72c
    IFUNC_IMPL (i, name, wmemset,
Packit Service b5f72c
# if HAVE_WMEMSET_Z13
Packit Service b5f72c
		IFUNC_IMPL_ADD (array, i, wmemset,
Packit Service b5f72c
				dl_hwcap & HWCAP_S390_VX, WMEMSET_Z13)
Packit Service b5f72c
# endif
Packit Service b5f72c
# if HAVE_WMEMSET_C
Packit Service b5f72c
		IFUNC_IMPL_ADD (array, i, wmemset, 1, WMEMSET_C)
Packit Service b5f72c
# endif
Packit Service b5f72c
		)
Packit Service b5f72c
#endif /* HAVE_WMEMSET_IFUNC  */
Packit Service b5f72c
Packit Service 0d903d
#if HAVE_WMEMCMP_IFUNC
Packit Service 0d903d
    IFUNC_IMPL (i, name, wmemcmp,
Packit Service 0d903d
# if HAVE_WMEMCMP_Z13
Packit Service 0d903d
		IFUNC_IMPL_ADD (array, i, wmemcmp,
Packit Service 0d903d
				dl_hwcap & HWCAP_S390_VX, WMEMCMP_Z13)
Packit Service 0d903d
# endif
Packit Service 0d903d
# if HAVE_WMEMCMP_C
Packit Service 0d903d
		IFUNC_IMPL_ADD (array, i, wmemcmp, 1, WMEMCMP_C)
Packit Service 0d903d
# endif
Packit Service 0d903d
		)
Packit Service 0d903d
#endif /* HAVE_WMEMCMP_IFUNC  */
Packit Service 82fcde
Packit Service 82fcde
  return i;
Packit Service 82fcde
}