Blame sysdeps/s390/ifunc-wcschr.h

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