mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-15 23:54:07 +00:00
Fix runtime.bswap_16
This commit is contained in:
@@ -3,7 +3,7 @@ package runtime
|
||||
import "core:os"
|
||||
|
||||
bswap_16 :: proc "none" (x: u16) -> u16 {
|
||||
return x>>8 | x<<16;
|
||||
return x>>8 | x<<8;
|
||||
}
|
||||
|
||||
bswap_32 :: proc "none" (x: u32) -> u32 {
|
||||
|
||||
Reference in New Issue
Block a user