Debian Codegraph @

debian/missing-sources/glam-0.16.0/src/core/sse2/matrix.rs

raw symbols SCIP
1 #[cfg(target_arch = "x86")]
2 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::*;
3 #[cfg(target_arch = "x86_64")]
4 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/::*;
5
6 use corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::MaybeUninitrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/maybe_uninit/MaybeUninit#;
7
8 use craterust-analyzer cargo glam 0.16.0 crate/::{
9 const_m128rust-analyzer cargo glam 0.16.0 macros/const_m128!,
10 corerust-analyzer cargo glam 0.16.0 core/::{
11 storagerust-analyzer cargo glam 0.16.0 core/storage/::{Align16rust-analyzer cargo glam 0.16.0 core/storage/Align16#, Columns2rust-analyzer cargo glam 0.16.0 core/storage/Columns2#, Columns3rust-analyzer cargo glam 0.16.0 core/storage/Columns3#, Columns4rust-analyzer cargo glam 0.16.0 core/storage/Columns4#, XYrust-analyzer cargo glam 0.16.0 core/storage/XY#, XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#},
12 traitsrust-analyzer cargo glam 0.16.0 core/traits/::{
13 matrixrust-analyzer cargo glam 0.16.0 core/traits/matrix/::{
14 FloatMatrix2x2rust-analyzer cargo glam 0.16.0 core/traits/matrix/FloatMatrix2x2#, FloatMatrix3x3rust-analyzer cargo glam 0.16.0 core/traits/matrix/FloatMatrix3x3#, FloatMatrix4x4rust-analyzer cargo glam 0.16.0 core/traits/matrix/FloatMatrix4x4#, Matrixrust-analyzer cargo glam 0.16.0 core/traits/matrix/Matrix#, Matrix2x2rust-analyzer cargo glam 0.16.0 core/traits/matrix/Matrix2x2#, Matrix3x3rust-analyzer cargo glam 0.16.0 core/traits/matrix/Matrix3x3#,
15 Matrix4x4rust-analyzer cargo glam 0.16.0 core/traits/matrix/Matrix4x4#, MatrixConstrust-analyzer cargo glam 0.16.0 core/traits/matrix/MatrixConst#,
16 },
17 projectionrust-analyzer cargo glam 0.16.0 core/traits/projection/::ProjectionMatrixrust-analyzer cargo glam 0.16.0 core/traits/projection/ProjectionMatrix#,
18 vectorrust-analyzer cargo glam 0.16.0 core/traits/vector/::{FloatVector4rust-analyzer cargo glam 0.16.0 core/traits/vector/FloatVector4#, Vectorrust-analyzer cargo glam 0.16.0 core/traits/vector/Vector#, Vector4rust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#, Vector4Construst-analyzer cargo glam 0.16.0 core/traits/vector/Vector4Const#},
19 },
20 },
21 };
22
23 // __m128 as a Matrix2x2
24 impl MatrixConstrust-analyzer cargo glam 0.16.0 core/traits/matrix/MatrixConst# for __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128# {
25 const ZEROrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[__m128][MatrixConst]ZERO.: __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128# = const_m128rust-analyzer cargo glam 0.16.0 macros/const_m128!!([0.0, 0.0, 0.0, 0.0]);
26 const IDENTITYrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[__m128][MatrixConst]IDENTITY.: __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128# = const_m128rust-analyzer cargo glam 0.16.0 macros/const_m128!!([1.0, 0.0, 0.0, 1.0]);
27 }
28
29 impl Matrixrust-analyzer cargo glam 0.16.0 core/traits/matrix/Matrix#<f32> for __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128# {}
30
31 impl Matrix2x2rust-analyzer cargo glam 0.16.0 core/traits/matrix/Matrix2x2#<f32, XYrust-analyzer cargo glam 0.16.0 core/storage/XY#<f32>> for __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128# {
32 #[inline(always)]
33 fn newrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[__m128][`Matrix2x2<f32, XY<f32>>`]new().(m00: f32, m01: f32, m10: f32, m11: f32) -> Selfrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[__m128][`Matrix2x2<f32, XY<f32>>`] {
34 unsafe { _mm_set_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_set_ps().(m11, m10, m01, m00) }
35 }
36
37 #[inline(always)]
38 fn from_colsrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[__m128][`Matrix2x2<f32, XY<f32>>`]from_cols().(x_axis: XYrust-analyzer cargo glam 0.16.0 core/storage/XY#<f32>, y_axis: XYrust-analyzer cargo glam 0.16.0 core/storage/XY#<f32>) -> Selfrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[__m128][`Matrix2x2<f32, XY<f32>>`] {
39 Matrix2x2rust-analyzer cargo glam 0.16.0 core/traits/matrix/Matrix2x2#::newrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[__m128][`Matrix2x2<f32, XY<f32>>`]new().(x_axis.xrust-analyzer cargo glam 0.16.0 core/storage/XY#x., x_axis.yrust-analyzer cargo glam 0.16.0 core/storage/XY#y., y_axis.xrust-analyzer cargo glam 0.16.0 core/storage/XY#x., y_axis.yrust-analyzer cargo glam 0.16.0 core/storage/XY#y.)
40 }
41
42 #[inline(always)]
43 fn x_axisrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[__m128][`Matrix2x2<f32, XY<f32>>`]x_axis().(&self) -> &XYrust-analyzer cargo glam 0.16.0 core/storage/XY#<f32> {
44 unsafe { &(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/Deref#deref().(self as *const Selfrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[__m128][`Matrix2x2<f32, XY<f32>>`] as *const Columns2rust-analyzer cargo glam 0.16.0 core/storage/Columns2#<XYrust-analyzer cargo glam 0.16.0 core/storage/XY#<f32>>)).x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns2#x_axis. }
45 }
46
47 #[inline(always)]
48 fn y_axisrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[__m128][`Matrix2x2<f32, XY<f32>>`]y_axis().(&self) -> &XYrust-analyzer cargo glam 0.16.0 core/storage/XY#<f32> {
49 unsafe { &(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/Deref#deref().(self as *const Selfrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[__m128][`Matrix2x2<f32, XY<f32>>`] as *const Columns2rust-analyzer cargo glam 0.16.0 core/storage/Columns2#<XYrust-analyzer cargo glam 0.16.0 core/storage/XY#<f32>>)).y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns2#y_axis. }
50 }
51
52 #[inline]
53 fn determinantrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[__m128][`Matrix2x2<f32, XY<f32>>`]determinant().(&self) -> f32 {
54 // self.x_axis.x * self.y_axis.y - self.x_axis.y * self.y_axis.x
55 unsafe {
56 let abcd = *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self;
57 let dcba = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(abcd, abcd, 0b00_01_10_11);
58 let prod = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(abcd, dcba);
59 let det = _mm_sub_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_sub_ps().(prod, _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(prod, prod, 0b01_01_01_01));
60 _mm_cvtss_f32rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_cvtss_f32().(det)
61 }
62 }
63
64 #[inline(always)]
65 fn transposerust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[__m128][`Matrix2x2<f32, XY<f32>>`]transpose().(&self) -> Selfrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[__m128][`Matrix2x2<f32, XY<f32>>`] {
66 unsafe { _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self, *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self, 0b11_01_10_00) }
67 }
68
69 #[inline]
70 fn mul_vectorrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[__m128][`Matrix2x2<f32, XY<f32>>`]mul_vector().(&self, other: XYrust-analyzer cargo glam 0.16.0 core/storage/XY#<f32>) -> XYrust-analyzer cargo glam 0.16.0 core/storage/XY#<f32> {
71 unsafe {
72 let abcd = *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self;
73 let xxyy = _mm_set_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_set_ps().(other.yrust-analyzer cargo glam 0.16.0 core/storage/XY#y., other.yrust-analyzer cargo glam 0.16.0 core/storage/XY#y., other.xrust-analyzer cargo glam 0.16.0 core/storage/XY#x., other.xrust-analyzer cargo glam 0.16.0 core/storage/XY#x.);
74 let axbxcydy = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(abcd, xxyy);
75 let cydyaxbx = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(axbxcydy, axbxcydy, 0b01_00_11_10);
76 let result = _mm_add_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_add_ps().(axbxcydy, cydyaxbx);
77 let mut out: MaybeUninitrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/maybe_uninit/MaybeUninit#<Align16rust-analyzer cargo glam 0.16.0 core/storage/Align16#<XYrust-analyzer cargo glam 0.16.0 core/storage/XY#<f32>>> = MaybeUninitrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/maybe_uninit/MaybeUninit#::uninitrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/maybe_uninit/impl#[`MaybeUninit<T>`]uninit().();
78 _mm_store_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_store_ps().(out.as_mut_ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/maybe_uninit/impl#[`MaybeUninit<T>`]as_mut_ptr().() as *mut f32, result);
79 out.assume_initrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/maybe_uninit/impl#[`MaybeUninit<T>`]assume_init().().0rust-analyzer cargo glam 0.16.0 core/storage/Align16#0.
80 }
81 }
82
83 #[inline]
84 fn mul_matrixrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[__m128][`Matrix2x2<f32, XY<f32>>`]mul_matrix().(&self, other: &Selfrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[__m128][`Matrix2x2<f32, XY<f32>>`]) -> Selfrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[__m128][`Matrix2x2<f32, XY<f32>>`] {
85 unsafe {
86 let abcd = *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self;
87 let other = *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().other;
88 let xxyy0 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(other, other, 0b01_01_00_00);
89 let xxyy1 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(other, other, 0b11_11_10_10);
90 let axbxcydy0 = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(abcd, xxyy0);
91 let axbxcydy1 = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(abcd, xxyy1);
92 let cydyaxbx0 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(axbxcydy0, axbxcydy0, 0b01_00_11_10);
93 let cydyaxbx1 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(axbxcydy1, axbxcydy1, 0b01_00_11_10);
94 let result0 = _mm_add_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_add_ps().(axbxcydy0, cydyaxbx0);
95 let result1 = _mm_add_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_add_ps().(axbxcydy1, cydyaxbx1);
96 _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(result0, result1, 0b01_00_01_00)
97 }
98 }
99
100 #[inline]
101 fn mul_scalarrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[__m128][`Matrix2x2<f32, XY<f32>>`]mul_scalar().(&self, other: f32) -> Selfrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[__m128][`Matrix2x2<f32, XY<f32>>`] {
102 unsafe { _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self, _mm_set_ps1rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_set_ps1().(other)) }
103 }
104
105 #[inline]
106 fn add_matrixrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[__m128][`Matrix2x2<f32, XY<f32>>`]add_matrix().(&self, other: &Selfrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[__m128][`Matrix2x2<f32, XY<f32>>`]) -> Selfrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[__m128][`Matrix2x2<f32, XY<f32>>`] {
107 unsafe { _mm_add_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_add_ps().(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self, *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().other) }
108 }
109
110 #[inline]
111 fn sub_matrixrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[__m128][`Matrix2x2<f32, XY<f32>>`]sub_matrix().(&self, other: &Selfrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[__m128][`Matrix2x2<f32, XY<f32>>`]) -> Selfrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[__m128][`Matrix2x2<f32, XY<f32>>`] {
112 unsafe { _mm_sub_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_sub_ps().(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self, *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().other) }
113 }
114 }
115
116 impl FloatMatrix2x2rust-analyzer cargo glam 0.16.0 core/traits/matrix/FloatMatrix2x2#<f32, XYrust-analyzer cargo glam 0.16.0 core/storage/XY#<f32>> for __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128# {
117 #[inline]
118 fn abs_diff_eqrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[__m128][`FloatMatrix2x2<f32, XY<f32>>`]abs_diff_eq().(&self, other: &Selfrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[__m128][`FloatMatrix2x2<f32, XY<f32>>`], max_abs_diff: f32) -> bool {
119 FloatVector4rust-analyzer cargo glam 0.16.0 core/traits/vector/FloatVector4#::abs_diff_eqrust-analyzer cargo glam 0.16.0 core/traits/vector/FloatVector4#abs_diff_eq().(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self, *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().other, max_abs_diff)
120 }
121
122 #[inline]
123 fn inverserust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[__m128][`FloatMatrix2x2<f32, XY<f32>>`]inverse().(&self) -> Selfrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[__m128][`FloatMatrix2x2<f32, XY<f32>>`] {
124 unsafe {
125 const SIGNrust-analyzer cargo glam 0.16.0 core/sse2/matrix/SIGN.: __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128# = const_m128rust-analyzer cargo glam 0.16.0 macros/const_m128!!([1.0, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f32][Neg]neg().1.0, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f32][Neg]neg().1.0, 1.0]);
126 let abcd = *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self;
127 let dcba = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(abcd, abcd, 0b00_01_10_11);
128 let prod = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(abcd, dcba);
129 let sub = _mm_sub_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_sub_ps().(prod, _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(prod, prod, 0b01_01_01_01));
130 let det = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(sub, sub, 0b00_00_00_00);
131 let tmp = _mm_div_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_div_ps().(SIGNrust-analyzer cargo glam 0.16.0 core/sse2/matrix/SIGN., det);
132 let dbca = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(abcd, abcd, 0b00_10_01_11);
133 _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(dbca, tmp)
134 }
135 }
136 }
137
138 impl MatrixConstrust-analyzer cargo glam 0.16.0 core/traits/matrix/MatrixConst# for Columns3rust-analyzer cargo glam 0.16.0 core/storage/Columns3#<__m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#> {
139 const ZEROrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[`Columns3<__m128>`][MatrixConst]ZERO.: Columns3rust-analyzer cargo glam 0.16.0 core/storage/Columns3#<__m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#> = Columns3rust-analyzer cargo glam 0.16.0 core/storage/Columns3# {
140 x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#x_axis.: __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#::ZEROrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[__m128][MatrixConst]ZERO.,
141 y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#y_axis.: __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#::ZEROrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[__m128][MatrixConst]ZERO.,
142 z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#z_axis.: __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#::ZEROrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[__m128][MatrixConst]ZERO.,
143 };
144 const IDENTITYrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[`Columns3<__m128>`][MatrixConst]IDENTITY.: Columns3rust-analyzer cargo glam 0.16.0 core/storage/Columns3#<__m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#> = Columns3rust-analyzer cargo glam 0.16.0 core/storage/Columns3# {
145 x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#x_axis.: __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#::Xrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][Vector4Const]X.,
146 y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#y_axis.: __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#::Yrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][Vector4Const]Y.,
147 z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#z_axis.: __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#::Zrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][Vector4Const]Z.,
148 };
149 }
150
151 impl Matrixrust-analyzer cargo glam 0.16.0 core/traits/matrix/Matrix#<f32> for Columns3rust-analyzer cargo glam 0.16.0 core/storage/Columns3#<__m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#> {}
152
153 impl Matrix3x3rust-analyzer cargo glam 0.16.0 core/traits/matrix/Matrix3x3#<f32, __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#> for Columns3rust-analyzer cargo glam 0.16.0 core/storage/Columns3#<__m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#> {
154 #[inline(always)]
155 fn from_colsrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[`Columns3<__m128>`][`Matrix3x3<f32, __m128>`]from_cols().(x_axis: __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#, y_axis: __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#, z_axis: __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#) -> Selfrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[`Columns3<__m128>`][`Matrix3x3<f32, __m128>`] {
156 Selfrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[`Columns3<__m128>`][`Matrix3x3<f32, __m128>`] {
157 x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#x_axis.,
158 y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#y_axis.,
159 z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#z_axis.,
160 }
161 }
162
163 #[inline(always)]
164 fn x_axisrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[`Columns3<__m128>`][`Matrix3x3<f32, __m128>`]x_axis().(&self) -> &__m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128# {
165 &self.x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#x_axis.
166 }
167
168 #[inline(always)]
169 fn y_axisrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[`Columns3<__m128>`][`Matrix3x3<f32, __m128>`]y_axis().(&self) -> &__m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128# {
170 &self.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#y_axis.
171 }
172
173 #[inline(always)]
174 fn z_axisrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[`Columns3<__m128>`][`Matrix3x3<f32, __m128>`]z_axis().(&self) -> &__m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128# {
175 &self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#z_axis.
176 }
177
178 #[inline]
179 fn transposerust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[`Columns3<__m128>`][`Matrix3x3<f32, __m128>`]transpose().(&self) -> Selfrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[`Columns3<__m128>`][`Matrix3x3<f32, __m128>`] {
180 unsafe {
181 let tmp0 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#x_axis., self.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#y_axis., 0b01_00_01_00);
182 let tmp1 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#x_axis., self.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#y_axis., 0b11_10_11_10);
183
184 Selfrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[`Columns3<__m128>`][`Matrix3x3<f32, __m128>`] {
185 x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#x_axis.: _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(tmp0, self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#z_axis., 0b00_00_10_00),
186 y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#y_axis.: _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(tmp0, self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#z_axis., 0b01_01_11_01),
187 z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#z_axis.: _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(tmp1, self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#z_axis., 0b10_10_10_00),
188 }
189 }
190 }
191 }
192
193 impl FloatMatrix3x3rust-analyzer cargo glam 0.16.0 core/traits/matrix/FloatMatrix3x3#<f32, __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#> for Columns3rust-analyzer cargo glam 0.16.0 core/storage/Columns3#<__m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#> {
194 #[inline]
195 fn transform_point2rust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[`Columns3<__m128>`][`FloatMatrix3x3<f32, __m128>`]transform_point2().(&self, other: XYrust-analyzer cargo glam 0.16.0 core/storage/XY#<f32>) -> XYrust-analyzer cargo glam 0.16.0 core/storage/XY#<f32> {
196 let mut res = self.x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#x_axis..mul_scalarrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][`Vector<f32>`]mul_scalar().(other.xrust-analyzer cargo glam 0.16.0 core/storage/XY#x.);
197 res = self.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#y_axis..mul_scalarrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][`Vector<f32>`]mul_scalar().(other.yrust-analyzer cargo glam 0.16.0 core/storage/XY#y.).addrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][`Vector<f32>`]add().(res);
198 res = self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#z_axis..addrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][`Vector<f32>`]add().(res);
199 res.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().()
200 }
201
202 #[inline]
203 fn transform_vector2rust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[`Columns3<__m128>`][`FloatMatrix3x3<f32, __m128>`]transform_vector2().(&self, other: XYrust-analyzer cargo glam 0.16.0 core/storage/XY#<f32>) -> XYrust-analyzer cargo glam 0.16.0 core/storage/XY#<f32> {
204 let mut res = self.x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#x_axis..mul_scalarrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][`Vector<f32>`]mul_scalar().(other.xrust-analyzer cargo glam 0.16.0 core/storage/XY#x.);
205 res = self.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#y_axis..mul_scalarrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][`Vector<f32>`]mul_scalar().(other.yrust-analyzer cargo glam 0.16.0 core/storage/XY#y.).addrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][`Vector<f32>`]add().(res);
206 res.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().()
207 }
208 }
209
210 impl MatrixConstrust-analyzer cargo glam 0.16.0 core/traits/matrix/MatrixConst# for Columns4rust-analyzer cargo glam 0.16.0 core/storage/Columns4#<__m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#> {
211 const ZEROrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[`Columns4<__m128>`][MatrixConst]ZERO.: Columns4rust-analyzer cargo glam 0.16.0 core/storage/Columns4#<__m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#> = Columns4rust-analyzer cargo glam 0.16.0 core/storage/Columns4# {
212 x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#x_axis.: __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#::ZEROrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[__m128][MatrixConst]ZERO.,
213 y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#y_axis.: __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#::ZEROrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[__m128][MatrixConst]ZERO.,
214 z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis.: __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#::ZEROrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[__m128][MatrixConst]ZERO.,
215 w_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#w_axis.: __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#::ZEROrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[__m128][MatrixConst]ZERO.,
216 };
217 const IDENTITYrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[`Columns4<__m128>`][MatrixConst]IDENTITY.: Columns4rust-analyzer cargo glam 0.16.0 core/storage/Columns4#<__m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#> = Columns4rust-analyzer cargo glam 0.16.0 core/storage/Columns4# {
218 x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#x_axis.: __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#::Xrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][Vector4Const]X.,
219 y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#y_axis.: __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#::Yrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][Vector4Const]Y.,
220 z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis.: __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#::Zrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][Vector4Const]Z.,
221 w_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#w_axis.: __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#::Wrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][Vector4Const]W.,
222 };
223 }
224
225 impl Matrixrust-analyzer cargo glam 0.16.0 core/traits/matrix/Matrix#<f32> for Columns4rust-analyzer cargo glam 0.16.0 core/storage/Columns4#<__m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#> {}
226
227 impl Matrix4x4rust-analyzer cargo glam 0.16.0 core/traits/matrix/Matrix4x4#<f32, __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#> for Columns4rust-analyzer cargo glam 0.16.0 core/storage/Columns4#<__m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#> {
228 #[inline(always)]
229 fn from_colsrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[`Columns4<__m128>`][`Matrix4x4<f32, __m128>`]from_cols().(x_axis: __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#, y_axis: __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#, z_axis: __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#, w_axis: __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#) -> Selfrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[`Columns4<__m128>`][`Matrix4x4<f32, __m128>`] {
230 Selfrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[`Columns4<__m128>`][`Matrix4x4<f32, __m128>`] {
231 x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#x_axis.,
232 y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#y_axis.,
233 z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis.,
234 w_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#w_axis.,
235 }
236 }
237
238 #[inline(always)]
239 fn x_axisrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[`Columns4<__m128>`][`Matrix4x4<f32, __m128>`]x_axis().(&self) -> &__m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128# {
240 &self.x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#x_axis.
241 }
242
243 #[inline(always)]
244 fn y_axisrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[`Columns4<__m128>`][`Matrix4x4<f32, __m128>`]y_axis().(&self) -> &__m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128# {
245 &self.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#y_axis.
246 }
247
248 #[inline(always)]
249 fn z_axisrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[`Columns4<__m128>`][`Matrix4x4<f32, __m128>`]z_axis().(&self) -> &__m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128# {
250 &self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis.
251 }
252
253 #[inline(always)]
254 fn w_axisrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[`Columns4<__m128>`][`Matrix4x4<f32, __m128>`]w_axis().(&self) -> &__m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128# {
255 &self.w_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#w_axis.
256 }
257
258 #[inline]
259 fn determinantrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[`Columns4<__m128>`][`Matrix4x4<f32, __m128>`]determinant().(&self) -> f32 {
260 unsafe {
261 // Based on https://github.com/g-truc/glm `glm_mat4_determinant`
262 let swp2a = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis., self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis., 0b00_01_01_10);
263 let swp3a = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.w_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#w_axis., self.w_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#w_axis., 0b11_10_11_11);
264 let swp2b = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis., self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis., 0b11_10_11_11);
265 let swp3b = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.w_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#w_axis., self.w_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#w_axis., 0b00_10_01_10);
266 let swp2c = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis., self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis., 0b00_00_01_10);
267 let swp3c = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.w_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#w_axis., self.w_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#w_axis., 0b01_10_00_00);
268
269 let mula = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(swp2a, swp3a);
270 let mulb = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(swp2b, swp3b);
271 let mulc = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(swp2c, swp3c);
272 let sube = _mm_sub_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_sub_ps().(mula, mulb);
273 let subf = _mm_sub_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_sub_ps().(_mm_movehl_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_movehl_ps().(mulc, mulc), mulc);
274
275 let subfaca = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(sube, sube, 0b10_01_00_00);
276 let swpfaca = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#y_axis., self.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#y_axis., 0b00_00_00_01);
277 let mulfaca = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(swpfaca, subfaca);
278
279 let subtmpb = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(sube, subf, 0b00_00_11_01);
280 let subfacb = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(subtmpb, subtmpb, 0b11_01_01_00);
281 let swpfacb = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#y_axis., self.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#y_axis., 0b01_01_10_10);
282 let mulfacb = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(swpfacb, subfacb);
283
284 let subres = _mm_sub_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_sub_ps().(mulfaca, mulfacb);
285 let subtmpc = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(sube, subf, 0b01_00_10_10);
286 let subfacc = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(subtmpc, subtmpc, 0b11_11_10_00);
287 let swpfacc = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#y_axis., self.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#y_axis., 0b10_11_11_11);
288 let mulfacc = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(swpfacc, subfacc);
289
290 let addres = _mm_add_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_add_ps().(subres, mulfacc);
291 let detcof = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(addres, _mm_setr_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_setr_ps().(1.0, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f32][Neg]neg().1.0, 1.0, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f32][Neg]neg().1.0));
292
293 Vector4rust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#::dotrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][`Vector4<f32>`]dot().(self.x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#x_axis., detcof)
294 }
295 }
296
297 #[inline]
298 fn transposerust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[`Columns4<__m128>`][`Matrix4x4<f32, __m128>`]transpose().(&self) -> Selfrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[`Columns4<__m128>`][`Matrix4x4<f32, __m128>`] {
299 unsafe {
300 // Based on https://github.com/microsoft/DirectXMath `XMMatrixTranspose`
301 let tmp0 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#x_axis., self.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#y_axis., 0b01_00_01_00);
302 let tmp1 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#x_axis., self.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#y_axis., 0b11_10_11_10);
303 let tmp2 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis., self.w_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#w_axis., 0b01_00_01_00);
304 let tmp3 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis., self.w_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#w_axis., 0b11_10_11_10);
305
306 Selfrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[`Columns4<__m128>`][`Matrix4x4<f32, __m128>`] {
307 x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#x_axis.: _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(tmp0, tmp2, 0b10_00_10_00),
308 y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#y_axis.: _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(tmp0, tmp2, 0b11_01_11_01),
309 z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis.: _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(tmp1, tmp3, 0b10_00_10_00),
310 w_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#w_axis.: _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(tmp1, tmp3, 0b11_01_11_01),
311 }
312 }
313 }
314 }
315
316 impl FloatMatrix4x4rust-analyzer cargo glam 0.16.0 core/traits/matrix/FloatMatrix4x4#<f32, __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#> for Columns4rust-analyzer cargo glam 0.16.0 core/storage/Columns4#<__m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#> {
317 type SIMDVector3rust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[`Columns4<__m128>`][`FloatMatrix4x4<f32, __m128>`]SIMDVector3# = __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#;
318
319 fn inverserust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[`Columns4<__m128>`][`FloatMatrix4x4<f32, __m128>`]inverse().(&self) -> Selfrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[`Columns4<__m128>`][`FloatMatrix4x4<f32, __m128>`] {
320 unsafe {
321 // Based on https://github.com/g-truc/glm `glm_mat4_inverse`
322 let fac0 = {
323 let swp0a = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.w_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#w_axis., self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis., 0b11_11_11_11);
324 let swp0b = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.w_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#w_axis., self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis., 0b10_10_10_10);
325
326 let swp00 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis., self.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#y_axis., 0b10_10_10_10);
327 let swp01 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(swp0a, swp0a, 0b10_00_00_00);
328 let swp02 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(swp0b, swp0b, 0b10_00_00_00);
329 let swp03 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis., self.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#y_axis., 0b11_11_11_11);
330
331 let mul00 = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(swp00, swp01);
332 let mul01 = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(swp02, swp03);
333 _mm_sub_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_sub_ps().(mul00, mul01)
334 };
335 let fac1 = {
336 let swp0a = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.w_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#w_axis., self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis., 0b11_11_11_11);
337 let swp0b = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.w_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#w_axis., self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis., 0b01_01_01_01);
338
339 let swp00 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis., self.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#y_axis., 0b01_01_01_01);
340 let swp01 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(swp0a, swp0a, 0b10_00_00_00);
341 let swp02 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(swp0b, swp0b, 0b10_00_00_00);
342 let swp03 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis., self.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#y_axis., 0b11_11_11_11);
343
344 let mul00 = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(swp00, swp01);
345 let mul01 = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(swp02, swp03);
346 _mm_sub_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_sub_ps().(mul00, mul01)
347 };
348 let fac2 = {
349 let swp0a = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.w_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#w_axis., self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis., 0b10_10_10_10);
350 let swp0b = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.w_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#w_axis., self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis., 0b01_01_01_01);
351
352 let swp00 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis., self.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#y_axis., 0b01_01_01_01);
353 let swp01 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(swp0a, swp0a, 0b10_00_00_00);
354 let swp02 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(swp0b, swp0b, 0b10_00_00_00);
355 let swp03 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis., self.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#y_axis., 0b10_10_10_10);
356
357 let mul00 = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(swp00, swp01);
358 let mul01 = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(swp02, swp03);
359 _mm_sub_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_sub_ps().(mul00, mul01)
360 };
361 let fac3 = {
362 let swp0a = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.w_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#w_axis., self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis., 0b11_11_11_11);
363 let swp0b = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.w_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#w_axis., self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis., 0b00_00_00_00);
364
365 let swp00 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis., self.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#y_axis., 0b00_00_00_00);
366 let swp01 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(swp0a, swp0a, 0b10_00_00_00);
367 let swp02 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(swp0b, swp0b, 0b10_00_00_00);
368 let swp03 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis., self.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#y_axis., 0b11_11_11_11);
369
370 let mul00 = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(swp00, swp01);
371 let mul01 = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(swp02, swp03);
372 _mm_sub_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_sub_ps().(mul00, mul01)
373 };
374 let fac4 = {
375 let swp0a = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.w_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#w_axis., self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis., 0b10_10_10_10);
376 let swp0b = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.w_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#w_axis., self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis., 0b00_00_00_00);
377
378 let swp00 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis., self.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#y_axis., 0b00_00_00_00);
379 let swp01 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(swp0a, swp0a, 0b10_00_00_00);
380 let swp02 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(swp0b, swp0b, 0b10_00_00_00);
381 let swp03 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis., self.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#y_axis., 0b10_10_10_10);
382
383 let mul00 = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(swp00, swp01);
384 let mul01 = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(swp02, swp03);
385 _mm_sub_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_sub_ps().(mul00, mul01)
386 };
387 let fac5 = {
388 let swp0a = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.w_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#w_axis., self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis., 0b01_01_01_01);
389 let swp0b = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.w_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#w_axis., self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis., 0b00_00_00_00);
390
391 let swp00 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis., self.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#y_axis., 0b00_00_00_00);
392 let swp01 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(swp0a, swp0a, 0b10_00_00_00);
393 let swp02 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(swp0b, swp0b, 0b10_00_00_00);
394 let swp03 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis., self.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#y_axis., 0b01_01_01_01);
395
396 let mul00 = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(swp00, swp01);
397 let mul01 = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(swp02, swp03);
398 _mm_sub_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_sub_ps().(mul00, mul01)
399 };
400 let sign_a = _mm_set_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_set_ps().(1.0, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f32][Neg]neg().1.0, 1.0, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f32][Neg]neg().1.0);
401 let sign_b = _mm_set_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_set_ps().(-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f32][Neg]neg().1.0, 1.0, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[f32][Neg]neg().1.0, 1.0);
402
403 let temp0 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#y_axis., self.x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#x_axis., 0b00_00_00_00);
404 let vec0 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(temp0, temp0, 0b10_10_10_00);
405
406 let temp1 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#y_axis., self.x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#x_axis., 0b01_01_01_01);
407 let vec1 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(temp1, temp1, 0b10_10_10_00);
408
409 let temp2 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#y_axis., self.x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#x_axis., 0b10_10_10_10);
410 let vec2 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(temp2, temp2, 0b10_10_10_00);
411
412 let temp3 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(self.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#y_axis., self.x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#x_axis., 0b11_11_11_11);
413 let vec3 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(temp3, temp3, 0b10_10_10_00);
414
415 let mul00 = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(vec1, fac0);
416 let mul01 = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(vec2, fac1);
417 let mul02 = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(vec3, fac2);
418 let sub00 = _mm_sub_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_sub_ps().(mul00, mul01);
419 let add00 = _mm_add_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_add_ps().(sub00, mul02);
420 let inv0 = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(sign_b, add00);
421
422 let mul03 = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(vec0, fac0);
423 let mul04 = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(vec2, fac3);
424 let mul05 = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(vec3, fac4);
425 let sub01 = _mm_sub_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_sub_ps().(mul03, mul04);
426 let add01 = _mm_add_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_add_ps().(sub01, mul05);
427 let inv1 = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(sign_a, add01);
428
429 let mul06 = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(vec0, fac1);
430 let mul07 = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(vec1, fac3);
431 let mul08 = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(vec3, fac5);
432 let sub02 = _mm_sub_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_sub_ps().(mul06, mul07);
433 let add02 = _mm_add_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_add_ps().(sub02, mul08);
434 let inv2 = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(sign_b, add02);
435
436 let mul09 = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(vec0, fac2);
437 let mul10 = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(vec1, fac4);
438 let mul11 = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(vec2, fac5);
439 let sub03 = _mm_sub_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_sub_ps().(mul09, mul10);
440 let add03 = _mm_add_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_add_ps().(sub03, mul11);
441 let inv3 = _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(sign_a, add03);
442
443 let row0 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(inv0, inv1, 0b00_00_00_00);
444 let row1 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(inv2, inv3, 0b00_00_00_00);
445 let row2 = _mm_shuffle_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_shuffle_ps().(row0, row1, 0b10_00_10_00);
446
447 let dot0 = Vector4rust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#::dotrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][`Vector4<f32>`]dot().(self.x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#x_axis., row2);
448 glam_assertrust-analyzer cargo glam 0.16.0 macros/glam_assert!!(dot0 != 0.0);
449
450 let rcp0 = _mm_set1_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_set1_ps().(dot0.reciprust-analyzer cargo core https://github.com/rust-lang/rust/library/core f32/impl#[f32]recip().());
451
452 Selfrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[`Columns4<__m128>`][`FloatMatrix4x4<f32, __m128>`] {
453 x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#x_axis.: _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(inv0, rcp0),
454 y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#y_axis.: _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(inv1, rcp0),
455 z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis.: _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(inv2, rcp0),
456 w_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#w_axis.: _mm_mul_psrust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/sse/_mm_mul_ps().(inv3, rcp0),
457 }
458 }
459 }
460
461 #[inline(always)]
462 fn transform_point3rust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[`Columns4<__m128>`][`FloatMatrix4x4<f32, __m128>`]transform_point3().(&self, other: XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#<f32>) -> XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#<f32> {
463 self.x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#x_axis.
464 .mul_scalarrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][`Vector<f32>`]mul_scalar().(other.xrust-analyzer cargo glam 0.16.0 core/storage/XYZ#x.)
465 .addrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][`Vector<f32>`]add().(self.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#y_axis..mul_scalarrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][`Vector<f32>`]mul_scalar().(other.yrust-analyzer cargo glam 0.16.0 core/storage/XYZ#y.))
466 .addrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][`Vector<f32>`]add().(self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis..mul_scalarrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][`Vector<f32>`]mul_scalar().(other.zrust-analyzer cargo glam 0.16.0 core/storage/XYZ#z.))
467 .addrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][`Vector<f32>`]add().(self.w_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#w_axis.)
468 .intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().()
469 }
470
471 #[inline(always)]
472 fn transform_vector3rust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[`Columns4<__m128>`][`FloatMatrix4x4<f32, __m128>`]transform_vector3().(&self, other: XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#<f32>) -> XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#<f32> {
473 self.x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#x_axis.
474 .mul_scalarrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][`Vector<f32>`]mul_scalar().(other.xrust-analyzer cargo glam 0.16.0 core/storage/XYZ#x.)
475 .addrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][`Vector<f32>`]add().(self.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#y_axis..mul_scalarrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][`Vector<f32>`]mul_scalar().(other.yrust-analyzer cargo glam 0.16.0 core/storage/XYZ#y.))
476 .addrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][`Vector<f32>`]add().(self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis..mul_scalarrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][`Vector<f32>`]mul_scalar().(other.zrust-analyzer cargo glam 0.16.0 core/storage/XYZ#z.))
477 .intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().()
478 }
479
480 #[inline]
481 fn transform_float4_as_point3rust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[`Columns4<__m128>`][`FloatMatrix4x4<f32, __m128>`]transform_float4_as_point3().(&self, other: __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#) -> __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128# {
482 let mut res = self.x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#x_axis..mulrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][`Vector<f32>`]mul().(Vector4rust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#::splat_xrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][`Vector4<f32>`]splat_x().(other));
483 res = self.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#y_axis..mul_addrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][`Vector<f32>`]mul_add().(Vector4rust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#::splat_yrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][`Vector4<f32>`]splat_y().(other), res);
484 res = self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis..mul_addrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][`Vector<f32>`]mul_add().(Vector4rust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#::splat_zrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][`Vector4<f32>`]splat_z().(other), res);
485 res = self.w_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#w_axis..addrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][`Vector<f32>`]add().(res);
486 res
487 }
488
489 #[inline]
490 fn transform_float4_as_vector3rust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[`Columns4<__m128>`][`FloatMatrix4x4<f32, __m128>`]transform_float4_as_vector3().(&self, other: __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#) -> __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128# {
491 let mut res = self.x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#x_axis..mulrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][`Vector<f32>`]mul().(Vector4rust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#::splat_xrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][`Vector4<f32>`]splat_x().(other));
492 res = self.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#y_axis..mul_addrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][`Vector<f32>`]mul_add().(Vector4rust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#::splat_yrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][`Vector4<f32>`]splat_y().(other), res);
493 res = self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis..mul_addrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][`Vector<f32>`]mul_add().(Vector4rust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#::splat_zrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][`Vector4<f32>`]splat_z().(other), res);
494 res
495 }
496
497 #[inline]
498 fn project_float4_as_point3rust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[`Columns4<__m128>`][`FloatMatrix4x4<f32, __m128>`]project_float4_as_point3().(&self, other: __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#) -> __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128# {
499 let mut res = self.x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#x_axis..mulrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][`Vector<f32>`]mul().(Vector4rust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#::splat_xrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][`Vector4<f32>`]splat_x().(other));
500 res = self.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#y_axis..mul_addrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][`Vector<f32>`]mul_add().(Vector4rust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#::splat_yrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][`Vector4<f32>`]splat_y().(other), res);
501 res = self.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#z_axis..mul_addrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][`Vector<f32>`]mul_add().(Vector4rust-analyzer cargo glam 0.16.0 core/traits/vector/Vector4#::splat_zrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][`Vector4<f32>`]splat_z().(other), res);
502 res = self.w_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns4#w_axis..addrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][`Vector<f32>`]add().(res);
503 res = res.mulrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][`Vector<f32>`]mul().(res.splat_wrust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][`Vector4<f32>`]splat_w().().reciprust-analyzer cargo glam 0.16.0 core/sse2/vector/impl#[__m128][`FloatVector4<f32>`]recip().());
504 res
505 }
506 }
507
508 impl ProjectionMatrixrust-analyzer cargo glam 0.16.0 core/traits/projection/ProjectionMatrix#<f32, __m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#> for Columns4rust-analyzer cargo glam 0.16.0 core/storage/Columns4#<__m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#> {}
509
510 impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<Columns3rust-analyzer cargo glam 0.16.0 core/storage/Columns3#<XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#<f32>>> for Columns3rust-analyzer cargo glam 0.16.0 core/storage/Columns3#<__m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#> {
511 #[inline(always)]
512 fn fromrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[`Columns3<__m128>`][`From<Columns3<XYZ<f32>>>`]from().(v: Columns3rust-analyzer cargo glam 0.16.0 core/storage/Columns3#<XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#<f32>>) -> Columns3rust-analyzer cargo glam 0.16.0 core/storage/Columns3#<__m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#> {
513 Selfrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[`Columns3<__m128>`][`From<Columns3<XYZ<f32>>>`] {
514 x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#x_axis.: v.x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#x_axis..intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
515 y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#y_axis.: v.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#y_axis..intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
516 z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#z_axis.: v.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#z_axis..intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
517 }
518 }
519 }
520
521 impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<Columns3rust-analyzer cargo glam 0.16.0 core/storage/Columns3#<__m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#>> for Columns3rust-analyzer cargo glam 0.16.0 core/storage/Columns3#<XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#<f32>> {
522 #[inline(always)]
523 fn fromrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[`Columns3<XYZ<f32>>`][`From<Columns3<__m128>>`]from().(v: Columns3rust-analyzer cargo glam 0.16.0 core/storage/Columns3#<__m128rust-analyzer cargo core https://github.com/rust-lang/rust/library/core core_arch/x86/__m128#>) -> Columns3rust-analyzer cargo glam 0.16.0 core/storage/Columns3#<XYZrust-analyzer cargo glam 0.16.0 core/storage/XYZ#<f32>> {
524 Selfrust-analyzer cargo glam 0.16.0 core/sse2/matrix/impl#[`Columns3<XYZ<f32>>`][`From<Columns3<__m128>>`] {
525 x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#x_axis.: v.x_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#x_axis..intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
526 y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#y_axis.: v.y_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#y_axis..intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
527 z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#z_axis.: v.z_axisrust-analyzer cargo glam 0.16.0 core/storage/Columns3#z_axis..intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(),
528 }
529 }
530 }