This commit is contained in:
nora 2023-12-02 20:43:52 +01:00
parent 30af4cb9d1
commit 1115c68992
7 changed files with 93 additions and 4 deletions

View file

@ -2,6 +2,7 @@ use std::mem::MaybeUninit;
mod branchless;
mod naive;
mod no_lines;
mod zero_alloc;
fn main() {
@ -22,6 +23,7 @@ fn main() {
"naive" => naive::part2(&input),
"zero_alloc" => zero_alloc::part2(&input),
"branchless" => unsafe { branchless::part2(&input) },
"no_lines" => unsafe { no_lines::part2(&input) },
_ => {
eprintln!("error: invalid mode, must be part1,naive,zero_alloc,branchless");
std::process::exit(1);