Types.h 471 B

12345678910111213141516171819202122232425262728
  1. #ifndef MANDEL_TYPES_H
  2. #define MANDEL_TYPES_H
  3. #include <cinttypes>
  4. #ifdef WITH_BOOST
  5. # include <boost/multiprecision/cpp_bin_float.hpp>
  6. # include <boost/multiprecision/cpp_int.hpp>
  7. #endif
  8. namespace mnd
  9. {
  10. #ifdef WITH_BOOST
  11. using Float128 = boost::multiprecision::cpp_bin_float_quad;
  12. using Real = double;
  13. using Integer = boost::multiprecision::int128_t;
  14. #else
  15. using Real = double;
  16. using Integer = int64_t;
  17. #endif
  18. }
  19. #endif // MANDEL_TYPES_H