Blame sysdeps/s390/multiarch/wmemchr-c.c

Packit Service 1f32a9
/* Default wmemchr implementation for S/390.
Packit Service 1f32a9
   Copyright (C) 2015-2018 Free Software Foundation, Inc.
Packit Service 1f32a9
   This file is part of the GNU C Library.
Packit Service 1f32a9
Packit Service 1f32a9
   The GNU C Library is free software; you can redistribute it and/or
Packit Service 1f32a9
   modify it under the terms of the GNU Lesser General Public
Packit Service 1f32a9
   License as published by the Free Software Foundation; either
Packit Service 1f32a9
   version 2.1 of the License, or (at your option) any later version.
Packit Service 1f32a9
Packit Service 1f32a9
   The GNU C Library is distributed in the hope that it will be useful,
Packit Service 1f32a9
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 1f32a9
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 1f32a9
   Lesser General Public License for more details.
Packit Service 1f32a9
Packit Service 1f32a9
   You should have received a copy of the GNU Lesser General Public
Packit Service 1f32a9
   License along with the GNU C Library; if not, see
Packit Service 1f32a9
   <http://www.gnu.org/licenses/>.  */
Packit Service 1f32a9
Packit Service 1f32a9
#if defined HAVE_S390_VX_ASM_SUPPORT && IS_IN (libc)
Packit Service 1f32a9
# define WMEMCHR  __wmemchr_c
Packit Service 1f32a9
Packit Service 1f32a9
# include <wchar.h>
Packit Service 1f32a9
extern __typeof (wmemchr) __wmemchr_c;
Packit Service 1f32a9
# undef weak_alias
Packit Service 1f32a9
# define weak_alias(name, alias)
Packit Service 1f32a9
# ifdef SHARED
Packit Service 1f32a9
#  undef libc_hidden_def
Packit Service 1f32a9
#  define libc_hidden_def(name)			\
Packit Service 1f32a9
  __hidden_ver1 (__wmemchr_c, __GI___wmemchr, __wmemchr_c);
Packit Service 1f32a9
#  undef libc_hidden_weak
Packit Service 1f32a9
#  define libc_hidden_weak(name)					\
Packit Service 1f32a9
  strong_alias (__wmemchr_c, __wmemchr_c_1);				\
Packit Service 1f32a9
  __hidden_ver1 (__wmemchr_c_1, __GI_wmemchr, __wmemchr_c_1);
Packit Service 1f32a9
# endif /* SHARED */
Packit Service 1f32a9
Packit Service 1f32a9
# include <wcsmbs/wmemchr.c>
Packit Service 1f32a9
#endif /* HAVE_S390_VX_ASM_SUPPORT && IS_IN (libc) */