Blame sysdeps/s390/ifunc-wcspbrk.h

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