Blame sysdeps/s390/ifunc-memchr.h

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