mirror of
https://github.com/boostorg/multiprecision.git
synced 2026-02-15 01:02:16 +00:00
Tentative rename of packed_cpp_int to fixed_int.
[SVN r76428]
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
#if !defined(TEST_MPF_50) && !defined(TEST_MPF) && !defined(TEST_BACKEND) && !defined(TEST_MPZ) && \
|
||||
!defined(TEST_CPP_FLOAT) && !defined(TEST_MPFR) && !defined(TEST_MPFR_50) && !defined(TEST_MPQ) \
|
||||
&& !defined(TEST_TOMMATH) && !defined(TEST_TOMMATH_BOOST_RATIONAL) && !defined(TEST_MPZ_BOOST_RATIONAL)\
|
||||
&& !defined(TEST_PACKED_INT1) && !defined(TEST_PACKED_INT2)
|
||||
&& !defined(TEST_FIXED_INT1) && !defined(TEST_FIXED_INT2)
|
||||
# define TEST_MPF_50
|
||||
# define TEST_MPF
|
||||
# define TEST_BACKEND
|
||||
@@ -23,8 +23,8 @@
|
||||
# define TEST_CPP_FLOAT
|
||||
# define TEST_MPQ
|
||||
# define TEST_TOMMATH
|
||||
# define TEST_PACKED_INT1
|
||||
# define TEST_PACKED_INT2
|
||||
# define TEST_FIXED_INT1
|
||||
# define TEST_FIXED_INT2
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma message("CAUTION!!: No backend type specified so testing everything.... this will take some time!!")
|
||||
@@ -52,8 +52,8 @@
|
||||
#include <boost/multiprecision/tommath.hpp>
|
||||
#include <boost/multiprecision/rational_adapter.hpp>
|
||||
#endif
|
||||
#if defined(TEST_PACKED_INT1) || defined(TEST_PACKED_INT2)
|
||||
#include <boost/multiprecision/packed_cpp_int.hpp>
|
||||
#if defined(TEST_FIXED_INT1) || defined(TEST_FIXED_INT2)
|
||||
#include <boost/multiprecision/fixed_int.hpp>
|
||||
#endif
|
||||
#if defined(TEST_TOMMATH_BOOST_RATIONAL) || defined(TEST_MPZ_BOOST_RATIONAL)
|
||||
#include <boost/rational.hpp>
|
||||
@@ -999,13 +999,13 @@ int main()
|
||||
#ifdef TEST_MPZ_BOOST_RATIONAL
|
||||
test<boost::rational<boost::multiprecision::mpz_int> >();
|
||||
#endif
|
||||
#ifdef TEST_PACKED_INT1
|
||||
#ifdef TEST_FIXED_INT1
|
||||
test<boost::multiprecision::mp_uint64_t>();
|
||||
test<boost::multiprecision::mp_uint128_t>();
|
||||
test<boost::multiprecision::mp_uint512_t>();
|
||||
test<boost::multiprecision::mp_number<boost::multiprecision::packed_cpp_int<70, false> > >();
|
||||
test<boost::multiprecision::mp_number<boost::multiprecision::fixed_int<70, false> > >();
|
||||
#endif
|
||||
#ifdef TEST_PACKED_INT2
|
||||
#ifdef TEST_FIXED_INT2
|
||||
//
|
||||
// Can't test 64-bit signed ints - they don't have enough bits
|
||||
// to interoperate with uint64_t without loss:
|
||||
@@ -1013,7 +1013,7 @@ int main()
|
||||
//test<boost::multiprecision::mp_int64_t>();
|
||||
test<boost::multiprecision::mp_int128_t>();
|
||||
test<boost::multiprecision::mp_int512_t>();
|
||||
test<boost::multiprecision::mp_number<boost::multiprecision::packed_cpp_int<70, true> > >();
|
||||
test<boost::multiprecision::mp_number<boost::multiprecision::fixed_int<70, true> > >();
|
||||
#endif
|
||||
return boost::report_errors();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user