From d15b2fdb1c3965074c25ac75521fed0f173922df Mon Sep 17 00:00:00 2001 From: Beman Date: Tue, 16 Dec 2014 08:49:01 -0500 Subject: [PATCH] Refined rationale for choice of exact-length types for conversion support. --- doc/conversion.html | 4 ++-- include/boost/endian/conversion.hpp | 4 ++-- test/speed_test.cpp | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/conversion.html b/doc/conversion.html index a79b408..9e9e92f 100644 --- a/doc/conversion.html +++ b/doc/conversion.html @@ -359,7 +359,7 @@ provided.

-

Why are 8, 16, 32, and 64-bit integers supported rather than the built-in +

Why are exact-length 8, 16, 32, and 64-bit integers supported rather than the built-in char, short, int, long, long long, etc?

@@ -376,7 +376,7 @@ Pierre Talbot provided the int8_t endian_reverse() and templated endian_reverse_inplace() implementations.


Last revised: -11 December, 2014

+16 December, 2014

© Copyright Beman Dawes, 2011, 2013

Distributed under the Boost Software License, Version 1.0. See www.boost.org/ LICENSE_1_0.txt

diff --git a/include/boost/endian/conversion.hpp b/include/boost/endian/conversion.hpp index 1c90c98..7771eed 100644 --- a/include/boost/endian/conversion.hpp +++ b/include/boost/endian/conversion.hpp @@ -52,7 +52,7 @@ namespace endian // // //--------------------------------------------------------------------------------------// - // customization for built-in arithmetic types + // customization for exact-length arithmetic types. See doc/conversion.html/#FAQ inline int8_t endian_reverse(int8_t x) BOOST_NOEXCEPT; inline int16_t endian_reverse(int16_t x) BOOST_NOEXCEPT; inline int32_t endian_reverse(int32_t x) BOOST_NOEXCEPT; @@ -61,7 +61,7 @@ namespace endian inline uint16_t endian_reverse(uint16_t x) BOOST_NOEXCEPT; inline uint32_t endian_reverse(uint32_t x) BOOST_NOEXCEPT; inline uint64_t endian_reverse(uint64_t x) BOOST_NOEXCEPT; - // TODO: Track progress of Floating-Point Typedefs Having Specified Widths proposal (N3626) + // TODO: Track N3626,Floating-Point Typedefs Having Specified Widths, proposal inline float endian_reverse(float x) BOOST_NOEXCEPT; inline double endian_reverse(double x) BOOST_NOEXCEPT; diff --git a/test/speed_test.cpp b/test/speed_test.cpp index df569b1..72d600e 100644 --- a/test/speed_test.cpp +++ b/test/speed_test.cpp @@ -7,7 +7,7 @@ //--------------------------------------------------------------------------------------// -#define BOOST_ENDIAN_NO_INTRINSICS +//#define BOOST_ENDIAN_NO_INTRINSICS //#define BOOST_ENDIAN_LOG #include