Nicolas Winkler 5 gadi atpakaļ
vecāks
revīzija
1b700d1ca3
1 mainītis faili ar 28 papildinājumiem un 0 dzēšanām
  1. 28 0
      libmandel/include/Types.h

+ 28 - 0
libmandel/include/Types.h

@@ -0,0 +1,28 @@
+#ifndef MANDEL_TYPES_H
+#define MANDEL_TYPES_H
+
+#include <cinttypes>
+#ifdef WITH_BOOST
+#   include <boost/multiprecision/cpp_bin_float.hpp>
+#   include <boost/multiprecision/cpp_int.hpp>
+#endif
+
+namespace mnd
+{
+
+
+#ifdef WITH_BOOST
+    using Float128 = boost::multiprecision::cpp_bin_float_quad;
+
+    using Real = double;
+    using Integer = boost::multiprecision::int128_t;
+#else
+    using Real = double;
+    using Integer = int64_t;
+#endif
+
+
+}
+
+
+#endif // MANDEL_TYPES_H