Debian Codegraph @

debian/missing-sources/glam-0.23.0/src/bool/sse2/bvec4a.rs

raw symbols SCIP
1 // Generated from vec_mask.rs.tera template. Edit the template, not the generated file.
2
3 #[cfg(not(target_arch = "spirv"))]
4 use corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/;
5 use corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::opsrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/::*;
6
7 #[cfg(target_arch = "x86")]
8 use corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::archrust-analyzer cargo core https://github.com/rust-lang/rust/library/core arch/::x86::*;
9 #[cfg(target_arch = "x86_64")]
10 use corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::archrust-analyzer cargo core https://github.com/rust-lang/rust/library/core arch/::x86_64rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/arch/x86_64/::*;
11
12 union UnionCastrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/UnionCast# {
13 arust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/UnionCast#a.: [u32; 4],
14 vrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/UnionCast#v.: BVec4Arust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/BVec4A#,
15 }
16
17 /// A 4-dimensional SIMD vector mask.
18 ///
19 /// This type is 16 byte aligned and is backed by a SIMD vector. If SIMD is not available
20 /// `BVec4A` will be a type alias for `BVec4`.
21 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, Copyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Copy:)]
22 #[repr(transparent)]
23 pub struct BVec4Arust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/BVec4A#(pub(craterust-analyzer cargo glam 0.23.0 crate/) __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#);
24
25 const MASKrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/MASK.: [u32; 2] = [0, 0xff_ff_ff_ff];
26
27 impl BVec4Arust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/BVec4A# {
28 /// All false.
29 pub const FALSErust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A]FALSE.: Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A] = Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A]::splatrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A]splat().(false);
30
31 /// All true.
32 pub const TRUErust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A]TRUE.: Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A] = Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A]::splatrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A]splat().(true);
33
34 /// Creates a new vector mask.
35 #[inline(always)]
36 pub const fn newrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A]new().(x: bool, y: bool, z: bool, w: bool) -> Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A] {
37 unsafe {
38 UnionCastrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/UnionCast# {
39 arust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/UnionCast#a.: [
40 MASKrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/MASK.[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().x as usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().,
41 MASKrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/MASK.[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().y as usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().,
42 MASKrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/MASK.[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().z as usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().,
43 MASKrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/MASK.[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().w as usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().,
44 ],
45 }
46 .vrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/UnionCast#v.
47 }
48 }
49
50 /// Creates a vector with all elements set to `v`.
51 #[inline]
52 pub const fn splatrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A]splat().(v: bool) -> Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A] {
53 Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A]::newrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A]new().(v, v, v, v)
54 }
55
56 /// Returns a bitmask with the lowest 4 bits set from the elements of `self`.
57 ///
58 /// A true element results in a `1` bit and a false element in a `0` bit. Element `x` goes
59 /// into the first lowest bit, element `y` into the second, etc.
60 #[inline]
61 pub fn bitmaskrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A]bitmask().(self) -> u32 {
62 unsafe { _mm_movemask_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_movemask_ps().(self.0rust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/BVec4A#0.) as u32 }
63 }
64
65 /// Returns true if any of the elements are true, false otherwise.
66 #[inline]
67 pub fn anyrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A]any().(self) -> bool {
68 self.bitmaskrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A]bitmask().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialEq<Self>`]ne().0
69 }
70
71 /// Returns true if all the elements are true, false otherwise.
72 #[inline]
73 pub fn allrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A]all().(self) -> bool {
74 self.bitmaskrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A]bitmask().() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialEq<Self>`]eq().0xf
75 }
76
77 #[inline]
78 fn into_bool_arrayrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A]into_bool_array().(self) -> [bool; 4] {
79 let bitmask = self.bitmaskrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A]bitmask().();
80 [
81 (bitmask rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand().&rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand().1) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialEq<Self>`]ne().0,
82 (bitmask rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand().&rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand().2) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialEq<Self>`]ne().0,
83 (bitmask rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand().&rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand().4) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialEq<Self>`]ne().0,
84 (bitmask rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand().&rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand().8) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialEq<Self>`]ne().0,
85 ]
86 }
87
88 #[inline]
89 fn into_u32_arrayrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A]into_u32_array().(self) -> [u32; 4] {
90 let bitmask = self.bitmaskrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A]bitmask().();
91 [
92 MASKrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/MASK.[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().(bitmask rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand().&rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand().1) as usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().,
93 MASKrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/MASK.[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().((bitmask rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shr<i32>`]shr().>>rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shr<i32>`]shr(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shr<i32>`]shr().1) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand().&rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand().1) as usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().,
94 MASKrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/MASK.[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().((bitmask rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shr<i32>`]shr().>>rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shr<i32>`]shr(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shr<i32>`]shr().2) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand().&rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand().1) as usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().,
95 MASKrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/MASK.[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().((bitmask rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shr<i32>`]shr().>>rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shr<i32>`]shr(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shr<i32>`]shr().3) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand().&rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitAnd<Self>`]bitand().1) as usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().,
96 ]
97 }
98 }
99
100 impl Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default# for BVec4Arust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/BVec4A# {
101 #[inline]
102 fn defaultrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A][Default]default().() -> Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A][Default] {
103 Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A][Default]::FALSErust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A]FALSE.
104 }
105 }
106
107 impl PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq# for BVec4Arust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/BVec4A# {
108 #[inline]
109 fn eqrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A][`PartialEq<Self>`]eq().(&self, rhs: &Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A][`PartialEq<Self>`]) -> bool {
110 self.bitmaskrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A]bitmask().().eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialEq<Self>`]eq().(&rhs.bitmaskrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A]bitmask().())
111 }
112 }
113
114 impl Eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Eq# for BVec4Arust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/BVec4A# {}
115
116 impl corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::hashrust-analyzer cargo core https://github.com/rust-lang/rust/library/core hash/::Hashrust-analyzer cargo core https://github.com/rust-lang/rust/library/core hash/Hash# for BVec4Arust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/BVec4A# {
117 #[inline]
118 fn hashrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A][Hash]hash().<H: corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::hashrust-analyzer cargo core https://github.com/rust-lang/rust/library/core hash/::Hasherrust-analyzer cargo core https://github.com/rust-lang/rust/library/core hash/Hasher#>(&self, state: &mut H) {
119 self.bitmaskrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A]bitmask().().hashrust-analyzer cargo core https://github.com/rust-lang/rust/library/core hash/impls/impl#[u32][Hash]hash().(state);
120 }
121 }
122
123 impl BitAndrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/BitAnd# for BVec4Arust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/BVec4A# {
124 type Outputrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A][`BitAnd<Self>`]Output# = Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A][`BitAnd<Self>`];
125 #[inline]
126 fn bitandrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A][`BitAnd<Self>`]bitand().(self, rhs: Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A][`BitAnd<Self>`]) -> Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A][`BitAnd<Self>`] {
127 Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A][`BitAnd<Self>`](unsafe { _mm_and_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_and_ps().(self.0rust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/BVec4A#0., rhs.0rust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/BVec4A#0.) })
128 }
129 }
130
131 impl BitAndAssignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/BitAndAssign# for BVec4Arust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/BVec4A# {
132 #[inline]
133 fn bitand_assignrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A][`BitAndAssign<Self>`]bitand_assign().(&mut self, rhs: Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A][`BitAndAssign<Self>`]) {
134 *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().self = self.bitandrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A][`BitAnd<Self>`]bitand().(rhs);
135 }
136 }
137
138 impl BitOrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/BitOr# for BVec4Arust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/BVec4A# {
139 type Outputrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A][`BitOr<Self>`]Output# = Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A][`BitOr<Self>`];
140 #[inline]
141 fn bitorrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A][`BitOr<Self>`]bitor().(self, rhs: Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A][`BitOr<Self>`]) -> Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A][`BitOr<Self>`] {
142 Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A][`BitOr<Self>`](unsafe { _mm_or_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_or_ps().(self.0rust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/BVec4A#0., rhs.0rust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/BVec4A#0.) })
143 }
144 }
145
146 impl BitOrAssignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/BitOrAssign# for BVec4Arust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/BVec4A# {
147 #[inline]
148 fn bitor_assignrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A][`BitOrAssign<Self>`]bitor_assign().(&mut self, rhs: Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A][`BitOrAssign<Self>`]) {
149 *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().self = self.bitorrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A][`BitOr<Self>`]bitor().(rhs);
150 }
151 }
152
153 impl BitXorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/BitXor# for BVec4Arust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/BVec4A# {
154 type Outputrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A][`BitXor<Self>`]Output# = Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A][`BitXor<Self>`];
155 #[inline]
156 fn bitxorrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A][`BitXor<Self>`]bitxor().(self, rhs: Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A][`BitXor<Self>`]) -> Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A][`BitXor<Self>`] {
157 Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A][`BitXor<Self>`](unsafe { _mm_xor_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_xor_ps().(self.0rust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/BVec4A#0., rhs.0rust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/BVec4A#0.) })
158 }
159 }
160
161 impl BitXorAssignrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/BitXorAssign# for BVec4Arust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/BVec4A# {
162 #[inline]
163 fn bitxor_assignrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A][`BitXorAssign<Self>`]bitxor_assign().(&mut self, rhs: Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A][`BitXorAssign<Self>`]) {
164 *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&mut T`][Deref]deref().self = self.bitxorrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A][`BitXor<Self>`]bitxor().(rhs);
165 }
166 }
167
168 impl Notrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/Not# for BVec4Arust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/BVec4A# {
169 type Outputrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A][Not]Output# = Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A][Not];
170 #[inline]
171 fn notrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A][Not]not().(self) -> Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A][Not] {
172 Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A][Not](unsafe { _mm_andnot_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_andnot_ps().(self.0rust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/BVec4A#0., _mm_set_ps1rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_set_ps1().(f32::from_bitsrust-analyzer cargo core https://github.com/rust-lang/rust/library/core f32/impl#[f32]from_bits().(0xff_ff_ff_ff))) })
173 }
174 }
175
176 impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<BVec4Arust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/BVec4A#> for __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128# {
177 #[inline]
178 fn fromrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[__m128][`From<BVec4A>`]from().(t: BVec4Arust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/BVec4A#) -> Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[__m128][`From<BVec4A>`] {
179 t.0rust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/BVec4A#0.
180 }
181 }
182
183 #[cfg(not(target_arch = "spirv"))]
184 impl fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/::Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Debug# for BVec4Arust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/BVec4A# {
185 fn fmtrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A][Debug]fmt().(&self, f: &mut fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/::Formatterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Formatter#<'_>) -> fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/::Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Result# {
186 let arr = self.into_u32_arrayrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A]into_u32_array().();
187 writerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/write!!(
188 f,
189 "{}({:#x}, {:#x}, {:#x}, {:#x})",
190 stringifyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/stringify!!(BVec4A),
191 arr[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().0]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().,
192 arr[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().1]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().,
193 arr[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().2]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().,
194 arr[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().3]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().
195 )
196 }
197 }
198
199 #[cfg(not(target_arch = "spirv"))]
200 impl fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/::Displayrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Display# for BVec4Arust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/BVec4A# {
201 fn fmtrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A][Display]fmt().(&self, f: &mut fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/::Formatterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Formatter#<'_>) -> fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/::Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Result# {
202 let arr = self.into_bool_arrayrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A]into_bool_array().();
203 writerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/write!!(f, "[{}, {}, {}, {}]", arr[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().0]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index()., arr[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().1]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index()., arr[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().2]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index()., arr[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().3]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().)
204 }
205 }
206
207 impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<BVec4Arust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/BVec4A#> for [bool; 4] {
208 #[inline]
209 fn fromrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[`[bool; 4]`][`From<BVec4A>`]from().(mask: BVec4Arust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/BVec4A#) -> Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[`[bool; 4]`][`From<BVec4A>`] {
210 mask.into_bool_arrayrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A]into_bool_array().()
211 }
212 }
213
214 impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<BVec4Arust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/BVec4A#> for [u32; 4] {
215 #[inline]
216 fn fromrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[`[u32; 4]`][`From<BVec4A>`]from().(mask: BVec4Arust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/BVec4A#) -> Selfrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[`[u32; 4]`][`From<BVec4A>`] {
217 mask.into_u32_arrayrust-analyzer cargo glam 0.23.0 bool/sse2/bvec4a/impl#[BVec4A]into_u32_array().()
218 }
219 }