Blame sysdeps/s390/ifunc-stpncpy.h

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