03f18e1
/* Generic x86 gmp-mparam.h -- Compiler/machine parameter header file.
03f18e1
Peter Schiffer de470d2
Copyright 1991, 1993, 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2002, 2003,
Peter Schiffer de470d2
2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
03f18e1
03f18e1
This file is part of the GNU MP Library.
03f18e1
03f18e1
The GNU MP Library is free software; you can redistribute it and/or modify
03f18e1
it under the terms of the GNU Lesser General Public License as published by
Peter Schiffer de470d2
the Free Software Foundation; either version 3 of the License, or (at your
03f18e1
option) any later version.
03f18e1
03f18e1
The GNU MP Library is distributed in the hope that it will be useful, but
03f18e1
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
03f18e1
or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
03f18e1
License for more details.
03f18e1
03f18e1
You should have received a copy of the GNU Lesser General Public License
Peter Schiffer de470d2
along with the GNU MP Library.  If not, see http://www.gnu.org/licenses/.  */
03f18e1
03f18e1
/*
03f18e1
 * This gmp-mparam.h is a wrapper include file for the original gmp-mparam.h, 
03f18e1
 * which has been renamed to gmp-mparam-<arch>.h. There are conflicts for the
03f18e1
 * original gmp-mparam.h on multilib systems, which result from arch-specific
03f18e1
 * configuration options. Please do not use the arch-specific file directly.
03f18e1
 *
03f18e1
 * Copyright (C) 2006 Red Hat, Inc.
03f18e1
 * Thomas Woerner <twoerner@redhat.com>
03f18e1
 */
03f18e1
03f18e1
#ifdef gmp_mparam_wrapper_h
03f18e1
#error "gmp_mparam_wrapper_h should not be defined!"
03f18e1
#endif
03f18e1
#define gmp_mparam_wrapper_h
03f18e1
Ivana Varekova a59e78a
#if defined(__arm__)
Ivana Varekova a59e78a
#include "gmp-mparam-arm.h"
Ivana Varekova a59e78a
#elif defined(__i386__)
03f18e1
#include "gmp-mparam-i386.h"
02ebeb1
#elif defined(__ia64__)
02ebeb1
#include "gmp-mparam-ia64.h"
03f18e1
#elif defined(__powerpc64__)
e271a2d
# if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
03f18e1
#include "gmp-mparam-ppc64.h"
e271a2d
# else
e271a2d
#include "gmp-mparam-ppc64le.h"
e271a2d
# endif
768a0c3
#elif defined(__powerpc__)
e271a2d
# if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
768a0c3
#include "gmp-mparam-ppc.h"
e271a2d
# else
e271a2d
#include "gmp-mparam-ppcle.h"
e271a2d
# endif
03f18e1
#elif defined(__s390x__)
03f18e1
#include "gmp-mparam-s390x.h"
02ebeb1
#elif defined(__s390__)
02ebeb1
#include "gmp-mparam-s390.h"
02ebeb1
#elif defined(__x86_64__)
02ebeb1
#include "gmp-mparam-x86_64.h"
1cf98c6
#elif defined(__alpha__)
89907e8
#include "gmp-mparam-alpha.h"
Ivana Varekova 7ea96a3
#elif defined(__sh__)
Ivana Varekova 7ea96a3
#include "gmp-mparam-sh.h"
a993f87
#elif defined(__sparc__) && defined (__arch64__)
a993f87
#include "gmp-mparam-sparc64.h"
a993f87
#elif defined(__sparc__)                      
a993f87
#include "gmp-mparam-sparc.h"
Frantisek Kluknavsky e6ad991
#elif defined(__aarch64__)
Frantisek Kluknavsky e6ad991
#include "gmp-mparam-aarch64.h"
af9a9c9
#elif defined(__mips64) && defined(__MIPSEL__)
af9a9c9
#include "gmp-mparam-mips64el.h"
af9a9c9
#elif defined(__mips64)
af9a9c9
#include "gmp-mparam-mips64.h"
af9a9c9
#elif defined(__mips) && defined(__MIPSEL__)
af9a9c9
#include "gmp-mparam-mipsel.h"
af9a9c9
#elif defined(__mips)
af9a9c9
#include "gmp-mparam-mips.h"
49f198c
#elif defined(__riscv)
49f198c
#if __riscv_xlen == 64
ca66bc1
#include "gmp-mparam-riscv64.h"
03f18e1
#else
49f198c
#error "No support for riscv32"
49f198c
#endif
49f198c
#else
03f18e1
#error "The gmp-devel package is not usable with the architecture."
03f18e1
#endif
03f18e1
03f18e1
#undef gmp_mparam_wrapper_h