musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011年04月12日 12:18:11 -0400
committerRich Felker <dalias@aerifal.cx>2011年04月12日 12:18:11 -0400
commit4f4ba4c02f6e670d679b2ffba2645d709ddf4dd9 (patch)
tree865ba0f9f8894ace6673834f30db993c325106b9
parent0729fd9fd94bf39c49741b61641c68411ccc2cbe (diff)
downloadmusl-4f4ba4c02f6e670d679b2ffba2645d709ddf4dd9.tar.gz
fix broken bswap_32
Diffstat
-rw-r--r--src/misc/bswap_32.c 2
1 files changed, 1 insertions, 1 deletions
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;
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月07日 07:12:59 +0000

AltStyle によって変換されたページ (->オリジナル) /