From 5849a2d330bff9322b0679da306e0cd7f5d7f0df Mon Sep 17 00:00:00 2001 From: Gerd Zellweger Date: Mon, 4 Nov 2019 17:20:33 -0800 Subject: [PATCH] Replace simd with packed_simd The simd crate no longer builds, as of Rust 1.33 nightly, due to the removal of compiler features that it depends on. packed_simd is the recommended replacement. --- Cargo.toml | 2 +- src/arch/mod.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 769a880..e37cbeb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ optional = true version = "1.0.0" [target.'cfg(unix)'.dev-dependencies] -simd = "0.1" +packed_simd = "0.3.3" [features] default = ["alloc", "valgrind"] diff --git a/src/arch/mod.rs b/src/arch/mod.rs index 1ed3aee..7aa16e2 100644 --- a/src/arch/mod.rs +++ b/src/arch/mod.rs @@ -18,7 +18,7 @@ mod imp; #[cfg(test)] mod tests { extern crate test; - extern crate simd; + extern crate packed_simd; use arch::{self, StackPointer}; use ::OsStack; @@ -48,12 +48,12 @@ mod tests { fn context_simd() { unsafe extern "C" fn permuter(arg: usize, stack_ptr: StackPointer) -> ! { // This will crash if the stack is not aligned properly. - let x = simd::i32x4::splat(arg as i32); + let x = packed_simd::i32x4::splat(arg as i32); let y = x * x; println!("simd result: {:?}", y); let (_, stack_ptr) = arch::swap(0, stack_ptr, None); // And try again after a context switch. - let x = simd::i32x4::splat(arg as i32); + let x = packed_simd::i32x4::splat(arg as i32); let y = x * x; println!("simd result: {:?}", y); arch::swap(0, stack_ptr, None);