Blame sysdeps/s390/ifunc-strrchr.h

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