From 321d5a087af563c1d6886f1b7d8c319c808c3e89 Mon Sep 17 00:00:00 2001
From: Beman
Date: Tue, 6 Jan 2015 16:57:53 -0500
Subject: [PATCH] For X86 and X64 architectures, which permit unaligned loads
and stores, unaligned little endian buffer and arithmetic types use regular
loads and stores when the size is exact. This makes unaligned little endian
buffer and arithmetic types significantly more efficient on these
architectures.(Pull request from Jeremy Maitin-Shepard) Docs updated, but
timing results have not yet been updated.
---
doc/index.html | 11 ++++++++---
include/boost/endian/buffers.hpp | 21 +++++++++++++++++++++
test/buffer_test.cpp | 16 +++++++++++++---
test/msvc/buffer_test/buffer_test.vcxproj | 3 +++
4 files changed, 45 insertions(+), 6 deletions(-)
diff --git a/doc/index.html b/doc/index.html
index 2d2c965..ed49cbb 100644
--- a/doc/index.html
+++ b/doc/index.html
@@ -632,6 +632,11 @@ review
uint8_t have been added for improved generality. (Pierre Talbot)
Overloads of endian_reverse_inplace() have been replaced with a single
endian_reverse_inplace() template. (Pierre Talbot)
+
For X86 and X64 architectures, which permit unaligned loads and stores,
+ unaligned little endian buffer and arithmetic types use regular loads and
+ stores when the size is exact. This makes unaligned little endian buffer and
+ arithmetic types significantly more efficient on these architectures. (Jeremy
+ Maitin-Shepard)
C++11 features affecting interfaces, such as noexcept, are now used.
C++03 compilers are still
supported.
Comments and suggestions were received from Adder, Benaka Moorthi,
Christopher Kohlhoff, Cliff Green, Daniel James, Gennaro Proto, Giovanni Piero
-Deretta, Gordon Woodhull, dizzy, Hartmut Kaiser, Jeff Flinn, John Filo, John
+Deretta, Gordon Woodhull, dizzy, Hartmut Kaiser, Jeff Flinn, Jeremy Maitin-Shepard, John Filo, John
Maddock, Kim Barrett, Marsh Ray, Martin Bonner, Mathias Gaunard, Matias
Capeletto, Neil Mayhew, Paul Bristow, Pierre Talbot, Phil Endecott, Pyry Jahkola,
Rene Rivera, Robert Stewart, Roland Schwarz, Scott McMurray, Sebastian Redl, Tim
Blechmann, Tim Moore, tymofey, Tomas Puverle, Vincente Botet, Yuval Ronen and
-Vitaly Budovski,.
+Vitaly Budovsk. Apologies if anyone has been missed.