Skip to content

Commit

Permalink
Bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
awxkee committed May 28, 2024
1 parent 3fd2220 commit 93d12fa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/avx2_utils.rs
Original file line number Diff line number Diff line change
@@ -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)]
Expand Down
4 changes: 2 additions & 2 deletions src/linear_to_image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ fn linear_to_gamma_channels<const CHANNELS_CONFIGURATION: u8, const USE_ALPHA: b

let channels = image_configuration.get_channels_count();

#[cfg(target_arch = "x86_64")]
#[cfg(any(target_arch = "x86_64", target_arch = "x86"))]
let mut _has_sse = false;

#[cfg(target_arch = "x86_64")]
#[cfg(any(target_arch = "x86_64", target_arch = "x86"))]
if is_x86_feature_detected!("sse4.1") {
_has_sse = true;
}
Expand Down
4 changes: 3 additions & 1 deletion src/x86_64_simd_support.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
* // license that can be found in the LICENSE file.
*/

#[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)]
Expand Down

0 comments on commit 93d12fa

Please sign in to comment.