From 051e51c474e4ca29a65ec052d71f72a9342971a0 Mon Sep 17 00:00:00 2001 From: alion02 Date: Tue, 3 Dec 2024 22:53:53 +0100 Subject: [PATCH] Hoist imports --- src/day2.rs | 8 -------- src/lib.rs | 5 ++++- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/src/day2.rs b/src/day2.rs index d00ee4e..c05121e 100644 --- a/src/day2.rs +++ b/src/day2.rs @@ -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] = diff --git a/src/lib.rs b/src/lib.rs index 67db245..795ec64 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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::*,