Debian Codegraph @

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