Blame sysdeps/x86/init-arch.h

Packit 6c4009
/* This file is part of the GNU C Library.
Packit 6c4009
   Copyright (C) 2008-2018 Free Software Foundation, Inc.
Packit 6c4009
Packit 6c4009
   The GNU C Library is free software; you can redistribute it and/or
Packit 6c4009
   modify it under the terms of the GNU Lesser General Public
Packit 6c4009
   License as published by the Free Software Foundation; either
Packit 6c4009
   version 2.1 of the License, or (at your option) any later version.
Packit 6c4009
Packit 6c4009
   The GNU C Library is distributed in the hope that it will be useful,
Packit 6c4009
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 6c4009
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 6c4009
   Lesser General Public License for more details.
Packit 6c4009
Packit 6c4009
   You should have received a copy of the GNU Lesser General Public
Packit 6c4009
   License along with the GNU C Library; if not, see
Packit 6c4009
   <http://www.gnu.org/licenses/>.  */
Packit 6c4009
Packit Service 8a9160
#include <ldsodefs.h>
Packit 6c4009
#include <ifunc-init.h>
Packit Service 01626a
#include <isa.h>
Packit 6c4009
Packit 6c4009
#ifndef __x86_64__
Packit 6c4009
/* Due to the reordering and the other nifty extensions in i686, it is
Packit 6c4009
   not really good to use heavily i586 optimized code on an i686.  It's
Packit 6c4009
   better to use i486 code if it isn't an i586.  */
Packit 6c4009
# if MINIMUM_ISA == 686
Packit 6c4009
#  define USE_I586 0
Packit 6c4009
#  define USE_I686 1
Packit 6c4009
# else
Packit 6c4009
#  define USE_I586 (HAS_ARCH_FEATURE (I586) && !HAS_ARCH_FEATURE (I686))
Packit 6c4009
#  define USE_I686 HAS_ARCH_FEATURE (I686)
Packit 6c4009
# endif
Packit 6c4009
#endif