Fixed compile error in float4 lib, and updated to latest simd crate.

This commit is contained in:
Nathan Vegdahl 2018-03-04 13:32:31 -08:00
parent c990672dfe
commit bbf832a3d8
3 changed files with 7 additions and 7 deletions

6
Cargo.lock generated
View File

@ -63,7 +63,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
name = "float4" name = "float4"
version = "0.1.0" version = "0.1.0"
dependencies = [ 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]] [[package]]
@ -196,7 +196,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]] [[package]]
name = "simd" name = "simd"
version = "0.2.0" version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]] [[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 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 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 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 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 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" "checksum time 0.1.37 (registry+https://github.com/rust-lang/crates.io-index)" = "ffd7ccbf969a892bf83f1e441126968a07a3941c24ff522a26af9f9f4585d1a3"

View File

@ -13,4 +13,4 @@ simd_perf = ["simd"]
[dependencies] [dependencies]
# Crates.io dependencies # Crates.io dependencies
simd = { version = "0.2.0", optional = true } simd = { version = "0.2.1", optional = true }

View File

@ -263,7 +263,7 @@ impl Float4 {
); );
#[cfg(feature = "simd_perf")] #[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"))] #[cfg(not(feature = "simd_perf"))]
unsafe { unsafe {
@ -304,7 +304,7 @@ impl Float4 {
); );
#[cfg(feature = "simd_perf")] #[cfg(feature = "simd_perf")]
{ {
self.data.extract(n) self.data.extract(n as u32)
} }
#[cfg(not(feature = "simd_perf"))] #[cfg(not(feature = "simd_perf"))]
unsafe { *self.data.get_unchecked(n) } unsafe { *self.data.get_unchecked(n) }
@ -569,7 +569,7 @@ impl Bool4 {
); );
#[cfg(feature = "simd_perf")] #[cfg(feature = "simd_perf")]
{ {
self.data.extract(n) self.data.extract(n as u32)
} }
#[cfg(not(feature = "simd_perf"))] #[cfg(not(feature = "simd_perf"))]
{ {