Blame sysdeps/s390/ifunc-stpcpy.h

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