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