Refined rationale for choice of exact-length types for conversion support.

This commit is contained in:
Beman
2014-12-16 08:49:01 -05:00
parent 6de2f69b77
commit d15b2fdb1c
3 changed files with 5 additions and 5 deletions

View File

@ -359,7 +359,7 @@ provided.</p>
</blockquote>
<p><b>Why are 8, 16, 32, and 64-bit integers supported rather than the built-in
<p><b>Why are exact-length 8, 16, 32, and 64-bit integers supported rather than the built-in
char, short, int, long, long long, etc?</b></p>
<blockquote>
@ -376,7 +376,7 @@ Pierre Talbot provided the <code>int8_t endian_reverse()</code> and templated
<code>endian_reverse_inplace()</code> implementations.</p>
<hr>
<p>Last revised:
<!--webbot bot="Timestamp" s-type="EDITED" s-format="%d %B, %Y" startspan -->11 December, 2014<!--webbot bot="Timestamp" endspan i-checksum="38635" --></p>
<!--webbot bot="Timestamp" s-type="EDITED" s-format="%d %B, %Y" startspan -->16 December, 2014<!--webbot bot="Timestamp" endspan i-checksum="38645" --></p>
<p>© Copyright Beman Dawes, 2011, 2013</p>
<p>Distributed under the Boost Software License, Version 1.0. See <a href="http://www.boost.org/LICENSE_1_0.txt">www.boost.org/ LICENSE_1_0.txt</a></p>

View File

@ -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;

View File

@ -7,7 +7,7 @@
//--------------------------------------------------------------------------------------//
#define BOOST_ENDIAN_NO_INTRINSICS
//#define BOOST_ENDIAN_NO_INTRINSICS
//#define BOOST_ENDIAN_LOG
#include <boost/endian/detail/disable_warnings.hpp>