Blame sysdeps/s390/ifunc-memset.h

Packit Service 891b27
/* memset variant information on S/390 version.
Packit Service 891b27
   Copyright (C) 2018 Free Software Foundation, Inc.
Packit Service 891b27
   This file is part of the GNU C Library.
Packit Service 891b27
Packit Service 891b27
   The GNU C Library is free software; you can redistribute it and/or
Packit Service 891b27
   modify it under the terms of the GNU Lesser General Public
Packit Service 891b27
   License as published by the Free Software Foundation; either
Packit Service 891b27
   version 2.1 of the License, or (at your option) any later version.
Packit Service 891b27
Packit Service 891b27
   The GNU C Library is distributed in the hope that it will be useful,
Packit Service 891b27
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 891b27
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 891b27
   Lesser General Public License for more details.
Packit Service 891b27
Packit Service 891b27
   You should have received a copy of the GNU Lesser General Public
Packit Service 891b27
   License along with the GNU C Library; if not, see
Packit Service 891b27
   <http://www.gnu.org/licenses/>.  */
Packit Service 891b27
Packit Service 891b27
#if defined USE_MULTIARCH && IS_IN (libc)	\
Packit Service 891b27
  && ! defined HAVE_S390_MIN_Z196_ZARCH_ASM_SUPPORT
Packit Service 891b27
# define HAVE_MEMSET_IFUNC	1
Packit Service 891b27
#else
Packit Service 891b27
# define HAVE_MEMSET_IFUNC	0
Packit Service 891b27
#endif
Packit Service 891b27
Packit Service 891b27
#if defined HAVE_S390_MIN_Z196_ZARCH_ASM_SUPPORT
Packit Service 891b27
# define MEMSET_DEFAULT		MEMSET_Z196
Packit Service 891b27
# define HAVE_MEMSET_Z900_G5	0
Packit Service 891b27
# define HAVE_MEMSET_Z10	0
Packit Service 891b27
# define HAVE_MEMSET_Z196	1
Packit Service 891b27
#elif defined HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT
Packit Service 891b27
# define MEMSET_DEFAULT		MEMSET_Z10
Packit Service 891b27
# define HAVE_MEMSET_Z900_G5	0
Packit Service 891b27
# define HAVE_MEMSET_Z10	1
Packit Service 891b27
# define HAVE_MEMSET_Z196	HAVE_MEMSET_IFUNC
Packit Service 891b27
#else
Packit Service 891b27
# define MEMSET_DEFAULT		MEMSET_Z900_G5
Packit Service 891b27
# define HAVE_MEMSET_Z900_G5	1
Packit Service 891b27
# define HAVE_MEMSET_Z10	HAVE_MEMSET_IFUNC
Packit Service 891b27
# define HAVE_MEMSET_Z196	HAVE_MEMSET_IFUNC
Packit Service 891b27
#endif
Packit Service 891b27
Packit Service 891b27
#if HAVE_MEMSET_Z10 || HAVE_MEMSET_Z196
Packit Service 891b27
# define HAVE_MEMSET_MVCLE	1
Packit Service 891b27
#else
Packit Service 891b27
# define HAVE_MEMSET_MVCLE	0
Packit Service 891b27
#endif
Packit Service 891b27
Packit Service 891b27
#if HAVE_MEMSET_Z900_G5
Packit Service 891b27
# define MEMSET_Z900_G5		__memset_default
Packit Service 891b27
#else
Packit Service 891b27
# define MEMSET_Z900_G5		NULL
Packit Service 891b27
#endif
Packit Service 891b27
Packit Service 891b27
#if HAVE_MEMSET_Z10
Packit Service 891b27
# define MEMSET_Z10		__memset_z10
Packit Service 891b27
#else
Packit Service 891b27
# define MEMSET_Z10		NULL
Packit Service 891b27
#endif
Packit Service 891b27
Packit Service 891b27
#if HAVE_MEMSET_Z196
Packit Service 891b27
# define MEMSET_Z196		__memset_z196
Packit Service 891b27
#else
Packit Service 891b27
# define MEMSET_Z196		NULL
Packit Service 891b27
#endif