We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42538e1 commit 86a7f40Copy full SHA for 86a7f40
vlib/os/file_le_be.c.v
@@ -84,7 +84,7 @@ fn swap_bytes_u32(x u32) u32 {
84
85
@[inline]
86
fn swap_bytes_u64(x u64) u64 {
87
- return ((x >> 40) & 0x00000000_0000FF00) | ((x >> 24) & 0x00000000_00FF0000) | ((x >> 8) & 0x00000000_FF000000) | ((x << 8) & 0x000000FF_00000000) | ((x << 24) & 0x0000FF00_00000000) | ((x << 40) & 0x00FF0000_00000000) | ((x << 56) & 0xFF000000_00000000)
+ return ((x >> 56) & 0x00000000_000000FF) | ((x >> 40) & 0x00000000_0000FF00) | ((x >> 24) & 0x00000000_00FF0000) | ((x >> 8) & 0x00000000_FF000000) | ((x << 8) & 0x000000FF_00000000) | ((x << 24) & 0x0000FF00_00000000) | ((x << 40) & 0x00FF0000_00000000) | ((x << 56) & 0xFF000000_00000000)
88
}
89
90
fn swap_bytes[T](input T) T {
0 commit comments