hjl / source-git / glibc

Forked from source-git/glibc 4 years ago
Clone

Blame sysdeps/s390/ifunc-wcpncpy.h

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