Blame sysdeps/s390/ifunc-wcsnlen.h

Packit Bot 1b5642
/* wcsnlen variant information on S/390 version.
Packit Bot 1b5642
   Copyright (C) 2018 Free Software Foundation, Inc.
Packit Bot 1b5642
   This file is part of the GNU C Library.
Packit Bot 1b5642
Packit Bot 1b5642
   The GNU C Library is free software; you can redistribute it and/or
Packit Bot 1b5642
   modify it under the terms of the GNU Lesser General Public
Packit Bot 1b5642
   License as published by the Free Software Foundation; either
Packit Bot 1b5642
   version 2.1 of the License, or (at your option) any later version.
Packit Bot 1b5642
Packit Bot 1b5642
   The GNU C Library is distributed in the hope that it will be useful,
Packit Bot 1b5642
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Bot 1b5642
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Bot 1b5642
   Lesser General Public License for more details.
Packit Bot 1b5642
Packit Bot 1b5642
   You should have received a copy of the GNU Lesser General Public
Packit Bot 1b5642
   License along with the GNU C Library; if not, see
Packit Bot 1b5642
   <http://www.gnu.org/licenses/>.  */
Packit Bot 1b5642
Packit Bot 1b5642
#if defined USE_MULTIARCH && IS_IN (libc)		\
Packit Bot 1b5642
  && ! defined HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT
Packit Bot 1b5642
# define HAVE_WCSNLEN_IFUNC	1
Packit Bot 1b5642
#else
Packit Bot 1b5642
# define HAVE_WCSNLEN_IFUNC	0
Packit Bot 1b5642
#endif
Packit Bot 1b5642
Packit Bot 1b5642
#ifdef HAVE_S390_VX_ASM_SUPPORT
Packit Bot 1b5642
# define HAVE_WCSNLEN_IFUNC_AND_VX_SUPPORT HAVE_WCSNLEN_IFUNC
Packit Bot 1b5642
#else
Packit Bot 1b5642
# define HAVE_WCSNLEN_IFUNC_AND_VX_SUPPORT 0
Packit Bot 1b5642
#endif
Packit Bot 1b5642
Packit Bot 1b5642
#if defined HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT
Packit Bot 1b5642
# define WCSNLEN_DEFAULT	WCSNLEN_Z13
Packit Bot 1b5642
/* The z13 ifunc variant is using the common code variant as fallback!  */
Packit Bot 1b5642
# define HAVE_WCSNLEN_C		1
Packit Bot 1b5642
# define HAVE_WCSNLEN_Z13	1
Packit Bot 1b5642
#else
Packit Bot 1b5642
# define WCSNLEN_DEFAULT	WCSNLEN_C
Packit Bot 1b5642
# define HAVE_WCSNLEN_C		1
Packit Bot 1b5642
# define HAVE_WCSNLEN_Z13	HAVE_WCSNLEN_IFUNC_AND_VX_SUPPORT
Packit Bot 1b5642
#endif
Packit Bot 1b5642
Packit Bot 1b5642
#if HAVE_WCSNLEN_C
Packit Bot 1b5642
# define WCSNLEN_C		__wcsnlen_c
Packit Bot 1b5642
#else
Packit Bot 1b5642
# define WCSNLEN_C		NULL
Packit Bot 1b5642
#endif
Packit Bot 1b5642
Packit Bot 1b5642
#if HAVE_WCSNLEN_Z13
Packit Bot 1b5642
# define WCSNLEN_Z13		__wcsnlen_vx
Packit Bot 1b5642
#else
Packit Bot 1b5642
# define WCSNLEN_Z13		NULL
Packit Bot 1b5642
#endif