History log of /system/core/base/include/android-base/memory.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b0775ca51739747be074a4b933d52da933830ed5 07-Dec-2016 Stephen Hines <srhines@google.com> Switch to memcpy for accessing misaligned data.

Bug: http://b/31532493

Using misaligned pointers forces us to potentially take the address of
members in a packed structure (which is now a warning/error in the
latest Clang). Using memcpy() is the proper way to handle this kind of
problem, as the compiler can insert the proper instructions (and usually
elide the memcpy() entirely).

Test: Built correctly with updated compilers.
Change-Id: Ia1f6eb62cf19404ff76b71d3c6c7ffffa1403120
/system/core/base/include/android-base/memory.h
54c72aaccc45edf4832cfdc5053d9ae6acc9bcdf 23-Mar-2016 Elliott Hughes <enh@google.com> Fix <android-base/*.h> header guards.

I've been meaning to do this for a while, and it came up on the bug below
that there have been conflicts with similar-named files in <base/*.h>,
so let's rule out one possible explanation.

Bug: http://b/27804373
Change-Id: I69e5d52b6260c573c308513420aee0e281426bd4
/system/core/base/include/android-base/memory.h
f2584be414037aaab9e344bc9f65872da624d9f0 07-Dec-2015 Elliott Hughes <enh@google.com> Rename base/ to android-base/.

Bug: http://b/26023797
Change-Id: Ie6c63bf86bed05faab87d290de6f34d9af3532a8
/system/core/base/include/android-base/memory.h