diff --git a/Cargo.toml b/Cargo.toml index aa677dfe..828b357e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "euclid" -version = "0.16.2" +version = "0.16.3" authors = ["The Servo Project Developers"] description = "Geometry primitives" documentation = "https://docs.rs/euclid/" diff --git a/src/lib.rs b/src/lib.rs index 6149bac2..7bf8b09a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -7,7 +7,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#![cfg_attr(feature = "unstable", feature(asm, repr_simd, test, fn_must_use))] +#![cfg_attr(feature = "unstable", feature(asm, cfg_target_feature, repr_simd, test, fn_must_use))] //! A collection of strongly typed math tools for computer graphics with an inclination //! towards 2d graphics and layout. diff --git a/src/side_offsets.rs b/src/side_offsets.rs index 259b2297..0e099e10 100644 --- a/src/side_offsets.rs +++ b/src/side_offsets.rs @@ -202,13 +202,13 @@ impl SideOffsets2DSimdI32 { } } - #[cfg(not(target_arch = "x86_64"))] + #[cfg(not(target_feature = "sse4.1"))] #[inline] pub fn is_zero(&self) -> bool { self.top == 0 && self.right == 0 && self.bottom == 0 && self.left == 0 } - #[cfg(target_arch = "x86_64")] + #[cfg(target_feature = "sse4.1")] #[inline] pub fn is_zero(&self) -> bool { let is_zero: bool;