Skip to content

Commit

Permalink
Refactor, Added SSE for RGBA -> XYZa
Browse files Browse the repository at this point in the history
  • Loading branch information
awxkee committed Jun 6, 2024
1 parent 02390c6 commit 14e7971
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/sse/mod.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,35 @@
#[cfg(any(target_arch = "x86_64", target_arch = "x86"))]
mod sse_image_to_linear_u8;
#[cfg(any(target_arch = "x86_64", target_arch = "x86"))]
mod sse_linear_to_image;
#[cfg(any(target_arch = "x86_64", target_arch = "x86"))]
mod sse_math;
#[cfg(any(target_arch = "x86_64", target_arch = "x86"))]
mod sse_to_linear;
#[cfg(any(target_arch = "x86_64", target_arch = "x86"))]
mod sse_to_xyz_lab;
#[cfg(any(target_arch = "x86_64", target_arch = "x86"))]
mod sse_gamma_curves;
#[cfg(any(target_arch = "x86_64", target_arch = "x86"))]
mod sse_support;
#[cfg(any(target_arch = "x86_64", target_arch = "x86"))]
mod sse_from_xyz_lab;
#[cfg(any(target_arch = "x86_64", target_arch = "x86"))]
mod sse_to_xyza_laba;

#[cfg(any(target_arch = "x86_64", target_arch = "x86"))]
pub use sse_image_to_linear_u8::*;
#[cfg(any(target_arch = "x86_64", target_arch = "x86"))]
pub use sse_linear_to_image::*;
#[cfg(any(target_arch = "x86_64", target_arch = "x86"))]
pub use sse_math::*;
#[cfg(any(target_arch = "x86_64", target_arch = "x86"))]
pub use sse_to_xyz_lab::*;
#[cfg(any(target_arch = "x86_64", target_arch = "x86"))]
pub use sse_gamma_curves::*;
#[cfg(any(target_arch = "x86_64", target_arch = "x86"))]
pub use sse_support::*;
#[cfg(any(target_arch = "x86_64", target_arch = "x86"))]
pub use sse_to_linear::*;
#[cfg(any(target_arch = "x86_64", target_arch = "x86"))]
pub use sse_to_xyza_laba::*;
1 change: 1 addition & 0 deletions src/sse/sse_support.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
use std::arch::x86::*;
#[cfg(target_arch = "x86_64")]
use std::arch::x86_64::*;
#[cfg(any(target_arch = "x86_64", target_arch = "x86"))]
use crate::x86_64_simd_support::shuffle;

#[cfg(any(target_arch = "x86_64", target_arch = "x86"))]
Expand Down

0 comments on commit 14e7971

Please sign in to comment.