hjl / source-git / glibc

Forked from source-git/glibc 3 years ago
Clone

Blame sysdeps/s390/ifunc-strcpy.h

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