|
Packit Service |
2842d1 |
/* Multiple versions of memmem.
|
|
Packit Service |
2842d1 |
Copyright (C) 2018 Free Software Foundation, Inc.
|
|
Packit Service |
2842d1 |
This file is part of the GNU C Library.
|
|
Packit Service |
2842d1 |
|
|
Packit Service |
2842d1 |
The GNU C Library is free software; you can redistribute it and/or
|
|
Packit Service |
2842d1 |
modify it under the terms of the GNU Lesser General Public
|
|
Packit Service |
2842d1 |
License as published by the Free Software Foundation; either
|
|
Packit Service |
2842d1 |
version 2.1 of the License, or (at your option) any later version.
|
|
Packit Service |
2842d1 |
|
|
Packit Service |
2842d1 |
The GNU C Library is distributed in the hope that it will be useful,
|
|
Packit Service |
2842d1 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
2842d1 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
2842d1 |
Lesser General Public License for more details.
|
|
Packit Service |
2842d1 |
|
|
Packit Service |
2842d1 |
You should have received a copy of the GNU Lesser General Public
|
|
Packit Service |
2842d1 |
License along with the GNU C Library; if not, see
|
|
Packit Service |
2842d1 |
<http://www.gnu.org/licenses/>. */
|
|
Packit Service |
2842d1 |
|
|
Packit Service |
2842d1 |
#include <ifunc-memmem.h>
|
|
Packit Service |
2842d1 |
|
|
Packit Service |
2842d1 |
#if HAVE_MEMMEM_IFUNC
|
|
Packit Service |
2842d1 |
# define memmem __redirect_memmem
|
|
Packit Service |
2842d1 |
# define __memmem __redirect___memmem
|
|
Packit Service |
2842d1 |
# include <string.h>
|
|
Packit Service |
2842d1 |
# include <ifunc-resolve.h>
|
|
Packit Service |
2842d1 |
# undef memmem
|
|
Packit Service |
2842d1 |
# undef __memmem
|
|
Packit Service |
2842d1 |
|
|
Packit Service |
2842d1 |
# if HAVE_MEMMEM_C
|
|
Packit Service |
2842d1 |
extern __typeof (__redirect_memmem) MEMMEM_C attribute_hidden;
|
|
Packit Service |
2842d1 |
# endif
|
|
Packit Service |
2842d1 |
|
|
Packit Service |
2842d1 |
# if HAVE_MEMMEM_Z13
|
|
Packit Service |
2842d1 |
extern __typeof (__redirect_memmem) MEMMEM_Z13 attribute_hidden;
|
|
Packit Service |
2842d1 |
# endif
|
|
Packit Service |
2842d1 |
|
|
Packit Service |
2842d1 |
s390_libc_ifunc_expr (__redirect_memmem, __memmem,
|
|
Packit Service |
2842d1 |
(HAVE_MEMMEM_Z13 && (hwcap & HWCAP_S390_VX))
|
|
Packit Service |
2842d1 |
? MEMMEM_Z13
|
|
Packit Service |
2842d1 |
: MEMMEM_DEFAULT
|
|
Packit Service |
2842d1 |
)
|
|
Packit Service |
2842d1 |
weak_alias (__memmem, memmem)
|
|
Packit Service |
2842d1 |
#endif
|