Blame sysdeps/s390/ifunc-strnlen.h

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