Skip to content

Commit

Permalink
sink lea
Browse files Browse the repository at this point in the history
  • Loading branch information
alion02 committed Dec 18, 2024
1 parent 545a713 commit 50c721e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/day18.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ unsafe fn inner1(s: &[u8]) -> u32 {
"mov word ptr[{front} + {j} * 2], {next:x}",
"inc {j:l}",
"20:",
"lea {next:e}, [{pos} + 72]",
"bts dword ptr[{map}], {next:e}",
"bts dword ptr[{map} + 9], {pos:e}",
"jc 20f",
"lea {next:e}, [{pos} + 72]",
"mov word ptr[{front} + {j} * 2], {next:x}",
"inc {j:l}",
"20:",
Expand All @@ -111,9 +111,9 @@ unsafe fn inner1(s: &[u8]) -> u32 {
"mov word ptr[{front} + {j} * 2], {next:x}",
"inc {j:l}",
"20:",
"lea {next:e}, [{pos} - 72]",
"bts dword ptr[{map}], {next:e}",
"bts dword ptr[{map} - 9], {pos:e}",
"jc 20f",
"lea {next:e}, [{pos} - 72]",
"mov word ptr[{front} + {j} * 2], {next:x}",
"inc {j:l}",
"20:",
Expand Down

0 comments on commit 50c721e

Please sign in to comment.