dust3d/thirdparty/cgal/CGAL-5.1/include/CGAL/Exact_integer.h

80 lines
1.9 KiB
C
Raw Normal View History

2020-10-13 12:44:25 +00:00
// Copyright (c) 2014
// Utrecht University (The Netherlands),
// ETH Zurich (Switzerland),
// INRIA Sophia-Antipolis (France),
// Max-Planck-Institute Saarbruecken (Germany),
2020-10-13 12:44:25 +00:00
// and Tel-Aviv University (Israel). All rights reserved.
//
2020-10-13 12:44:25 +00:00
// This file is part of CGAL (www.cgal.org)
//
2020-10-13 12:44:25 +00:00
// $URL: https://github.com/CGAL/cgal/blob/v5.1/Number_types/include/CGAL/Exact_integer.h $
// $Id: Exact_integer.h 0779373 2020-03-26T13:31:46+01:00 Sébastien Loriot
// SPDX-License-Identifier: LGPL-3.0-or-later OR LicenseRef-Commercial
//
//
// Author(s) : Laurent Rineau
#include <CGAL/config.h>
2020-10-13 12:44:25 +00:00
#include <CGAL/boost_mp.h>
#if CGAL_USE_GMPXX
# include <CGAL/gmpxx.h>
#elif CGAL_USE_GMP
# include <CGAL/Gmpz.h>
#elif CGAL_USE_LEDA
# include <CGAL/leda_integer.h>
#elif CGAL_USE_CORE
# include <CGAL/CORE_BigInt.h>
2020-10-13 12:44:25 +00:00
#elif defined CGAL_USE_BOOST_MP
#else
2020-10-13 12:44:25 +00:00
# error CGAL is configured with none of GMP, LEDA, Boost.Multiprecision and CORE. <CGAL/Exact_integer.h> cannot be used.
#endif
namespace CGAL {
/*!
\ingroup nt_cgal
`Exact_integer` is an exact integer number type.
It is a typedef of another number type. Its exact definition depends on
the availability the third-party libraries %GMP, %CORE, and %LEDA. %CGAL must
be configured with at least one of those libraries.
2020-10-13 12:44:25 +00:00
\cgalModels `EuclideanRing`
\cgalModels `RealEmbeddable`
*/
#if DOXYGEN_RUNNING
typedef unspecified_type Exact_integer;
#else // not DOXYGEN_RUNNING
#if CGAL_USE_GMPXX
typedef mpz_class Exact_integer;
#elif CGAL_USE_GMP
2020-10-13 12:44:25 +00:00
# ifdef CGAL_USE_BOOST_MP
typedef boost::multiprecision::mpz_int Exact_integer;
# else
typedef Gmpz Exact_integer;
2020-10-13 12:44:25 +00:00
# endif
#elif CGAL_USE_LEDA
typedef leda_integer Exact_integer;
#elif CGAL_USE_CORE
typedef CORE::BigInt Exact_integer;
2020-10-13 12:44:25 +00:00
#elif defined CGAL_USE_BOOST_MP
typedef boost::multiprecision::cpp_int Exact_integer;
#endif // CGAL_USE_CORE
#endif // not DOXYGEN_RUNNING
} /* end namespace CGAL */