Blame sysdeps/s390/ifunc-memcpy.h

Packit Service f94323
/* memcpy variant information on S/390 version.
Packit Service f94323
   Copyright (C) 2018 Free Software Foundation, Inc.
Packit Service f94323
   This file is part of the GNU C Library.
Packit Service f94323
Packit Service f94323
   The GNU C Library is free software; you can redistribute it and/or
Packit Service f94323
   modify it under the terms of the GNU Lesser General Public
Packit Service f94323
   License as published by the Free Software Foundation; either
Packit Service f94323
   version 2.1 of the License, or (at your option) any later version.
Packit Service f94323
Packit Service f94323
   The GNU C Library is distributed in the hope that it will be useful,
Packit Service f94323
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service f94323
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service f94323
   Lesser General Public License for more details.
Packit Service f94323
Packit Service f94323
   You should have received a copy of the GNU Lesser General Public
Packit Service f94323
   License along with the GNU C Library; if not, see
Packit Service f94323
   <http://www.gnu.org/licenses/>.  */
Packit Service f94323
Packit Service f94323
#if defined SHARED && defined USE_MULTIARCH && IS_IN (libc)	\
Packit Service f94323
  && ! defined HAVE_S390_MIN_Z196_ZARCH_ASM_SUPPORT
Packit Service f94323
# define HAVE_MEMCPY_IFUNC	1
Packit Service f94323
#else
Packit Service f94323
# define HAVE_MEMCPY_IFUNC	0
Packit Service f94323
#endif
Packit Service f94323
Packit Service f94323
#if defined HAVE_S390_MIN_Z196_ZARCH_ASM_SUPPORT
Packit Service f94323
# define MEMCPY_DEFAULT		MEMCPY_Z196
Packit Service f94323
# define MEMPCPY_DEFAULT	MEMPCPY_Z196
Packit Service f94323
# define HAVE_MEMCPY_Z900_G5	0
Packit Service f94323
# define HAVE_MEMCPY_Z10	0
Packit Service f94323
# define HAVE_MEMCPY_Z196	1
Packit Service f94323
#elif defined HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT
Packit Service f94323
# define MEMCPY_DEFAULT		MEMCPY_Z10
Packit Service f94323
# define MEMPCPY_DEFAULT	MEMPCPY_Z10
Packit Service f94323
# define HAVE_MEMCPY_Z900_G5	0
Packit Service f94323
# define HAVE_MEMCPY_Z10	1
Packit Service f94323
# define HAVE_MEMCPY_Z196	HAVE_MEMCPY_IFUNC
Packit Service f94323
#else
Packit Service f94323
# define MEMCPY_DEFAULT		MEMCPY_Z900_G5
Packit Service f94323
# define MEMPCPY_DEFAULT	MEMPCPY_Z900_G5
Packit Service f94323
# define HAVE_MEMCPY_Z900_G5	1
Packit Service f94323
# define HAVE_MEMCPY_Z10	HAVE_MEMCPY_IFUNC
Packit Service f94323
# define HAVE_MEMCPY_Z196	HAVE_MEMCPY_IFUNC
Packit Service f94323
#endif
Packit Service f94323
Packit Service 770b35
#if defined SHARED && defined USE_MULTIARCH && IS_IN (libc)	\
Packit Service ceb924
  && ! defined HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT
Packit Service 770b35
# define HAVE_MEMMOVE_IFUNC	1
Packit Service 770b35
#else
Packit Service 770b35
# define HAVE_MEMMOVE_IFUNC	0
Packit Service 770b35
#endif
Packit Service 770b35
Packit Service 770b35
#ifdef HAVE_S390_VX_ASM_SUPPORT
Packit Service 770b35
# define HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT HAVE_MEMMOVE_IFUNC
Packit Service 770b35
#else
Packit Service 770b35
# define HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT 0
Packit Service 770b35
#endif
Packit Service 770b35
Packit Service ceb924
#ifdef HAVE_S390_ARCH13_ASM_SUPPORT
Packit Service ceb924
# define HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT HAVE_MEMMOVE_IFUNC
Packit Service ceb924
#else
Packit Service ceb924
# define HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT 0
Packit Service ceb924
#endif
Packit Service ceb924
Packit Service ceb924
#if defined HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT
Packit Service ceb924
# define MEMMOVE_DEFAULT	MEMMOVE_ARCH13
Packit Service ceb924
# define HAVE_MEMMOVE_C		0
Packit Service ceb924
# define HAVE_MEMMOVE_Z13	0
Packit Service ceb924
# define HAVE_MEMMOVE_ARCH13	1
Packit Service ceb924
#elif defined HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT
Packit Service 770b35
# define MEMMOVE_DEFAULT	MEMMOVE_Z13
Packit Service 770b35
# define HAVE_MEMMOVE_C		0
Packit Service 770b35
# define HAVE_MEMMOVE_Z13	1
Packit Service ceb924
# define HAVE_MEMMOVE_ARCH13	HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT
Packit Service 770b35
#else
Packit Service 770b35
# define MEMMOVE_DEFAULT	MEMMOVE_C
Packit Service 770b35
# define HAVE_MEMMOVE_C		1
Packit Service 770b35
# define HAVE_MEMMOVE_Z13	HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT
Packit Service ceb924
# define HAVE_MEMMOVE_ARCH13	HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT
Packit Service 770b35
#endif
Packit Service 770b35
Packit Service f94323
#if HAVE_MEMCPY_Z900_G5
Packit Service f94323
# define MEMCPY_Z900_G5		__memcpy_default
Packit Service f94323
# define MEMPCPY_Z900_G5	__mempcpy_default
Packit Service f94323
#else
Packit Service f94323
# define MEMCPY_Z900_G5		NULL
Packit Service f94323
# define MEMPCPY_Z900_G5	NULL
Packit Service f94323
#endif
Packit Service f94323
Packit Service f94323
#if HAVE_MEMCPY_Z10
Packit Service f94323
# define MEMCPY_Z10		__memcpy_z10
Packit Service f94323
# define MEMPCPY_Z10		__mempcpy_z10
Packit Service f94323
#else
Packit Service f94323
# define MEMCPY_Z10		NULL
Packit Service f94323
# define MEMPCPY_Z10		NULL
Packit Service f94323
#endif
Packit Service f94323
Packit Service f94323
#if HAVE_MEMCPY_Z196
Packit Service f94323
# define MEMCPY_Z196		__memcpy_z196
Packit Service f94323
# define MEMPCPY_Z196		__mempcpy_z196
Packit Service f94323
#else
Packit Service f94323
# define MEMCPY_Z196		NULL
Packit Service f94323
# define MEMPCPY_Z196		NULL
Packit Service f94323
#endif
Packit Service 770b35
Packit Service 770b35
#if HAVE_MEMMOVE_C
Packit Service 770b35
# define MEMMOVE_C		__memmove_c
Packit Service 770b35
#else
Packit Service 770b35
# define MEMMOVE_C		NULL
Packit Service 770b35
#endif
Packit Service 770b35
Packit Service 770b35
#if HAVE_MEMMOVE_Z13
Packit Service 770b35
# define MEMMOVE_Z13		__memmove_z13
Packit Service 770b35
#else
Packit Service 770b35
# define MEMMOVE_Z13		NULL
Packit Service 770b35
#endif
Packit Service ceb924
Packit Service ceb924
#if HAVE_MEMMOVE_ARCH13
Packit Service ceb924
# define MEMMOVE_ARCH13		__memmove_arch13
Packit Service ceb924
#else
Packit Service ceb924
# define MEMMOVE_ARCH13		NULL
Packit Service ceb924
#endif