Blame sysdeps/s390/ifunc-wcschr.h

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