#include "arithmetic_backend.hpp"
-typedef boost::polygon::detail::point_2d<boost::int32_t> i_point;
+typedef boost::polygon::detail::point_2d<std::int32_t> i_point;
template <class Clock>
struct stopwatch
template <class Big>
struct cpp_int_voronoi_traits
{
- typedef boost::int32_t int_type;
- typedef boost::int64_t int_x2_type;
- typedef boost::uint64_t uint_x2_type;
+ typedef std::int32_t int_type;
+ typedef std::int64_t int_x2_type;
+ typedef std::uint64_t uint_x2_type;
typedef Big big_int_type;
typedef double fpt_type;
typedef boost::polygon::detail::extended_exponent_fpt<fpt_type> efpt_type;
template <class Big>
struct native_int_voronoi_traits
{
- typedef boost::int32_t int_type;
- typedef boost::int64_t int_x2_type;
- typedef boost::uint64_t uint_x2_type;
+ typedef std::int32_t int_type;
+ typedef std::int64_t int_x2_type;
+ typedef std::uint64_t uint_x2_type;
typedef Big big_int_type;
typedef double fpt_type;
typedef boost::polygon::detail::extended_exponent_fpt<fpt_type> efpt_type;
double test(const char* name)
{
typedef boost::polygon::detail::voronoi_predicates<Traits> preds;
- typedef boost::polygon::detail::circle_event<boost::int32_t> circle_event;
- typedef boost::polygon::detail::site_event<boost::int32_t> site_event;
+ typedef boost::polygon::detail::circle_event<std::int32_t> circle_event;
+ typedef boost::polygon::detail::site_event<std::int32_t> site_event;
typedef typename preds::template mp_circle_formation_functor<site_event, circle_event> circle_pred;
boost::random::uniform_int_distribution<> dist(0, points.size() - 1);
int main()
{
- boost::random::uniform_int_distribution<> dist((std::numeric_limits<boost::int32_t>::min)() / 2, (std::numeric_limits<boost::int32_t>::max)() / 2);
+ boost::random::uniform_int_distribution<> dist((std::numeric_limits<std::int32_t>::min)() / 2, (std::numeric_limits<std::int32_t>::max)() / 2);
for (unsigned i = 0; i < 100; ++i)
{
points.push_back(i_point(dist(gen), dist(gen)));
}
- test<boost::polygon::detail::voronoi_ctype_traits<boost::int32_t> >("extended_int");
+ test<boost::polygon::detail::voronoi_ctype_traits<std::int32_t> >("extended_int");
test<cpp_int_voronoi_traits<boost::multiprecision::int256_t> >("int256_t");
test<cpp_int_voronoi_traits<boost::multiprecision::int512_t> >("int512_t");
generate_quickbook();
- test<native_int_voronoi_traits<boost::int64_t> >("int64_t");
- test<cpp_int_voronoi_traits<boost::multiprecision::number<boost::multiprecision::arithmetic_backend<boost::int64_t>, boost::multiprecision::et_off> > >("number<arithmetic_backend<boost::int64_t>, et_off>");
- //test<cpp_int_voronoi_traits<boost::multiprecision::number<boost::multiprecision::arithmetic_backend<boost::int64_t>, boost::multiprecision::et_on> > >("number<arithmetic_backend<boost::int64_t>, et_on>");
+ test<native_int_voronoi_traits<std::int64_t> >("int64_t");
+ test<cpp_int_voronoi_traits<boost::multiprecision::number<boost::multiprecision::arithmetic_backend<std::int64_t>, boost::multiprecision::et_off> > >("number<arithmetic_backend<std::int64_t>, et_off>");
+ //test<cpp_int_voronoi_traits<boost::multiprecision::number<boost::multiprecision::arithmetic_backend<std::int64_t>, boost::multiprecision::et_on> > >("number<arithmetic_backend<std::int64_t>, et_on>");
return 0;
}