byteorder: do not assume PowerPC is big-endian
commitc412f6286f52e55fc9964ba8a1c25713609d3ea1
authorDavid Disseldorp <ddiss@samba.org>
Mon, 5 May 2014 11:42:36 +0000 (5 13:42 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 19 May 2014 10:17:48 +0000 (19 12:17 +0200)
treeeee9d0be67fc699d2a0f778fe7413ea7f099c9a4
parent92f894d61d2108c62870252d4b5eee3af9a83e58
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>
(cherry picked from commit 5bf6ed5ebd0dc5ecdc5bcfb1d4720e9251849adc)
lib/util/byteorder.h