Blame sysdeps/s390/ifunc-strstr.h

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