Blame sysdeps/s390/ifunc-strcspn.h

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