diff --git a/doc/types.html b/doc/types.html index 3fb31ef..1067465 100644 --- a/doc/types.html +++ b/doc/types.html @@ -223,108 +223,122 @@ conventions for common use cases:
big_align_int
n_t
big
yes
yes
big_align_uint
n_t
big
yes
yes
big_align_float
n_t
big
yes
yes
little_align_int
n_t
little
yes
little_align_uint
n_t
little
yes
little_align_float
n_t
little
yes
big_int
n_t
big
no
no
big_uint
n_
t
big_uint
n_t
big
no
no
big_float
n_t
big
no
little_align_int
n_t
little
yes
little_align_uint
n_t
little
yes
little_align_float
n_t
little
yes
no
little_int
n_
t
little
no
no
little_uint
n_
t
little
no
no
little_float
n_t
little
no
no
native_align_float
n_t
native
yes
native_int
n_
t
native
no
no
native_uint
n_
t
native
no
no
native_float
n_t
native
no
The unaligned types do not cause compilers to insert padding bytes in classes @@ -628,7 +642,7 @@ differs from endian representation size. Vicente Botet and other reviewers suggested supporting floating point types.
Last revised: -12 August, 2014
+13 August, 2014© Copyright Beman Dawes, 2006-2009, 2013
Distributed under the Boost Software License, Version 1.0. See www.boost.org/ LICENSE_1_0.txt
diff --git a/include/boost/endian/types.hpp b/include/boost/endian/types.hpp index 0298258..22c94fa 100644 --- a/include/boost/endian/types.hpp +++ b/include/boost/endian/types.hpp @@ -194,9 +194,11 @@ namespace endian typedef big_uint56_t native_uint56_t; typedef big_uint64_t native_uint64_t; - // unaligned native endian floating point types + // native endian floating point types typedef big_float32_t native_float32_t; typedef big_float64_t native_float64_t; + typedef big_align_float32_t native_align_float32_t; + typedef big_align_float64_t native_align_float64_t; # else // unaligned native endian signed integer types typedef little_int8_t native_int8_t; @@ -218,9 +220,11 @@ namespace endian typedef little_uint56_t native_uint56_t; typedef little_uint64_t native_uint64_t; - // unaligned native endian floating point types + // native endian floating point types typedef little_float32_t native_float32_t; typedef little_float64_t native_float64_t; + typedef little_align_float32_t native_align_float32_t; + typedef little_align_float64_t native_align_float64_t; # endif } // namespace boost } // namespace endian