Blame sysdeps/s390/ifunc-stpncpy.h

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