Blame sysdeps/s390/strstr.c
|
Packit Bot |
38d9ae |
/* Multiple versions of strstr.
|
|
Packit Bot |
38d9ae |
Copyright (C) 2018 Free Software Foundation, Inc.
|
|
Packit Bot |
38d9ae |
This file is part of the GNU C Library.
|
|
Packit Bot |
38d9ae |
|
|
Packit Bot |
38d9ae |
The GNU C Library is free software; you can redistribute it and/or
|
|
Packit Bot |
38d9ae |
modify it under the terms of the GNU Lesser General Public
|
|
Packit Bot |
38d9ae |
License as published by the Free Software Foundation; either
|
|
Packit Bot |
38d9ae |
version 2.1 of the License, or (at your option) any later version.
|
|
Packit Bot |
38d9ae |
|
|
Packit Bot |
38d9ae |
The GNU C Library is distributed in the hope that it will be useful,
|
|
Packit Bot |
38d9ae |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Bot |
38d9ae |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Bot |
38d9ae |
Lesser General Public License for more details.
|
|
Packit Bot |
38d9ae |
|
|
Packit Bot |
38d9ae |
You should have received a copy of the GNU Lesser General Public
|
|
Packit Bot |
38d9ae |
License along with the GNU C Library; if not, see
|
|
Packit Bot |
38d9ae |
<http://www.gnu.org/licenses/>. */
|
|
Packit Bot |
38d9ae |
|
|
Packit Bot |
38d9ae |
#include <ifunc-strstr.h>
|
|
Packit Bot |
38d9ae |
|
|
Packit Bot |
38d9ae |
#if HAVE_STRSTR_IFUNC
|
|
Packit Bot |
38d9ae |
# define strstr __redirect_strstr
|
|
Packit Bot |
38d9ae |
# include <string.h>
|
|
Packit Bot |
38d9ae |
# include <ifunc-resolve.h>
|
|
Packit Bot |
38d9ae |
# undef strstr
|
|
Packit Bot |
38d9ae |
|
|
Packit Bot |
38d9ae |
# if HAVE_STRSTR_C
|
|
Packit Bot |
38d9ae |
extern __typeof (__redirect_strstr) STRSTR_C attribute_hidden;
|
|
Packit Bot |
38d9ae |
# endif
|
|
Packit Bot |
38d9ae |
|
|
Packit Bot |
38d9ae |
# if HAVE_STRSTR_Z13
|
|
Packit Bot |
38d9ae |
extern __typeof (__redirect_strstr) STRSTR_Z13 attribute_hidden;
|
|
Packit Bot |
38d9ae |
# endif
|
|
Packit Bot |
38d9ae |
|
|
Packit Bot |
38d9ae |
s390_libc_ifunc_expr (__redirect_strstr, strstr,
|
|
Packit Bot |
38d9ae |
(HAVE_STRSTR_Z13 && (hwcap & HWCAP_S390_VX))
|
|
Packit Bot |
38d9ae |
? STRSTR_Z13
|
|
Packit Bot |
38d9ae |
: STRSTR_DEFAULT
|
|
Packit Bot |
38d9ae |
)
|
|
Packit Bot |
38d9ae |
#endif
|