mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
run cargo fmt
This commit is contained in:
parent
8b7acb5c93
commit
bc492fa22b
2 changed files with 16 additions and 2 deletions
|
@ -665,7 +665,8 @@ impl<'a> WasmBackend<'a> {
|
||||||
bytes[11] = 0x80 | (len as u8);
|
bytes[11] = 0x80 | (len as u8);
|
||||||
|
|
||||||
// Transform into two integers, to minimise number of instructions
|
// Transform into two integers, to minimise number of instructions
|
||||||
let bytes_split: &([u8; 8], [u8; 4]) = unsafe { std::mem::transmute(&bytes) };
|
let bytes_split: &([u8; 8], [u8; 4]) =
|
||||||
|
unsafe { std::mem::transmute(&bytes) };
|
||||||
let int64 = i64::from_le_bytes(bytes_split.0);
|
let int64 = i64::from_le_bytes(bytes_split.0);
|
||||||
let int32 = i32::from_le_bytes(bytes_split.1);
|
let int32 = i32::from_le_bytes(bytes_split.1);
|
||||||
|
|
||||||
|
|
|
@ -311,7 +311,20 @@ fn small_str_zeroed_literal() {
|
||||||
functionWithReusedSpace True
|
functionWithReusedSpace True
|
||||||
"#
|
"#
|
||||||
),
|
),
|
||||||
[0x4a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0b1000_0001],
|
[
|
||||||
|
0x4a,
|
||||||
|
0x00,
|
||||||
|
0x00,
|
||||||
|
0x00,
|
||||||
|
0x00,
|
||||||
|
0x00,
|
||||||
|
0x00,
|
||||||
|
0x00,
|
||||||
|
0x00,
|
||||||
|
0x00,
|
||||||
|
0x00,
|
||||||
|
0b1000_0001
|
||||||
|
],
|
||||||
[u8; 12]
|
[u8; 12]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue