Blame sysdeps/s390/ifunc-wcsncpy.h

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