hjl / source-git / glibc

Forked from source-git/glibc 3 years ago
Clone

Blame sysdeps/s390/ifunc-memccpy.h

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