From 93d12fafa6b4af16489bfb85b4ea8a454605c70c Mon Sep 17 00:00:00 2001 From: awxkee Date: Wed, 29 May 2024 00:26:04 +0100 Subject: [PATCH] Bugfixes --- src/avx2_utils.rs | 4 +++- src/linear_to_image.rs | 4 ++-- src/x86_64_simd_support.rs | 4 +++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/avx2_utils.rs b/src/avx2_utils.rs index 0642cbc..2a0e80b 100644 --- a/src/avx2_utils.rs +++ b/src/avx2_utils.rs @@ -1,5 +1,7 @@ -#[cfg(any(target_arch = "x86_64", target_arch = "x86"))] +#[cfg(target_arch = "x86_64")] use std::arch::x86_64::*; +#[cfg(target_arch = "x86")] +use std::arch::x86::*; #[cfg(any(target_arch = "x86_64", target_arch = "x86"))] #[inline(always)] diff --git a/src/linear_to_image.rs b/src/linear_to_image.rs index feabe4f..7a10463 100644 --- a/src/linear_to_image.rs +++ b/src/linear_to_image.rs @@ -35,10 +35,10 @@ fn linear_to_gamma_channels