Skip to content

Commit

Permalink
Hoist imports
Browse files Browse the repository at this point in the history
  • Loading branch information
alion02 committed Dec 3, 2024
1 parent ac2d491 commit 051e51c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
8 changes: 0 additions & 8 deletions src/day2.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
use std::{
arch::x86_64::{
_mm256_movemask_epi8, _mm256_shuffle_epi8, _mm_maddubs_epi16, _mm_movemask_epi8,
_mm_shuffle_epi8, _pext_u32,
},
hint::black_box,
};

use super::*;

static LUT: [u8x32; 1 << 21] =
Expand Down
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ pub mod day3;
aoc_lib! { year = 2024 }

use std::{
arch::x86_64::{__m256i, _mm256_madd_epi16, _mm256_maddubs_epi16},
arch::x86_64::{
__m256i, _mm256_madd_epi16, _mm256_maddubs_epi16, _mm256_movemask_epi8,
_mm256_shuffle_epi8, _mm_maddubs_epi16, _mm_movemask_epi8, _pext_u32,
},
fmt::Display,
mem::{transmute, MaybeUninit},
simd::prelude::*,
Expand Down

0 comments on commit 051e51c

Please sign in to comment.