Blame sysdeps/s390/ifunc-memcmp.h

Packit Bot 114c31
/* memcmp variant information on S/390 version.
Packit Bot 114c31
   Copyright (C) 2018 Free Software Foundation, Inc.
Packit Bot 114c31
   This file is part of the GNU C Library.
Packit Bot 114c31
Packit Bot 114c31
   The GNU C Library is free software; you can redistribute it and/or
Packit Bot 114c31
   modify it under the terms of the GNU Lesser General Public
Packit Bot 114c31
   License as published by the Free Software Foundation; either
Packit Bot 114c31
   version 2.1 of the License, or (at your option) any later version.
Packit Bot 114c31
Packit Bot 114c31
   The GNU C Library is distributed in the hope that it will be useful,
Packit Bot 114c31
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Bot 114c31
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Bot 114c31
   Lesser General Public License for more details.
Packit Bot 114c31
Packit Bot 114c31
   You should have received a copy of the GNU Lesser General Public
Packit Bot 114c31
   License along with the GNU C Library; if not, see
Packit Bot 114c31
   <http://www.gnu.org/licenses/>.  */
Packit Bot 114c31
Packit Bot 114c31
#if defined USE_MULTIARCH && IS_IN (libc)	\
Packit Bot 114c31
  && ! defined HAVE_S390_MIN_Z196_ZARCH_ASM_SUPPORT
Packit Bot 114c31
# define HAVE_MEMCMP_IFUNC	1
Packit Bot 114c31
#else
Packit Bot 114c31
# define HAVE_MEMCMP_IFUNC	0
Packit Bot 114c31
#endif
Packit Bot 114c31
Packit Bot 114c31
#if defined HAVE_S390_MIN_Z196_ZARCH_ASM_SUPPORT
Packit Bot 114c31
# define MEMCMP_DEFAULT		MEMCMP_Z196
Packit Bot 114c31
# define HAVE_MEMCMP_Z900_G5	0
Packit Bot 114c31
# define HAVE_MEMCMP_Z10	0
Packit Bot 114c31
# define HAVE_MEMCMP_Z196	1
Packit Bot 114c31
#elif defined HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT
Packit Bot 114c31
# define MEMCMP_DEFAULT		MEMCMP_Z10
Packit Bot 114c31
# define HAVE_MEMCMP_Z900_G5	0
Packit Bot 114c31
# define HAVE_MEMCMP_Z10	1
Packit Bot 114c31
# define HAVE_MEMCMP_Z196	HAVE_MEMCMP_IFUNC
Packit Bot 114c31
#else
Packit Bot 114c31
# define MEMCMP_DEFAULT		MEMCMP_Z900_G5
Packit Bot 114c31
# define HAVE_MEMCMP_Z900_G5	1
Packit Bot 114c31
# define HAVE_MEMCMP_Z10	HAVE_MEMCMP_IFUNC
Packit Bot 114c31
# define HAVE_MEMCMP_Z196	HAVE_MEMCMP_IFUNC
Packit Bot 114c31
#endif
Packit Bot 114c31
Packit Bot 114c31
#if HAVE_MEMCMP_Z900_G5
Packit Bot 114c31
# define MEMCMP_Z900_G5		__memcmp_default
Packit Bot 114c31
#else
Packit Bot 114c31
# define MEMCMP_Z900_G5		NULL
Packit Bot 114c31
#endif
Packit Bot 114c31
Packit Bot 114c31
#if HAVE_MEMCMP_Z10
Packit Bot 114c31
# define MEMCMP_Z10		__memcmp_z10
Packit Bot 114c31
#else
Packit Bot 114c31
# define MEMCMP_Z10		NULL
Packit Bot 114c31
#endif
Packit Bot 114c31
Packit Bot 114c31
#if HAVE_MEMCMP_Z196
Packit Bot 114c31
# define MEMCMP_Z196		__memcmp_z196
Packit Bot 114c31
#else
Packit Bot 114c31
# define MEMCMP_Z196		NULL
Packit Bot 114c31
#endif