Imported Upstream version 1.72.0
[platform/upstream/boost.git] / boost / endian / detail / integral_by_size.hpp
index b0fd885..d53ee17 100644 (file)
@@ -7,6 +7,7 @@
 // http://www.boost.org/LICENSE_1_0.txt
 
 #include <boost/cstdint.hpp>
+#include <boost/config.hpp>
 #include <cstddef>
 
 namespace boost
@@ -40,6 +41,15 @@ template<> struct integral_by_size<8>
     typedef uint64_t type;
 };
 
+#if defined(BOOST_HAS_INT128)
+
+template<> struct integral_by_size<16>
+{
+    typedef uint128_type type;
+};
+
+#endif
+
 } // namespace detail
 } // namespace endian
 } // namespace boost