Blame sysdeps/s390/ifunc-strpbrk.h

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