Blame sysdeps/s390/ifunc-wcsncpy.h

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