Blame sysdeps/s390/ifunc-memchr.h

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