From 8ea7d201f915d6c042c0e513f1023299fdf7dcaf Mon Sep 17 00:00:00 2001 From: Beman Date: Wed, 13 Aug 2014 13:23:11 -0400 Subject: [PATCH] native_float32_t and native_float64_t, fixing issue #2. --- include/boost/endian/types.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/boost/endian/types.hpp b/include/boost/endian/types.hpp index 9a81795..0298258 100644 --- a/include/boost/endian/types.hpp +++ b/include/boost/endian/types.hpp @@ -194,6 +194,9 @@ namespace endian typedef big_uint56_t native_uint56_t; typedef big_uint64_t native_uint64_t; + // unaligned native endian floating point types + typedef big_float32_t native_float32_t; + typedef big_float64_t native_float64_t; # else // unaligned native endian signed integer types typedef little_int8_t native_int8_t; @@ -214,6 +217,10 @@ namespace endian typedef little_uint48_t native_uint48_t; typedef little_uint56_t native_uint56_t; typedef little_uint64_t native_uint64_t; + + // unaligned native endian floating point types + typedef little_float32_t native_float32_t; + typedef little_float64_t native_float64_t; # endif } // namespace boost } // namespace endian