Blame sysdeps/s390/wmemset-c.c

Packit f6175b
/* Default wmemset implementation for S/390.
Packit f6175b
   Copyright (C) 2015-2018 Free Software Foundation, Inc.
Packit f6175b
   This file is part of the GNU C Library.
Packit f6175b
Packit f6175b
   The GNU C Library is free software; you can redistribute it and/or
Packit f6175b
   modify it under the terms of the GNU Lesser General Public
Packit f6175b
   License as published by the Free Software Foundation; either
Packit f6175b
   version 2.1 of the License, or (at your option) any later version.
Packit f6175b
Packit f6175b
   The GNU C Library is distributed in the hope that it will be useful,
Packit f6175b
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit f6175b
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit f6175b
   Lesser General Public License for more details.
Packit f6175b
Packit f6175b
   You should have received a copy of the GNU Lesser General Public
Packit f6175b
   License along with the GNU C Library; if not, see
Packit f6175b
   <http://www.gnu.org/licenses/>.  */
Packit f6175b
Packit f6175b
#include <ifunc-wmemset.h>
Packit f6175b
Packit f6175b
#if HAVE_WMEMSET_C
Packit f6175b
# if HAVE_WMEMSET_IFUNC || HAVE_WMEMSET_Z13
Packit f6175b
#  define WMEMSET WMEMSET_C
Packit f6175b
Packit f6175b
#  undef weak_alias
Packit f6175b
#  define weak_alias(name, alias)
Packit f6175b
Packit f6175b
#  if defined SHARED && IS_IN (libc)
Packit f6175b
#   undef libc_hidden_weak
Packit f6175b
#   define libc_hidden_weak(name)
Packit f6175b
#   undef libc_hidden_def
Packit f6175b
#   if ! defined HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT
Packit f6175b
#    define libc_hidden_def(name)					\
Packit f6175b
  __hidden_ver1 (__wmemset_c, __GI_wmemset, __wmemset_c)  __attribute__((weak)); \
Packit f6175b
  strong_alias (__wmemset_c, __wmemset_c_1);				\
Packit f6175b
  __hidden_ver1 (__wmemset_c_1, __GI___wmemset, __wmemset_c_1);
Packit f6175b
#   else
Packit f6175b
#    define libc_hidden_def(name)
Packit f6175b
#   endif
Packit f6175b
#  endif
Packit f6175b
# endif
Packit f6175b
Packit f6175b
# include <wcsmbs/wmemset.c>
Packit f6175b
#endif