Blame sysdeps/s390/ifunc-stpncpy.h

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