Blame sysdeps/s390/ifunc-strcmp.h

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