mirror of
https://github.com/Cykooz/fast_image_resize.git
synced 2026-10-08 01:11:09 +00:00
Fixed compile errors on non-x86 architectures.
This commit is contained in:
@@ -234,8 +234,11 @@ fn upscale_test<P: PixelExt>(resize_alg: ResizeAlg, cpu_extensions: CpuExtension
|
||||
|
||||
let ext_name = match cpu_extensions {
|
||||
CpuExtensions::None => "native",
|
||||
#[cfg(target_arch = "x86_64")]
|
||||
CpuExtensions::Sse2 => "sse2",
|
||||
#[cfg(target_arch = "x86_64")]
|
||||
CpuExtensions::Sse4_1 => "sse41",
|
||||
#[cfg(target_arch = "x86_64")]
|
||||
CpuExtensions::Avx2 => "avx2",
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user