crc32: use __BYTE_ORDER macro for endian detection.
authorJoakim Tjernlund <Joakim.Tjernlund@transmode.se>
Mon, 24 May 2010 21:33:31 +0000 (14:33 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 25 May 2010 15:07:06 +0000 (08:07 -0700)
commit4762bbc1a3a1f22095278b74dd1b8cee04858641
treed80314902f759a2ee1f6bb25384956021c4b2d04
parent836e2af92503f1642dbc3c3281ec68ec1dd39d2e
crc32: use __BYTE_ORDER macro for endian detection.

Since crc32.c contains a nifty test program that can be executed in user
space, make sure endian detection works reliably in user space too.

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/crc32.c