Blame sysdeps/s390/ifunc-strrchr.h

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