Auto merge of #462 - servo:nightly-fix, r=jdm
Update lexical-core for nightly changes.
This commit is contained in:
commit
66bb7da059
|
@ -1,5 +1,7 @@
|
||||||
# This file is automatically @generated by Cargo.
|
# This file is automatically @generated by Cargo.
|
||||||
# It is not intended for manual editing.
|
# It is not intended for manual editing.
|
||||||
|
version = 3
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "addr2line"
|
name = "addr2line"
|
||||||
version = "0.13.0"
|
version = "0.13.0"
|
||||||
|
@ -140,7 +142,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "46254cf2fdcdf1badb5934448c1bcbe046a56537b3987d96c51a7afc5d03f293"
|
checksum = "46254cf2fdcdf1badb5934448c1bcbe046a56537b3987d96c51a7afc5d03f293"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"addr2line",
|
"addr2line",
|
||||||
"cfg-if",
|
"cfg-if 0.1.10",
|
||||||
"libc 0.2.71",
|
"libc 0.2.71",
|
||||||
"miniz_oxide 0.4.0",
|
"miniz_oxide 0.4.0",
|
||||||
"object",
|
"object",
|
||||||
|
@ -384,6 +386,12 @@ version = "0.1.10"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822"
|
checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "cfg-if"
|
||||||
|
version = "1.0.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cfg_aliases"
|
name = "cfg_aliases"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
|
@ -524,7 +532,7 @@ version = "0.1.6"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "b8d976903543e0c48546a91908f21588a680a8c8f984df9a5d69feccb2b2a211"
|
checksum = "b8d976903543e0c48546a91908f21588a680a8c8f984df9a5d69feccb2b2a211"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cfg-if",
|
"cfg-if 0.1.10",
|
||||||
"wasm-bindgen",
|
"wasm-bindgen",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -629,7 +637,7 @@ version = "0.1.4"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "34ecad23610ad9757664d644e369246edde1803fcb43ed72876565098a5d3828"
|
checksum = "34ecad23610ad9757664d644e369246edde1803fcb43ed72876565098a5d3828"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cfg-if",
|
"cfg-if 0.1.10",
|
||||||
"core-foundation-sys 0.7.0",
|
"core-foundation-sys 0.7.0",
|
||||||
"core-graphics 0.19.2",
|
"core-graphics 0.19.2",
|
||||||
"libc 0.2.71",
|
"libc 0.2.71",
|
||||||
|
@ -651,7 +659,7 @@ version = "1.2.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "ba125de2af0df55319f41944744ad91c71113bf74a4646efff39afe1f6842db1"
|
checksum = "ba125de2af0df55319f41944744ad91c71113bf74a4646efff39afe1f6842db1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cfg-if",
|
"cfg-if 0.1.10",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -682,7 +690,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "058ed274caafc1f60c4997b5fc07bf7dc7cca454af7c6e81edffe5f33f70dace"
|
checksum = "058ed274caafc1f60c4997b5fc07bf7dc7cca454af7c6e81edffe5f33f70dace"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"autocfg",
|
"autocfg",
|
||||||
"cfg-if",
|
"cfg-if 0.1.10",
|
||||||
"crossbeam-utils",
|
"crossbeam-utils",
|
||||||
"lazy_static 1.4.0",
|
"lazy_static 1.4.0",
|
||||||
"maybe-uninit",
|
"maybe-uninit",
|
||||||
|
@ -696,7 +704,7 @@ version = "0.2.3"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "774ba60a54c213d409d5353bda12d49cd68d14e45036a285234c8d6f91f92570"
|
checksum = "774ba60a54c213d409d5353bda12d49cd68d14e45036a285234c8d6f91f92570"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cfg-if",
|
"cfg-if 0.1.10",
|
||||||
"crossbeam-utils",
|
"crossbeam-utils",
|
||||||
"maybe-uninit",
|
"maybe-uninit",
|
||||||
]
|
]
|
||||||
|
@ -708,7 +716,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "c3c7c73a2d1e9fc0886a08b93e98eb643461230d5f1925e4036204d5f2e261a8"
|
checksum = "c3c7c73a2d1e9fc0886a08b93e98eb643461230d5f1925e4036204d5f2e261a8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"autocfg",
|
"autocfg",
|
||||||
"cfg-if",
|
"cfg-if 0.1.10",
|
||||||
"lazy_static 1.4.0",
|
"lazy_static 1.4.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -783,7 +791,7 @@ version = "2.0.2"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "13aea89a5c93364a98e9b37b2fa237effbb694d5cfe01c5b70941f7eb087d5e3"
|
checksum = "13aea89a5c93364a98e9b37b2fa237effbb694d5cfe01c5b70941f7eb087d5e3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cfg-if",
|
"cfg-if 0.1.10",
|
||||||
"dirs-sys",
|
"dirs-sys",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -921,7 +929,7 @@ version = "1.0.16"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "68c90b0fc46cf89d227cc78b40e494ff81287a92dd07631e5af0d06fe3cf885e"
|
checksum = "68c90b0fc46cf89d227cc78b40e494ff81287a92dd07631e5af0d06fe3cf885e"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cfg-if",
|
"cfg-if 0.1.10",
|
||||||
"crc32fast",
|
"crc32fast",
|
||||||
"libc 0.2.71",
|
"libc 0.2.71",
|
||||||
"miniz_oxide 0.4.0",
|
"miniz_oxide 0.4.0",
|
||||||
|
@ -1064,7 +1072,7 @@ version = "0.1.14"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "7abc8dd8451921606d809ba32e95b6111925cd2906060d2dcc29c070220503eb"
|
checksum = "7abc8dd8451921606d809ba32e95b6111925cd2906060d2dcc29c070220503eb"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cfg-if",
|
"cfg-if 0.1.10",
|
||||||
"libc 0.2.71",
|
"libc 0.2.71",
|
||||||
"wasi",
|
"wasi",
|
||||||
"wasm-bindgen",
|
"wasm-bindgen",
|
||||||
|
@ -1509,13 +1517,13 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "lexical-core"
|
name = "lexical-core"
|
||||||
version = "0.7.4"
|
version = "0.7.6"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "db65c6da02e61f55dae90a0ae427b2a5f6b3e8db09f58d10efab23af92592616"
|
checksum = "6607c62aa161d23d17a9072cc5da0be67cdfc89d3afb1e8d9c842bebc2525ffe"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"arrayvec",
|
"arrayvec",
|
||||||
"bitflags",
|
"bitflags",
|
||||||
"cfg-if",
|
"cfg-if 1.0.0",
|
||||||
"ryu",
|
"ryu",
|
||||||
"static_assertions",
|
"static_assertions",
|
||||||
]
|
]
|
||||||
|
@ -1575,7 +1583,7 @@ version = "0.4.8"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "14b6052be84e6b71ab17edffc2eeabf5c2c3ae1fdb464aae35ac50c67a44e1f7"
|
checksum = "14b6052be84e6b71ab17edffc2eeabf5c2c3ae1fdb464aae35ac50c67a44e1f7"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cfg-if",
|
"cfg-if 0.1.10",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -1725,7 +1733,7 @@ version = "0.6.22"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "fce347092656428bc8eaf6201042cb551b8d67855af7374542a92a0fbfcac430"
|
checksum = "fce347092656428bc8eaf6201042cb551b8d67855af7374542a92a0fbfcac430"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cfg-if",
|
"cfg-if 0.1.10",
|
||||||
"fuchsia-zircon",
|
"fuchsia-zircon",
|
||||||
"fuchsia-zircon-sys",
|
"fuchsia-zircon-sys",
|
||||||
"iovec",
|
"iovec",
|
||||||
|
@ -1768,7 +1776,7 @@ version = "0.2.34"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "2ba7c918ac76704fb42afcbbb43891e72731f3dcca3bef2a19786297baf14af7"
|
checksum = "2ba7c918ac76704fb42afcbbb43891e72731f3dcca3bef2a19786297baf14af7"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cfg-if",
|
"cfg-if 0.1.10",
|
||||||
"libc 0.2.71",
|
"libc 0.2.71",
|
||||||
"winapi 0.3.9",
|
"winapi 0.3.9",
|
||||||
]
|
]
|
||||||
|
@ -1790,7 +1798,7 @@ checksum = "6c722bee1037d430d0f8e687bbdbf222f27cc6e4e68d5caf630857bb2b6dbdce"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags",
|
"bitflags",
|
||||||
"cc",
|
"cc",
|
||||||
"cfg-if",
|
"cfg-if 0.1.10",
|
||||||
"libc 0.2.71",
|
"libc 0.2.71",
|
||||||
"void",
|
"void",
|
||||||
]
|
]
|
||||||
|
@ -1971,7 +1979,7 @@ version = "0.6.2"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "b876b1b9e7ac6e1a74a6da34d25c42e17e8862aa409cbbbdcfc8d86c6f3bc62b"
|
checksum = "b876b1b9e7ac6e1a74a6da34d25c42e17e8862aa409cbbbdcfc8d86c6f3bc62b"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cfg-if",
|
"cfg-if 0.1.10",
|
||||||
"cloudabi",
|
"cloudabi",
|
||||||
"libc 0.2.71",
|
"libc 0.2.71",
|
||||||
"redox_syscall",
|
"redox_syscall",
|
||||||
|
@ -1986,7 +1994,7 @@ version = "0.7.2"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "d58c7c768d4ba344e3e8d72518ac13e259d7c7ade24167003b8488e10b6740a3"
|
checksum = "d58c7c768d4ba344e3e8d72518ac13e259d7c7ade24167003b8488e10b6740a3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cfg-if",
|
"cfg-if 0.1.10",
|
||||||
"cloudabi",
|
"cloudabi",
|
||||||
"libc 0.2.71",
|
"libc 0.2.71",
|
||||||
"redox_syscall",
|
"redox_syscall",
|
||||||
|
@ -2690,7 +2698,7 @@ version = "0.33.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "c2e1deb61ff274d29fb985017d4611d4004b113676eaa9c06754194caf82094e"
|
checksum = "c2e1deb61ff274d29fb985017d4611d4004b113676eaa9c06754194caf82094e"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cfg-if",
|
"cfg-if 0.1.10",
|
||||||
"libc 0.2.71",
|
"libc 0.2.71",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -3231,7 +3239,7 @@ version = "0.2.64"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "6a634620115e4a229108b71bde263bb4220c483b3f07f5ba514ee8d15064c4c2"
|
checksum = "6a634620115e4a229108b71bde263bb4220c483b3f07f5ba514ee8d15064c4c2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cfg-if",
|
"cfg-if 0.1.10",
|
||||||
"wasm-bindgen-macro",
|
"wasm-bindgen-macro",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -3256,7 +3264,7 @@ version = "0.4.14"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "dba48d66049d2a6cc8488702e7259ab7afc9043ad0dc5448444f46f2a453b362"
|
checksum = "dba48d66049d2a6cc8488702e7259ab7afc9043ad0dc5448444f46f2a453b362"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cfg-if",
|
"cfg-if 0.1.10",
|
||||||
"js-sys",
|
"js-sys",
|
||||||
"wasm-bindgen",
|
"wasm-bindgen",
|
||||||
"web-sys",
|
"web-sys",
|
||||||
|
|
|
@ -18,6 +18,36 @@ use std::ops::{Add, BitAnd, BitOr, Div, Index, IndexMut, Mul, Not, Shr, Sub};
|
||||||
mod swizzle_f32x4;
|
mod swizzle_f32x4;
|
||||||
mod swizzle_i32x4;
|
mod swizzle_i32x4;
|
||||||
|
|
||||||
|
macro_rules! simd_shuffle2 {
|
||||||
|
($x:expr, $y:expr, <$(const $imm:ident : $ty:ty),+> $idx:expr $(,)?) => {{
|
||||||
|
struct ConstParam<$(const $imm: $ty),+>;
|
||||||
|
impl<$(const $imm: $ty),+> ConstParam<$($imm),+> {
|
||||||
|
const IDX: [u32; 2] = $idx;
|
||||||
|
}
|
||||||
|
|
||||||
|
simd_shuffle2($x, $y, ConstParam::<$($imm),+>::IDX)
|
||||||
|
}};
|
||||||
|
($x:expr, $y:expr, $idx:expr $(,)?) => {{
|
||||||
|
const IDX: [u32; 2] = $idx;
|
||||||
|
simd_shuffle2($x, $y, IDX)
|
||||||
|
}};
|
||||||
|
}
|
||||||
|
|
||||||
|
macro_rules! simd_shuffle4 {
|
||||||
|
($x:expr, $y:expr, <$(const $imm:ident : $ty:ty),+> $idx:expr $(,)?) => {{
|
||||||
|
struct ConstParam<$(const $imm: $ty),+>;
|
||||||
|
impl<$(const $imm: $ty),+> ConstParam<$($imm),+> {
|
||||||
|
const IDX: [u32; 4] = $idx;
|
||||||
|
}
|
||||||
|
|
||||||
|
simd_shuffle4($x, $y, ConstParam::<$($imm),+>::IDX)
|
||||||
|
}};
|
||||||
|
($x:expr, $y:expr, $idx:expr $(,)?) => {{
|
||||||
|
const IDX: [u32; 4] = $idx;
|
||||||
|
simd_shuffle4($x, $y, IDX)
|
||||||
|
}};
|
||||||
|
}
|
||||||
|
|
||||||
// Two 32-bit floats
|
// Two 32-bit floats
|
||||||
|
|
||||||
#[derive(Clone, Copy)]
|
#[derive(Clone, Copy)]
|
||||||
|
@ -122,14 +152,14 @@ impl F32x2 {
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn yx(self) -> F32x2 {
|
pub fn yx(self) -> F32x2 {
|
||||||
unsafe { F32x2(simd_shuffle2(self.0, self.0, [1, 0])) }
|
unsafe { F32x2(simd_shuffle2!(self.0, self.0, [1, 0])) }
|
||||||
}
|
}
|
||||||
|
|
||||||
// Concatenations
|
// Concatenations
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn concat_xy_xy(self, other: F32x2) -> F32x4 {
|
pub fn concat_xy_xy(self, other: F32x2) -> F32x4 {
|
||||||
unsafe { F32x4(simd_shuffle4(self.0, other.0, [0, 1, 2, 3])) }
|
unsafe { F32x4(simd_shuffle4!(self.0, other.0, [0, 1, 2, 3])) }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -287,44 +317,44 @@ impl F32x4 {
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn xy(self) -> F32x2 {
|
pub fn xy(self) -> F32x2 {
|
||||||
unsafe { F32x2(simd_shuffle2(self.0, self.0, [0, 1])) }
|
unsafe { F32x2(simd_shuffle2!(self.0, self.0, [0, 1])) }
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn yx(self) -> F32x2 {
|
pub fn yx(self) -> F32x2 {
|
||||||
unsafe { F32x2(simd_shuffle2(self.0, self.0, [1, 0])) }
|
unsafe { F32x2(simd_shuffle2!(self.0, self.0, [1, 0])) }
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn xw(self) -> F32x2 {
|
pub fn xw(self) -> F32x2 {
|
||||||
unsafe { F32x2(simd_shuffle2(self.0, self.0, [0, 3])) }
|
unsafe { F32x2(simd_shuffle2!(self.0, self.0, [0, 3])) }
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn zy(self) -> F32x2 {
|
pub fn zy(self) -> F32x2 {
|
||||||
unsafe { F32x2(simd_shuffle2(self.0, self.0, [2, 1])) }
|
unsafe { F32x2(simd_shuffle2!(self.0, self.0, [2, 1])) }
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn zw(self) -> F32x2 {
|
pub fn zw(self) -> F32x2 {
|
||||||
unsafe { F32x2(simd_shuffle2(self.0, self.0, [2, 3])) }
|
unsafe { F32x2(simd_shuffle2!(self.0, self.0, [2, 3])) }
|
||||||
}
|
}
|
||||||
|
|
||||||
// Concatenations
|
// Concatenations
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn concat_xy_xy(self, other: F32x4) -> F32x4 {
|
pub fn concat_xy_xy(self, other: F32x4) -> F32x4 {
|
||||||
unsafe { F32x4(simd_shuffle4(self.0, other.0, [0, 1, 2, 3])) }
|
unsafe { F32x4(simd_shuffle4!(self.0, other.0, [0, 1, 2, 3])) }
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn concat_xy_zw(self, other: F32x4) -> F32x4 {
|
pub fn concat_xy_zw(self, other: F32x4) -> F32x4 {
|
||||||
unsafe { F32x4(simd_shuffle4(self.0, other.0, [0, 1, 6, 7])) }
|
unsafe { F32x4(simd_shuffle4!(self.0, other.0, [0, 1, 6, 7])) }
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn concat_zw_zw(self, other: F32x4) -> F32x4 {
|
pub fn concat_zw_zw(self, other: F32x4) -> F32x4 {
|
||||||
unsafe { F32x4(simd_shuffle4(self.0, other.0, [2, 3, 6, 7])) }
|
unsafe { F32x4(simd_shuffle4!(self.0, other.0, [2, 3, 6, 7])) }
|
||||||
}
|
}
|
||||||
|
|
||||||
// Conversions
|
// Conversions
|
||||||
|
@ -461,7 +491,7 @@ impl I32x2 {
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn concat_xy_xy(self, other: I32x2) -> I32x4 {
|
pub fn concat_xy_xy(self, other: I32x2) -> I32x4 {
|
||||||
unsafe { I32x4(simd_shuffle4(self.0, other.0, [0, 1, 2, 3])) }
|
unsafe { I32x4(simd_shuffle4!(self.0, other.0, [0, 1, 2, 3])) }
|
||||||
}
|
}
|
||||||
|
|
||||||
// Conversions
|
// Conversions
|
||||||
|
@ -588,39 +618,39 @@ impl I32x4 {
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn concat_xy_xy(self, other: I32x4) -> I32x4 {
|
pub fn concat_xy_xy(self, other: I32x4) -> I32x4 {
|
||||||
unsafe { I32x4(simd_shuffle4(self.0, other.0, [0, 1, 4, 5])) }
|
unsafe { I32x4(simd_shuffle4!(self.0, other.0, [0, 1, 4, 5])) }
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn concat_zw_zw(self, other: I32x4) -> I32x4 {
|
pub fn concat_zw_zw(self, other: I32x4) -> I32x4 {
|
||||||
unsafe { I32x4(simd_shuffle4(self.0, other.0, [2, 3, 6, 7])) }
|
unsafe { I32x4(simd_shuffle4!(self.0, other.0, [2, 3, 6, 7])) }
|
||||||
}
|
}
|
||||||
|
|
||||||
// Swizzle conversions
|
// Swizzle conversions
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn xy(self) -> I32x2 {
|
pub fn xy(self) -> I32x2 {
|
||||||
unsafe { I32x2(simd_shuffle2(self.0, self.0, [0, 1])) }
|
unsafe { I32x2(simd_shuffle2!(self.0, self.0, [0, 1])) }
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn yx(self) -> I32x2 {
|
pub fn yx(self) -> I32x2 {
|
||||||
unsafe { I32x2(simd_shuffle2(self.0, self.0, [1, 0])) }
|
unsafe { I32x2(simd_shuffle2!(self.0, self.0, [1, 0])) }
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn xw(self) -> I32x2 {
|
pub fn xw(self) -> I32x2 {
|
||||||
unsafe { I32x2(simd_shuffle2(self.0, self.0, [0, 3])) }
|
unsafe { I32x2(simd_shuffle2!(self.0, self.0, [0, 3])) }
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn zy(self) -> I32x2 {
|
pub fn zy(self) -> I32x2 {
|
||||||
unsafe { I32x2(simd_shuffle2(self.0, self.0, [2, 1])) }
|
unsafe { I32x2(simd_shuffle2!(self.0, self.0, [2, 1])) }
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn zw(self) -> I32x2 {
|
pub fn zw(self) -> I32x2 {
|
||||||
unsafe { I32x2(simd_shuffle2(self.0, self.0, [2, 3])) }
|
unsafe { I32x2(simd_shuffle2!(self.0, self.0, [2, 3])) }
|
||||||
}
|
}
|
||||||
|
|
||||||
// Conversions
|
// Conversions
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue