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