diff options
author | Ben Peddell <klightspeed@killerwolves.net> | 2013-01-27 15:45:43 +1000 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2013-01-28 18:06:43 +0100 |
commit | 7b668965f0cf3fb8632c505a7a011189ee1a5a8e (patch) | |
tree | ed4755aba4bd2c26a232545dc2d636ac83835251 /qgroup.h | |
parent | 272c04915252c497c64fd4036b601b82c3368bbd (diff) |
btrfs-progs: fix unaligned accesses v2
gcc optimizes out the memcpy calls at -O2 and -Os.
Replacing memcpy with memmove does't work - gcc treats memmove
the same way it treats memcpy.
This patch brings in {get|put}_unaligned_le{16|32|64} (using the
packed struct method), and uses them in the failing get/set calls.
On architectures where unaligned accesses are cheap, these unaligned
macros should be optimized out by the compiler.
Signed-off-by: Ben Peddell <klightspeed@killerwolves.net>
Diffstat (limited to 'qgroup.h')
0 files changed, 0 insertions, 0 deletions