Blame sysdeps/s390/memmove-c.c

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