byteorder: do not assume PowerPC is big-endian
authorDavid Disseldorp <ddiss@samba.org>
Mon, 5 May 2014 11:42:36 +0000 (13:42 +0200)
committerDavid Disseldorp <ddiss@samba.org>
Tue, 6 May 2014 16:14:13 +0000 (18:14 +0200)
commit5bf6ed5ebd0dc5ecdc5bcfb1d4720e9251849adc
tree4a106cb3089b1112b27211e80de8de360fc7627e
parent401f555c28aee861385b75c371b5f44cded1d391
byteorder: do not assume PowerPC is big-endian

byteorder.h currently uses reverse-indexing ASM instructions for little
endian multi-byte storage/retrieval on PowerPC. With Power8 this is an
incorrect assumption, as it can be big or little endian.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=10590

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
lib/util/byteorder.h