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 4a5ccd
#include <ifunc-memset.h>
Packit Service 0e4e72
#include <ifunc-memcmp.h>
Packit Service e4c250
#include <ifunc-memcpy.h>
Packit Service 436691
#include <ifunc-strstr.h>
Packit Service 5b5427
#include <ifunc-memmem.h>
Packit Service 96aee5
#include <ifunc-strlen.h>
Packit Service e6db36
#include <ifunc-strnlen.h>
Packit Service 7b9ad2
#include <ifunc-strcpy.h>
Packit Service 01d794
#include <ifunc-stpcpy.h>
Packit Service cee91b
#include <ifunc-strncpy.h>
Packit Service 3eb05b
#include <ifunc-stpncpy.h>
Packit Service 6ff4ef
#include <ifunc-strcat.h>
Packit Service e75c8f
#include <ifunc-strncat.h>
Packit Service a6ea9a
#include <ifunc-strcmp.h>
Packit Service a09d4d
#include <ifunc-strncmp.h>
Packit Service b20d77
#include <ifunc-strchr.h>
Packit Service fb4b67
#include <ifunc-strchrnul.h>
Packit Service b81c6c
#include <ifunc-strrchr.h>
Packit Service 9e731b
#include <ifunc-strspn.h>
Packit Service 727de4
#include <ifunc-strpbrk.h>
Packit Service bad155
#include <ifunc-strcspn.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 4a5ccd
#if HAVE_MEMSET_IFUNC
Packit 6c4009
  IFUNC_IMPL (i, name, memset,
Packit Service 4a5ccd
# if HAVE_MEMSET_Z196
Packit 6c4009
	      IFUNC_IMPL_ADD (array, i, memset,
Packit Service 4a5ccd
			      S390_IS_Z196 (stfle_bits), MEMSET_Z196)
Packit Service 4a5ccd
# endif
Packit Service 4a5ccd
# if HAVE_MEMSET_Z10
Packit 6c4009
	      IFUNC_IMPL_ADD (array, i, memset,
Packit Service 4a5ccd
			      S390_IS_Z10 (stfle_bits), MEMSET_Z10)
Packit Service 4a5ccd
# endif
Packit Service 4a5ccd
# if HAVE_MEMSET_Z900_G5
Packit Service 4a5ccd
	      IFUNC_IMPL_ADD (array, i, memset, 1, MEMSET_Z900_G5)
Packit Service 4a5ccd
# endif
Packit Service 4a5ccd
	      )
Packit Service d86de2
Packit Service d86de2
  /* Note: bzero is implemented in memset.  */
Packit Service d86de2
  IFUNC_IMPL (i, name, bzero,
Packit Service d86de2
# if HAVE_MEMSET_Z196
Packit Service d86de2
	      IFUNC_IMPL_ADD (array, i, bzero,
Packit Service d86de2
			      S390_IS_Z196 (stfle_bits), BZERO_Z196)
Packit Service d86de2
# endif
Packit Service d86de2
# if HAVE_MEMSET_Z10
Packit Service d86de2
	      IFUNC_IMPL_ADD (array, i, bzero,
Packit Service d86de2
			      S390_IS_Z10 (stfle_bits), BZERO_Z10)
Packit Service d86de2
# endif
Packit Service d86de2
# if HAVE_MEMSET_Z900_G5
Packit Service d86de2
	      IFUNC_IMPL_ADD (array, i, bzero, 1, BZERO_Z900_G5)
Packit Service d86de2
# endif
Packit Service d86de2
	      )
Packit Service 4a5ccd
#endif /* HAVE_MEMSET_IFUNC */
Packit Service 562438
Packit Service 0e4e72
#if HAVE_MEMCMP_IFUNC
Packit 6c4009
  IFUNC_IMPL (i, name, memcmp,
Packit Service 0e4e72
# if HAVE_MEMCMP_Z196
Packit 6c4009
	      IFUNC_IMPL_ADD (array, i, memcmp,
Packit Service 0e4e72
			      S390_IS_Z196 (stfle_bits), MEMCMP_Z196)
Packit Service 0e4e72
# endif
Packit Service 0e4e72
# if HAVE_MEMCMP_Z10
Packit 6c4009
	      IFUNC_IMPL_ADD (array, i, memcmp,
Packit Service 0e4e72
			      S390_IS_Z10 (stfle_bits), MEMCMP_Z10)
Packit Service 0e4e72
# endif
Packit Service 0e4e72
# if HAVE_MEMCMP_Z900_G5
Packit Service 0e4e72
	      IFUNC_IMPL_ADD (array, i, memcmp, 1, MEMCMP_Z900_G5)
Packit Service 0e4e72
# endif
Packit Service 0e4e72
	      )
Packit Service 0e4e72
#endif /* HAVE_MEMCMP_IFUNC */
Packit Service 562438
Packit Service e4c250
#if HAVE_MEMCPY_IFUNC
Packit 6c4009
  IFUNC_IMPL (i, name, memcpy,
Packit Service e4c250
# if HAVE_MEMCPY_Z196
Packit 6c4009
	      IFUNC_IMPL_ADD (array, i, memcpy,
Packit Service e4c250
			      S390_IS_Z196 (stfle_bits), MEMCPY_Z196)
Packit Service e4c250
# endif
Packit Service e4c250
# if HAVE_MEMCPY_Z10
Packit 6c4009
	      IFUNC_IMPL_ADD (array, i, memcpy,
Packit Service e4c250
			      S390_IS_Z10 (stfle_bits), MEMCPY_Z10)
Packit Service e4c250
# endif
Packit Service e4c250
# if HAVE_MEMCPY_Z900_G5
Packit Service e4c250
	      IFUNC_IMPL_ADD (array, i, memcpy, 1, MEMCPY_Z900_G5)
Packit Service e4c250
# endif
Packit Service e4c250
	      )
Packit 6c4009
Packit 6c4009
  IFUNC_IMPL (i, name, mempcpy,
Packit Service e4c250
# if HAVE_MEMCPY_Z196
Packit 6c4009
	      IFUNC_IMPL_ADD (array, i, mempcpy,
Packit Service e4c250
			      S390_IS_Z196 (stfle_bits), MEMPCPY_Z196)
Packit Service e4c250
# endif
Packit Service e4c250
# if HAVE_MEMCPY_Z10
Packit 6c4009
	      IFUNC_IMPL_ADD (array, i, mempcpy,
Packit Service e4c250
			      S390_IS_Z10 (stfle_bits), MEMPCPY_Z10)
Packit Service e4c250
# endif
Packit Service e4c250
# if HAVE_MEMCPY_Z900_G5
Packit Service e4c250
	      IFUNC_IMPL_ADD (array, i, mempcpy, 1, MEMPCPY_Z900_G5)
Packit Service e4c250
# endif
Packit Service e4c250
	      )
Packit Service e4c250
#endif /* HAVE_MEMCPY_IFUNC  */
Packit Service 562438
Packit Service 4e154b
#if HAVE_MEMMOVE_IFUNC
Packit Service 4e154b
    IFUNC_IMPL (i, name, memmove,
Packit Service 4e154b
# if HAVE_MEMMOVE_Z13
Packit Service 4e154b
		IFUNC_IMPL_ADD (array, i, memmove,
Packit Service 4e154b
				dl_hwcap & HWCAP_S390_VX, MEMMOVE_Z13)
Packit Service 4e154b
# endif
Packit Service 4e154b
# if HAVE_MEMMOVE_C
Packit Service 4e154b
		IFUNC_IMPL_ADD (array, i, memmove, 1, MEMMOVE_C)
Packit Service 4e154b
# endif
Packit Service 4e154b
		)
Packit Service 4e154b
#endif /* HAVE_MEMMOVE_IFUNC  */
Packit Service 4e154b
Packit Service 436691
#if HAVE_STRSTR_IFUNC
Packit Service 436691
    IFUNC_IMPL (i, name, strstr,
Packit Service 436691
# if HAVE_STRSTR_Z13
Packit Service 436691
		IFUNC_IMPL_ADD (array, i, strstr,
Packit Service 436691
				dl_hwcap & HWCAP_S390_VX, STRSTR_Z13)
Packit Service 436691
# endif
Packit Service 436691
# if HAVE_STRSTR_C
Packit Service 436691
		IFUNC_IMPL_ADD (array, i, strstr, 1, STRSTR_C)
Packit Service 436691
# endif
Packit Service 436691
		)
Packit Service 436691
#endif /* HAVE_STRSTR_IFUNC  */
Packit Service 436691
Packit Service 5b5427
#if HAVE_MEMMEM_IFUNC
Packit Service 5b5427
    IFUNC_IMPL (i, name, memmem,
Packit Service 5b5427
# if HAVE_MEMMEM_Z13
Packit Service 5b5427
		IFUNC_IMPL_ADD (array, i, memmem,
Packit Service 5b5427
				dl_hwcap & HWCAP_S390_VX, MEMMEM_Z13)
Packit Service 5b5427
# endif
Packit Service 5b5427
# if HAVE_MEMMEM_C
Packit Service 5b5427
		IFUNC_IMPL_ADD (array, i, memmem, 1, MEMMEM_C)
Packit Service 5b5427
# endif
Packit Service 5b5427
		)
Packit Service 5b5427
#endif /* HAVE_MEMMEM_IFUNC  */
Packit Service 5b5427
Packit Service 96aee5
#if HAVE_STRLEN_IFUNC
Packit Service 96aee5
    IFUNC_IMPL (i, name, strlen,
Packit Service 96aee5
# if HAVE_STRLEN_Z13
Packit Service 96aee5
		IFUNC_IMPL_ADD (array, i, strlen,
Packit Service 96aee5
				dl_hwcap & HWCAP_S390_VX, STRLEN_Z13)
Packit Service 96aee5
# endif
Packit Service 96aee5
# if HAVE_STRLEN_C
Packit Service 96aee5
		IFUNC_IMPL_ADD (array, i, strlen, 1, STRLEN_C)
Packit Service 96aee5
# endif
Packit Service 96aee5
		)
Packit Service 96aee5
#endif /* HAVE_STRLEN_IFUNC  */
Packit Service 96aee5
Packit Service e6db36
#if HAVE_STRNLEN_IFUNC
Packit Service e6db36
    IFUNC_IMPL (i, name, strnlen,
Packit Service e6db36
# if HAVE_STRNLEN_Z13
Packit Service e6db36
		IFUNC_IMPL_ADD (array, i, strnlen,
Packit Service e6db36
				dl_hwcap & HWCAP_S390_VX, STRNLEN_Z13)
Packit Service e6db36
# endif
Packit Service e6db36
# if HAVE_STRNLEN_C
Packit Service e6db36
		IFUNC_IMPL_ADD (array, i, strnlen, 1, STRNLEN_C)
Packit Service e6db36
# endif
Packit Service e6db36
		)
Packit Service e6db36
#endif /* HAVE_STRNLEN_IFUNC  */
Packit Service e6db36
Packit Service 7b9ad2
#if HAVE_STRCPY_IFUNC
Packit Service 7b9ad2
    IFUNC_IMPL (i, name, strcpy,
Packit Service 7b9ad2
# if HAVE_STRCPY_Z13
Packit Service 7b9ad2
		IFUNC_IMPL_ADD (array, i, strcpy,
Packit Service 7b9ad2
				dl_hwcap & HWCAP_S390_VX, STRCPY_Z13)
Packit Service 7b9ad2
# endif
Packit Service 7b9ad2
# if HAVE_STRCPY_Z900_G5
Packit Service 7b9ad2
		IFUNC_IMPL_ADD (array, i, strcpy, 1, STRCPY_Z900_G5)
Packit Service 7b9ad2
# endif
Packit Service 7b9ad2
		)
Packit Service 7b9ad2
#endif /* HAVE_STRCPY_IFUNC  */
Packit Service 7b9ad2
Packit Service 01d794
#if HAVE_STPCPY_IFUNC
Packit Service 01d794
    IFUNC_IMPL (i, name, stpcpy,
Packit Service 01d794
# if HAVE_STPCPY_Z13
Packit Service 01d794
		IFUNC_IMPL_ADD (array, i, stpcpy,
Packit Service 01d794
				dl_hwcap & HWCAP_S390_VX, STPCPY_Z13)
Packit Service 01d794
# endif
Packit Service 01d794
# if HAVE_STPCPY_C
Packit Service 01d794
		IFUNC_IMPL_ADD (array, i, stpcpy, 1, STPCPY_C)
Packit Service 01d794
# endif
Packit Service 01d794
		)
Packit Service 01d794
#endif /* HAVE_STPCPY_IFUNC  */
Packit Service 01d794
Packit Service cee91b
#if HAVE_STRNCPY_IFUNC
Packit Service cee91b
    IFUNC_IMPL (i, name, strncpy,
Packit Service cee91b
# if HAVE_STRNCPY_Z13
Packit Service cee91b
		IFUNC_IMPL_ADD (array, i, strncpy,
Packit Service cee91b
				dl_hwcap & HWCAP_S390_VX, STRNCPY_Z13)
Packit Service cee91b
# endif
Packit Service cee91b
# if HAVE_STRNCPY_Z900_G5
Packit Service cee91b
		IFUNC_IMPL_ADD (array, i, strncpy, 1, STRNCPY_Z900_G5)
Packit Service cee91b
# endif
Packit Service cee91b
		)
Packit Service cee91b
#endif /* HAVE_STRNCPY_IFUNC  */
Packit Service cee91b
Packit Service 3eb05b
#if HAVE_STPNCPY_IFUNC
Packit Service 3eb05b
    IFUNC_IMPL (i, name, stpncpy,
Packit Service 3eb05b
# if HAVE_STPNCPY_Z13
Packit Service 3eb05b
		IFUNC_IMPL_ADD (array, i, stpncpy,
Packit Service 3eb05b
				dl_hwcap & HWCAP_S390_VX, STPNCPY_Z13)
Packit Service 3eb05b
# endif
Packit Service 3eb05b
# if HAVE_STPNCPY_C
Packit Service 3eb05b
		IFUNC_IMPL_ADD (array, i, stpncpy, 1, STPNCPY_C)
Packit Service 3eb05b
# endif
Packit Service 3eb05b
		)
Packit Service 3eb05b
#endif /* HAVE_STPNCPY_IFUNC  */
Packit Service 3eb05b
Packit Service 6ff4ef
#if HAVE_STRCAT_IFUNC
Packit Service 6ff4ef
    IFUNC_IMPL (i, name, strcat,
Packit Service 6ff4ef
# if HAVE_STRCAT_Z13
Packit Service 6ff4ef
		IFUNC_IMPL_ADD (array, i, strcat,
Packit Service 6ff4ef
				dl_hwcap & HWCAP_S390_VX, STRCAT_Z13)
Packit Service 6ff4ef
# endif
Packit Service 6ff4ef
# if HAVE_STRCAT_C
Packit Service 6ff4ef
		IFUNC_IMPL_ADD (array, i, strcat, 1, STRCAT_C)
Packit Service 6ff4ef
# endif
Packit Service 6ff4ef
		)
Packit Service 6ff4ef
#endif /* HAVE_STRCAT_IFUNC  */
Packit Service cee91b
Packit Service e75c8f
#if HAVE_STRNCAT_IFUNC
Packit Service e75c8f
    IFUNC_IMPL (i, name, strncat,
Packit Service e75c8f
# if HAVE_STRNCAT_Z13
Packit Service e75c8f
		IFUNC_IMPL_ADD (array, i, strncat,
Packit Service e75c8f
				dl_hwcap & HWCAP_S390_VX, STRNCAT_Z13)
Packit Service e75c8f
# endif
Packit Service e75c8f
# if HAVE_STRNCAT_C
Packit Service e75c8f
		IFUNC_IMPL_ADD (array, i, strncat, 1, STRNCAT_C)
Packit Service e75c8f
# endif
Packit Service e75c8f
		)
Packit Service e75c8f
#endif /* HAVE_STRNCAT_IFUNC  */
Packit Service e75c8f
Packit Service a6ea9a
#if HAVE_STRCMP_IFUNC
Packit Service a6ea9a
    IFUNC_IMPL (i, name, strcmp,
Packit Service a6ea9a
# if HAVE_STRCMP_Z13
Packit Service a6ea9a
		IFUNC_IMPL_ADD (array, i, strcmp,
Packit Service a6ea9a
				dl_hwcap & HWCAP_S390_VX, STRCMP_Z13)
Packit Service a6ea9a
# endif
Packit Service a6ea9a
# if HAVE_STRCMP_Z900_G5
Packit Service a6ea9a
		IFUNC_IMPL_ADD (array, i, strcmp, 1, STRCMP_Z900_G5)
Packit Service a6ea9a
# endif
Packit Service a6ea9a
		)
Packit Service a6ea9a
#endif /* HAVE_STRCMP_IFUNC  */
Packit Service a6ea9a
Packit Service a09d4d
#if HAVE_STRNCMP_IFUNC
Packit Service a09d4d
    IFUNC_IMPL (i, name, strncmp,
Packit Service a09d4d
# if HAVE_STRNCMP_Z13
Packit Service a09d4d
		IFUNC_IMPL_ADD (array, i, strncmp,
Packit Service a09d4d
				dl_hwcap & HWCAP_S390_VX, STRNCMP_Z13)
Packit Service a09d4d
# endif
Packit Service a09d4d
# if HAVE_STRNCMP_C
Packit Service a09d4d
		IFUNC_IMPL_ADD (array, i, strncmp, 1, STRNCMP_C)
Packit Service a09d4d
# endif
Packit Service a09d4d
		)
Packit Service a09d4d
#endif /* HAVE_STRNCMP_IFUNC  */
Packit Service a09d4d
Packit Service b20d77
#if HAVE_STRCHR_IFUNC
Packit Service b20d77
    IFUNC_IMPL (i, name, strchr,
Packit Service b20d77
# if HAVE_STRCHR_Z13
Packit Service b20d77
		IFUNC_IMPL_ADD (array, i, strchr,
Packit Service b20d77
				dl_hwcap & HWCAP_S390_VX, STRCHR_Z13)
Packit Service b20d77
# endif
Packit Service b20d77
# if HAVE_STRCHR_C
Packit Service b20d77
		IFUNC_IMPL_ADD (array, i, strchr, 1, STRCHR_C)
Packit Service b20d77
# endif
Packit Service b20d77
		)
Packit Service b20d77
#endif /* HAVE_STRCHR_IFUNC  */
Packit Service b20d77
Packit Service fb4b67
#if HAVE_STRCHRNUL_IFUNC
Packit Service fb4b67
    IFUNC_IMPL (i, name, strchrnul,
Packit Service fb4b67
# if HAVE_STRCHRNUL_Z13
Packit Service fb4b67
		IFUNC_IMPL_ADD (array, i, strchrnul,
Packit Service fb4b67
				dl_hwcap & HWCAP_S390_VX, STRCHRNUL_Z13)
Packit Service fb4b67
# endif
Packit Service fb4b67
# if HAVE_STRCHRNUL_C
Packit Service fb4b67
		IFUNC_IMPL_ADD (array, i, strchrnul, 1, STRCHRNUL_C)
Packit Service fb4b67
# endif
Packit Service fb4b67
		)
Packit Service fb4b67
#endif /* HAVE_STRCHRNUL_IFUNC  */
Packit Service fb4b67
Packit Service b81c6c
#if HAVE_STRRCHR_IFUNC
Packit Service b81c6c
    IFUNC_IMPL (i, name, strrchr,
Packit Service b81c6c
# if HAVE_STRRCHR_Z13
Packit Service b81c6c
		IFUNC_IMPL_ADD (array, i, strrchr,
Packit Service b81c6c
				dl_hwcap & HWCAP_S390_VX, STRRCHR_Z13)
Packit Service b81c6c
# endif
Packit Service b81c6c
# if HAVE_STRRCHR_C
Packit Service b81c6c
		IFUNC_IMPL_ADD (array, i, strrchr, 1, STRRCHR_C)
Packit Service b81c6c
# endif
Packit Service b81c6c
		)
Packit Service b81c6c
#endif /* HAVE_STRRCHR_IFUNC  */
Packit Service b81c6c
Packit Service 9e731b
#if HAVE_STRSPN_IFUNC
Packit Service 9e731b
    IFUNC_IMPL (i, name, strspn,
Packit Service 9e731b
# if HAVE_STRSPN_Z13
Packit Service 9e731b
		IFUNC_IMPL_ADD (array, i, strspn,
Packit Service 9e731b
				dl_hwcap & HWCAP_S390_VX, STRSPN_Z13)
Packit Service 9e731b
# endif
Packit Service 9e731b
# if HAVE_STRSPN_C
Packit Service 9e731b
		IFUNC_IMPL_ADD (array, i, strspn, 1, STRSPN_C)
Packit Service 9e731b
# endif
Packit Service 9e731b
		)
Packit Service 9e731b
#endif /* HAVE_STRSPN_IFUNC  */
Packit Service 9e731b
Packit Service 727de4
#if HAVE_STRPBRK_IFUNC
Packit Service 727de4
    IFUNC_IMPL (i, name, strpbrk,
Packit Service 727de4
# if HAVE_STRPBRK_Z13
Packit Service 727de4
		IFUNC_IMPL_ADD (array, i, strpbrk,
Packit Service 727de4
				dl_hwcap & HWCAP_S390_VX, STRPBRK_Z13)
Packit Service 727de4
# endif
Packit Service 727de4
# if HAVE_STRPBRK_C
Packit Service 727de4
		IFUNC_IMPL_ADD (array, i, strpbrk, 1, STRPBRK_C)
Packit Service 727de4
# endif
Packit Service 727de4
		)
Packit Service 727de4
#endif /* HAVE_STRPBRK_IFUNC  */
Packit Service 727de4
Packit Service bad155
#if HAVE_STRCSPN_IFUNC
Packit Service bad155
    IFUNC_IMPL (i, name, strcspn,
Packit Service bad155
# if HAVE_STRCSPN_Z13
Packit Service bad155
		IFUNC_IMPL_ADD (array, i, strcspn,
Packit Service bad155
				dl_hwcap & HWCAP_S390_VX, STRCSPN_Z13)
Packit Service bad155
# endif
Packit Service bad155
# if HAVE_STRCSPN_C
Packit Service bad155
		IFUNC_IMPL_ADD (array, i, strcspn, 1, STRCSPN_C)
Packit Service bad155
# endif
Packit Service bad155
		)
Packit Service bad155
#endif /* HAVE_STRCSPN_IFUNC  */
Packit Service bad155
Packit Service 562438
#ifdef HAVE_S390_VX_ASM_SUPPORT
Packit Service 562438
Packit Service 562438
# define IFUNC_VX_IMPL(FUNC)						\
Packit Service 562438
  IFUNC_IMPL (i, name, FUNC,						\
Packit Service 562438
	      IFUNC_IMPL_ADD (array, i, FUNC, dl_hwcap & HWCAP_S390_VX, \
Packit Service 562438
			      __##FUNC##_vx)				\
Packit Service 562438
	      IFUNC_IMPL_ADD (array, i, FUNC, 1, __##FUNC##_c))
Packit Service 562438
Packit Service 562438
  IFUNC_VX_IMPL (wcslen);
Packit Service 562438
Packit Service 562438
  IFUNC_VX_IMPL (wcsnlen);
Packit Service 562438
Packit Service 562438
  IFUNC_VX_IMPL (wcscpy);
Packit Service 562438
Packit Service 562438
  IFUNC_VX_IMPL (wcpcpy);
Packit Service 562438
Packit Service 562438
  IFUNC_VX_IMPL (wcsncpy);
Packit Service 562438
Packit Service 562438
  IFUNC_VX_IMPL (wcpncpy);
Packit Service 562438
Packit Service 562438
  IFUNC_VX_IMPL (wcscat);
Packit Service 562438
Packit Service 562438
  IFUNC_VX_IMPL (wcsncat);
Packit Service 562438
Packit Service 562438
  IFUNC_VX_IMPL (wcscmp);
Packit Service 562438
Packit Service 562438
  IFUNC_VX_IMPL (wcsncmp);
Packit Service 562438
Packit Service 562438
  IFUNC_VX_IMPL (wcschr);
Packit Service 562438
Packit Service 562438
  IFUNC_VX_IMPL (wcschrnul);
Packit Service 562438
Packit Service 562438
  IFUNC_VX_IMPL (wcsrchr);
Packit Service 562438
Packit Service 562438
  IFUNC_VX_IMPL (wcsspn);
Packit Service 562438
Packit Service 562438
  IFUNC_VX_IMPL (wcspbrk);
Packit Service 562438
Packit Service 562438
  IFUNC_VX_IMPL (wcscspn);
Packit Service 562438
Packit Service 562438
  IFUNC_VX_IMPL (memchr);
Packit Service 562438
  IFUNC_VX_IMPL (wmemchr);
Packit Service 562438
  IFUNC_VX_IMPL (rawmemchr);
Packit Service 562438
Packit Service 562438
  IFUNC_VX_IMPL (memccpy);
Packit Service 562438
Packit Service 562438
  IFUNC_VX_IMPL (wmemset);
Packit Service 562438
Packit Service 562438
  IFUNC_VX_IMPL (wmemcmp);
Packit Service 562438
Packit Service 562438
  IFUNC_VX_IMPL (memrchr);
Packit Service 562438
Packit Service 562438
#endif /* HAVE_S390_VX_ASM_SUPPORT */
Packit 6c4009
Packit 6c4009
  return i;
Packit 6c4009
}