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