Blame sysdeps/s390/ifunc-wmemset.h

Packit f6175b
/* wmemset variant information on S/390 version.
Packit f6175b
   Copyright (C) 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
#if defined USE_MULTIARCH && IS_IN (libc)		\
Packit f6175b
  && ! defined HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT
Packit f6175b
# define HAVE_WMEMSET_IFUNC	1
Packit f6175b
#else
Packit f6175b
# define HAVE_WMEMSET_IFUNC	0
Packit f6175b
#endif
Packit f6175b
Packit f6175b
#ifdef HAVE_S390_VX_ASM_SUPPORT
Packit f6175b
# define HAVE_WMEMSET_IFUNC_AND_VX_SUPPORT HAVE_WMEMSET_IFUNC
Packit f6175b
#else
Packit f6175b
# define HAVE_WMEMSET_IFUNC_AND_VX_SUPPORT 0
Packit f6175b
#endif
Packit f6175b
Packit f6175b
#if defined HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT
Packit f6175b
# define WMEMSET_DEFAULT	WMEMSET_Z13
Packit f6175b
/* The z13 ifunc variant is using the common code variant as fallback!  */
Packit f6175b
# define HAVE_WMEMSET_C		1
Packit f6175b
# define HAVE_WMEMSET_Z13	1
Packit f6175b
#else
Packit f6175b
# define WMEMSET_DEFAULT	WMEMSET_C
Packit f6175b
# define HAVE_WMEMSET_C		1
Packit f6175b
# define HAVE_WMEMSET_Z13	HAVE_WMEMSET_IFUNC_AND_VX_SUPPORT
Packit f6175b
#endif
Packit f6175b
Packit f6175b
#if HAVE_WMEMSET_C
Packit f6175b
# define WMEMSET_C		__wmemset_c
Packit f6175b
#else
Packit f6175b
# define WMEMSET_C		NULL
Packit f6175b
#endif
Packit f6175b
Packit f6175b
#if HAVE_WMEMSET_Z13
Packit f6175b
# define WMEMSET_Z13		__wmemset_vx
Packit f6175b
#else
Packit f6175b
# define WMEMSET_Z13		NULL
Packit f6175b
#endif