Blame sysdeps/s390/memmem-vx.c

Packit Service 1af19e
/* Default memmem implementation with vector string functions for S/390.
Packit Service 1af19e
   Copyright (C) 2018 Free Software Foundation, Inc.
Packit Service 1af19e
   This file is part of the GNU C Library.
Packit Service 1af19e
Packit Service 1af19e
   The GNU C Library is free software; you can redistribute it and/or
Packit Service 1af19e
   modify it under the terms of the GNU Lesser General Public
Packit Service 1af19e
   License as published by the Free Software Foundation; either
Packit Service 1af19e
   version 2.1 of the License, or (at your option) any later version.
Packit Service 1af19e
Packit Service 1af19e
   The GNU C Library is distributed in the hope that it will be useful,
Packit Service 1af19e
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 1af19e
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 1af19e
   Lesser General Public License for more details.
Packit Service 1af19e
Packit Service 1af19e
   You should have received a copy of the GNU Lesser General Public
Packit Service 1af19e
   License along with the GNU C Library; if not, see
Packit Service 1af19e
   <http://www.gnu.org/licenses/>.  */
Packit Service 1af19e
Packit Service 1af19e
#include <ifunc-memmem.h>
Packit Service 1af19e
Packit Service 1af19e
#if HAVE_MEMMEM_Z13
Packit Service 1af19e
# include <string.h>
Packit Service 90971b
# if HAVE_MEMMEM_IFUNC || MEMMEM_Z13_ONLY_USED_AS_FALLBACK
Packit Service 1af19e
Packit Service 1af19e
#  ifndef _LIBC
Packit Service 1af19e
#   define memmem MEMMEM_Z13
Packit Service 1af19e
#  else
Packit Service 1af19e
#   define __memmem MEMMEM_Z13
Packit Service 1af19e
#  endif
Packit Service 1af19e
Packit Service 1af19e
#  if defined SHARED && IS_IN (libc)
Packit Service 1af19e
#   undef libc_hidden_def
Packit Service 1af19e
#   undef libc_hidden_weak
Packit Service 1af19e
Packit Service 90971b
#   if HAVE_MEMMEM_C || MEMMEM_Z13_ONLY_USED_AS_FALLBACK
Packit Service 1af19e
#    define libc_hidden_def(name)
Packit Service 1af19e
#    define libc_hidden_weak(name)
Packit Service 1af19e
#   else
Packit Service 1af19e
#    define libc_hidden_def(name)				\
Packit Service 1af19e
  strong_alias (__memmem_vx, __memmem_vx_1);			\
Packit Service 1af19e
  __hidden_ver1 (__memmem_vx, __GI___memmem, __memmem_vx);
Packit Service 1af19e
Packit Service 1af19e
#    define libc_hidden_weak(name)					\
Packit Service 1af19e
  __hidden_ver1 (__memmem_vx_1, __GI_memmem, __memmem_vx_1) __attribute__((weak));
Packit Service 1af19e
#   endif
Packit Service 1af19e
#  endif
Packit Service 1af19e
Packit Service 1af19e
#  undef weak_alias
Packit Service 1af19e
#  define weak_alias(a, b)
Packit Service 1af19e
# endif
Packit Service 1af19e
Packit Service 1af19e
# ifdef USE_MULTIARCH
Packit Service 1af19e
extern __typeof (memchr) __memchr_vx attribute_hidden;
Packit Service 1af19e
# define memchr __memchr_vx
Packit Service 1af19e
Packit Service 1af19e
extern __typeof (memcmp) __memcmp_z196 attribute_hidden;
Packit Service 1af19e
# define memcmp __memcmp_z196
Packit Service 1af19e
# endif
Packit Service 1af19e
Packit Service 1af19e
# include <string/memmem.c>
Packit Service 1af19e
#endif