projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0729fd9
)
fix broken bswap_32
author
Rich Felker
<dalias@aerifal.cx>
Tue, 12 Apr 2011 16:18:11 +0000
(12:18 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Tue, 12 Apr 2011 16:18:11 +0000
(12:18 -0400)
src/misc/bswap_32.c
patch
|
blob
|
history
diff --git
a/src/misc/bswap_32.c
b/src/misc/bswap_32.c
index a2418ca9ca6873bac452eff8b3d9675fcb823bba..f26d411fe145dcc57c266bcd6b2f50b4e060efeb 100644
(file)
--- 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;
}