From: Rich Felker Date: Tue, 12 Apr 2011 16:18:11 +0000 (-0400) Subject: fix broken bswap_32 X-Git-Tag: v0.7.8~9 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4f4ba4c02f6e670d679b2ffba2645d709ddf4dd9;p=oweals%2Fmusl.git fix broken bswap_32 --- diff --git a/src/misc/bswap_32.c b/src/misc/bswap_32.c index a2418ca9..f26d411f 100644 --- a/src/misc/bswap_32.c +++ b/src/misc/bswap_32.c @@ -3,5 +3,5 @@ uint32_t bswap_32(uint32_t x) { - return x>>24 | x>>16&0xff00 | x<<16&0xff0000 | x<<24; + return x>>24 | x>>8&0xff00 | x<<8&0xff0000 | x<<24; }