Blame sysdeps/s390/ifunc-wcschrnul.h

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