Blame sysdeps/s390/memmove-c.c

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