mirror of
https://github.com/Noratrieb/advent-of-code.git
synced 2026-01-17 02:55:01 +01:00
no lines
This commit is contained in:
parent
30af4cb9d1
commit
1115c68992
7 changed files with 93 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue