diff --git a/Cargo.lock b/Cargo.lock index 07be021..c04f40c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -63,7 +63,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" name = "float4" version = "0.1.0" dependencies = [ - "simd 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", + "simd 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -196,7 +196,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "simd" -version = "0.2.0" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] @@ -280,7 +280,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" "checksum redox_syscall 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)" = "3041aeb6000db123d2c9c751433f526e1f404b23213bd733167ab770c3989b4d" "checksum rustc-serialize 0.3.24 (registry+https://github.com/rust-lang/crates.io-index)" = "dcf128d1287d2ea9d80910b5f1120d0b8eede3fbf1abe91c40d39ea7d51e6fda" "checksum scoped_threadpool 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)" = "3ef399c8893e8cb7aa9696e895427fab3a6bf265977bb96e126f24ddd2cda85a" -"checksum simd 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "7a94d14a2ae1f1f110937de5fb69e494372560181c7e1739a097fcc2cee37ba0" +"checksum simd 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "3dd0805c7363ab51a829a1511ad24b6ed0349feaa756c4bc2f977f9f496e6673" "checksum strsim 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b4d15c810519a91cf877e7e36e63fe068815c678181439f2f29e2562147c3694" "checksum term_size 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e2b6b55df3198cc93372e85dd2ed817f0e38ce8cc0f22eb32391bfad9c4bf209" "checksum time 0.1.37 (registry+https://github.com/rust-lang/crates.io-index)" = "ffd7ccbf969a892bf83f1e441126968a07a3941c24ff522a26af9f9f4585d1a3" diff --git a/sub_crates/float4/Cargo.toml b/sub_crates/float4/Cargo.toml index 38f1264..e2efc1c 100644 --- a/sub_crates/float4/Cargo.toml +++ b/sub_crates/float4/Cargo.toml @@ -13,4 +13,4 @@ simd_perf = ["simd"] [dependencies] # Crates.io dependencies -simd = { version = "0.2.0", optional = true } \ No newline at end of file +simd = { version = "0.2.1", optional = true } \ No newline at end of file diff --git a/sub_crates/float4/src/lib.rs b/sub_crates/float4/src/lib.rs index 35b1df0..8358d82 100644 --- a/sub_crates/float4/src/lib.rs +++ b/sub_crates/float4/src/lib.rs @@ -263,7 +263,7 @@ impl Float4 { ); #[cfg(feature = "simd_perf")] { - self.data = self.data.replace(n, v); + self.data = self.data.replace(n as u32, v); } #[cfg(not(feature = "simd_perf"))] unsafe { @@ -304,7 +304,7 @@ impl Float4 { ); #[cfg(feature = "simd_perf")] { - self.data.extract(n) + self.data.extract(n as u32) } #[cfg(not(feature = "simd_perf"))] unsafe { *self.data.get_unchecked(n) } @@ -569,7 +569,7 @@ impl Bool4 { ); #[cfg(feature = "simd_perf")] { - self.data.extract(n) + self.data.extract(n as u32) } #[cfg(not(feature = "simd_perf"))] {