|
Packit Service |
4e154b |
/* Fallback C version of memmove.
|
|
Packit Service |
4e154b |
Copyright (C) 2018 Free Software Foundation, Inc.
|
|
Packit Service |
4e154b |
This file is part of the GNU C Library.
|
|
Packit Service |
4e154b |
|
|
Packit Service |
4e154b |
The GNU C Library is free software; you can redistribute it and/or
|
|
Packit Service |
4e154b |
modify it under the terms of the GNU Lesser General Public
|
|
Packit Service |
4e154b |
License as published by the Free Software Foundation; either
|
|
Packit Service |
4e154b |
version 2.1 of the License, or (at your option) any later version.
|
|
Packit Service |
4e154b |
|
|
Packit Service |
4e154b |
The GNU C Library is distributed in the hope that it will be useful,
|
|
Packit Service |
4e154b |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
4e154b |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
4e154b |
Lesser General Public License for more details.
|
|
Packit Service |
4e154b |
|
|
Packit Service |
4e154b |
You should have received a copy of the GNU Lesser General Public
|
|
Packit Service |
4e154b |
License along with the GNU C Library; if not, see
|
|
Packit Service |
4e154b |
<http://www.gnu.org/licenses/>. */
|
|
Packit Service |
4e154b |
|
|
Packit Service |
4e154b |
#include <ifunc-memcpy.h>
|
|
Packit Service |
4e154b |
|
|
Packit Service |
4e154b |
#if HAVE_MEMMOVE_C
|
|
Packit Service |
4e154b |
# if HAVE_MEMMOVE_IFUNC
|
|
Packit Service |
4e154b |
/* If we use ifunc, then the memmove symbol is defined
|
|
Packit Service |
4e154b |
in sysdeps/s390/memmove.c and we use a different name here.
|
|
Packit Service |
4e154b |
Otherwise, we have to define memmove here or in
|
|
Packit Service |
4e154b |
sysdeps/s390/memcpy.S depending on the used default implementation. */
|
|
Packit Service |
4e154b |
# define MEMMOVE MEMMOVE_C
|
|
Packit Service |
4e154b |
# if defined SHARED && IS_IN (libc)
|
|
Packit Service |
4e154b |
/* Define the internal symbol. */
|
|
Packit Service |
4e154b |
# undef libc_hidden_builtin_def
|
|
Packit Service |
4e154b |
# define libc_hidden_builtin_def(name) \
|
|
Packit Service |
4e154b |
__hidden_ver1 (__memmove_c, __GI_memmove, __memmove_c);
|
|
Packit Service |
4e154b |
# endif
|
|
Packit Service |
4e154b |
# endif
|
|
Packit Service |
4e154b |
|
|
Packit Service |
4e154b |
# include <string/memmove.c>
|
|
Packit Service |
4e154b |
#endif
|