forked from boostorg/endian
Refined rationale for choice of exact-length types for conversion support.
This commit is contained in:
@ -359,7 +359,7 @@ provided.</p>
|
|||||||
|
|
||||||
</blockquote>
|
</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>
|
char, short, int, long, long long, etc?</b></p>
|
||||||
|
|
||||||
<blockquote>
|
<blockquote>
|
||||||
@ -376,7 +376,7 @@ Pierre Talbot provided the <code>int8_t endian_reverse()</code> and templated
|
|||||||
<code>endian_reverse_inplace()</code> implementations.</p>
|
<code>endian_reverse_inplace()</code> implementations.</p>
|
||||||
<hr>
|
<hr>
|
||||||
<p>Last revised:
|
<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>© 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>
|
<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>
|
||||||
|
|
||||||
|
@ -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 int8_t endian_reverse(int8_t x) BOOST_NOEXCEPT;
|
||||||
inline int16_t endian_reverse(int16_t x) BOOST_NOEXCEPT;
|
inline int16_t endian_reverse(int16_t x) BOOST_NOEXCEPT;
|
||||||
inline int32_t endian_reverse(int32_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 uint16_t endian_reverse(uint16_t x) BOOST_NOEXCEPT;
|
||||||
inline uint32_t endian_reverse(uint32_t x) BOOST_NOEXCEPT;
|
inline uint32_t endian_reverse(uint32_t x) BOOST_NOEXCEPT;
|
||||||
inline uint64_t endian_reverse(uint64_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 float endian_reverse(float x) BOOST_NOEXCEPT;
|
||||||
inline double endian_reverse(double x) BOOST_NOEXCEPT;
|
inline double endian_reverse(double x) BOOST_NOEXCEPT;
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
//--------------------------------------------------------------------------------------//
|
//--------------------------------------------------------------------------------------//
|
||||||
|
|
||||||
#define BOOST_ENDIAN_NO_INTRINSICS
|
//#define BOOST_ENDIAN_NO_INTRINSICS
|
||||||
//#define BOOST_ENDIAN_LOG
|
//#define BOOST_ENDIAN_LOG
|
||||||
|
|
||||||
#include <boost/endian/detail/disable_warnings.hpp>
|
#include <boost/endian/detail/disable_warnings.hpp>
|
||||||
|
Reference in New Issue
Block a user