Blame sysdeps/s390/ifunc-strncpy.h

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