mirror of git://git.musl-libc.org/musl
fix broken bswap_32
This commit is contained in:
parent
0729fd9fd9
commit
4f4ba4c02f
|
@ -3,5 +3,5 @@
|
||||||
|
|
||||||
uint32_t bswap_32(uint32_t x)
|
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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue