terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
Vector.cs
Go to the documentation of this file.
1using System;
6
7namespace System.Numerics
8{
9 // Token: 0x0200052B RID: 1323
10 [Intrinsic]
11 public struct Vector<T> : IEquatable<Vector<T>>, IFormattable where T : struct
12 {
13 // Token: 0x1700059F RID: 1439
14 // (get) Token: 0x06002712 RID: 10002 RVA: 0x0000207A File Offset: 0x0000027A
15 public static int Count
16 {
17 [Intrinsic]
18 get
19 {
20 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
21 }
22 }
23
24 // Token: 0x170005A0 RID: 1440
25 // (get) Token: 0x06002713 RID: 10003 RVA: 0x0000207A File Offset: 0x0000027A
26 public static Vector<T> Zero
27 {
28 [Intrinsic]
29 get
30 {
31 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
32 }
33 }
34
35 // Token: 0x06002714 RID: 10004 RVA: 0x00054244 File Offset: 0x00052444
36 private static int InitializeCount()
37 {
38 /*
39An exception occurred when decompiling this method (06002714)
40
41ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.Numerics.Vector`1::InitializeCount()
42
43 ---> System.Exception: Basic block has to end with unconditional control flow.
44{
45 Block_0:
46 stloc:bool(var_2_07, call:bool(Type::op_Equality, ldloc:Type(var_0), ldloc:Type(var_1)))
47 stloc:bool(var_5_10, call:bool(Type::op_Equality, ldloc:Type(var_3), ldloc:Type(var_4)))
48 stloc:bool(var_8_1B, call:bool(Type::op_Equality, ldloc:Type(var_6), ldloc:Type(var_7)))
49 stloc:bool(var_11_26, call:bool(Type::op_Equality, ldloc:Type(var_9), ldloc:Type(var_10)))
50 stloc:bool(var_14_31, call:bool(Type::op_Equality, ldloc:Type(var_12), ldloc:Type(var_13)))
51 stloc:bool(var_17_3C, call:bool(Type::op_Equality, ldloc:Type(var_15), ldloc:Type(var_16)))
52 stloc:bool(var_20_47, call:bool(Type::op_Equality, ldloc:Type(var_18), ldloc:Type(var_19)))
53 stloc:bool(var_23_52, call:bool(Type::op_Equality, ldloc:Type(var_21), ldloc:Type(var_22)))
54 stloc:bool(var_26_5D, call:bool(Type::op_Equality, ldloc:Type(var_24), ldloc:Type(var_25)))
55 stloc:bool(var_29_68, call:bool(Type::op_Equality, ldloc:Type(var_27), ldloc:Type(var_28)))
56}
57
58 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
59 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
60 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
61 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
62 --- End of inner exception stack trace ---
63 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
64 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
65*/;
66 }
67
68 // Token: 0x06002715 RID: 10005 RVA: 0x000542BC File Offset: 0x000524BC
69 [Intrinsic]
70 public Vector(T value)
71 {
73 Type type;
74 Type type2;
75 bool flag = type == type2;
76 }
77
78 // Token: 0x06002716 RID: 10006 RVA: 0x000543E8 File Offset: 0x000525E8
79 internal unsafe Vector(void* dataPointer)
80 {
81 }
82
83 // Token: 0x06002717 RID: 10007 RVA: 0x000543F8 File Offset: 0x000525F8
84 internal unsafe Vector(void* dataPointer, int offset)
85 {
86 Type type;
87 Type type2;
88 bool flag = type == type2;
89 }
90
91 // Token: 0x06002718 RID: 10008 RVA: 0x000544A4 File Offset: 0x000526A4
93 {
94 }
95
96 // Token: 0x170005A1 RID: 1441
97 public T this[int index]
98 {
99 [Intrinsic]
100 get
101 {
102 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
103 }
104 }
105
106 // Token: 0x0600271A RID: 10010 RVA: 0x000544B4 File Offset: 0x000526B4
107 public override bool Equals(object obj)
108 {
109 if (obj != null)
110 {
111 }
112 bool flag;
113 return flag;
114 }
115
116 // Token: 0x0600271B RID: 10011 RVA: 0x000544D0 File Offset: 0x000526D0
117 [Intrinsic]
118 public bool Equals(Vector<T> other)
119 {
120 int num = 1;
122 long num2 = 0L;
123 if (num == 0)
124 {
125 }
126 T t = this[(int)num2];
127 if (num == 0)
128 {
129 }
130 Type type;
131 Type type2;
132 return type == type2;
133 }
134
135 // Token: 0x0600271C RID: 10012 RVA: 0x00054564 File Offset: 0x00052764
136 public override int GetHashCode()
137 {
139 Type type;
140 Type type2;
141 bool flag = type == type2;
142 long num = 0L;
143 long num2 = 0L;
144 T t = this[(int)num];
145 int num3;
146 return HashHelpers.Combine((int)num2, num3);
147 }
148
149 // Token: 0x0600271D RID: 10013 RVA: 0x00054928 File Offset: 0x00052B28
150 public override string ToString()
151 {
152 if (!true)
153 {
154 }
156 return this.ToString("G", currentCulture);
157 }
158
159 // Token: 0x0600271E RID: 10014 RVA: 0x0005494C File Offset: 0x00052B4C
161 {
162 /*
163An exception occurred when decompiling this method (0600271E)
164
165ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String System.Numerics.Vector`1::ToString(System.String,System.IFormatProvider)
166
167 ---> System.Exception: Basic block has to end with unconditional control flow.
168{
169 IL_0017:
170 stloc:!T(var_5_1F, callgetter:!0[exp:!T](Vector`1::get_Item, ldloc:valuetype System.Numerics.Vector`1&(this), ldloc:int64[exp:int32](var_4_12)))
171}
172
173 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
174 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
175 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
176 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
177 --- End of inner exception stack trace ---
178 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
179 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
180*/;
181 }
182
183 // Token: 0x0600271F RID: 10015 RVA: 0x00054984 File Offset: 0x00052B84
184 public static bool operator ==(Vector<T> left, Vector<T> right)
185 {
186 bool flag;
187 return flag;
188 }
189
190 // Token: 0x06002720 RID: 10016 RVA: 0x0000207A File Offset: 0x0000027A
191 public static bool operator !=(Vector<T> left, Vector<T> right)
192 {
193 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
194 }
195
196 // Token: 0x06002721 RID: 10017 RVA: 0x0000207A File Offset: 0x0000027A
197 [Intrinsic]
198 [CLSCompliant(false)]
199 public static explicit operator Vector<ulong>(Vector<T> value)
200 {
201 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
202 }
203
204 // Token: 0x06002722 RID: 10018 RVA: 0x00054994 File Offset: 0x00052B94
205 [Intrinsic]
206 internal static Vector<T> Equals(Vector<T> left, Vector<T> right)
207 {
208 /*
209An exception occurred when decompiling this method (06002722)
210
211ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Numerics.Vector`1<T> System.Numerics.Vector`1::Equals(System.Numerics.Vector`1<T>,System.Numerics.Vector`1<T>)
212
213 ---> System.Exception: Basic block has to end with unconditional control flow.
214{
215 IL_011D:
216 brtrue(IL_0000, ldloc:int64[exp:bool](var_90_102))
217}
218
219 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
220 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
221 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
222 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
223 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
224 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
225 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
226 --- End of inner exception stack trace ---
227 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
228 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
229*/;
230 }
231
232 // Token: 0x06002723 RID: 10019 RVA: 0x00054AC4 File Offset: 0x00052CC4
233 private static bool ScalarEquals(T left, T right)
234 {
235 Type type;
236 Type type2;
237 bool flag = type == type2;
238 Type type3;
239 Type type4;
240 bool flag2 = type3 == type4;
241 Type type5;
242 Type type6;
243 bool flag3 = type5 == type6;
244 Type type7;
245 Type type8;
246 bool flag4 = type7 == type8;
247 Type type9;
248 Type type10;
249 bool flag5 = type9 == type10;
250 Type type11;
251 Type type12;
252 bool flag6 = type11 == type12;
253 Type type13;
254 Type type14;
255 bool flag7 = type13 == type14;
256 Type type15;
257 Type type16;
258 bool flag8 = type15 == type16;
259 throw new InvalidCastException();
260 }
261
262 // Token: 0x06002724 RID: 10020 RVA: 0x00054B34 File Offset: 0x00052D34
263 private static T GetOneValue()
264 {
265 Type type;
266 Type type2;
267 bool flag = type == type2;
268 Type type3;
269 Type type4;
270 bool flag2 = type3 == type4;
271 Type type5;
272 Type type6;
273 bool flag3 = type5 == type6;
274 Type type7;
275 Type type8;
276 bool flag4 = type7 == type8;
277 Type type9;
278 Type type10;
279 bool flag5 = type9 == type10;
280 Type type11;
281 Type type12;
282 bool flag6 = type11 == type12;
283 Type type13;
284 Type type14;
285 bool flag7 = type13 == type14;
286 Type type15;
287 bool flag8 = type15 == type15;
288 Type type16;
289 Type type17;
290 bool flag9 = type16 == type17;
291 Type type18;
292 Type type19;
293 bool flag10 = type18 == type19;
294 throw new InvalidCastException();
295 }
296
297 // Token: 0x06002725 RID: 10021 RVA: 0x00054BB0 File Offset: 0x00052DB0
298 private static T GetAllBitsSetValue()
299 {
300 Type type;
301 Type type2;
302 bool flag = type == type2;
303 Type type3;
304 Type type4;
305 bool flag2 = type3 == type4;
306 Type type5;
307 Type type6;
308 bool flag3 = type5 == type6;
309 Type type7;
310 Type type8;
311 bool flag4 = type7 == type8;
312 Type type9;
313 Type type10;
314 bool flag5 = type9 == type10;
315 Type type11;
316 Type type12;
317 bool flag6 = type11 == type12;
318 Type type13;
319 Type type14;
320 bool flag7 = type13 == type14;
321 Type type15;
322 Type type16;
323 bool flag8 = type15 == type16;
324 Type type17;
325 Type type18;
326 bool flag9 = type17 == type18;
327 Type type19;
328 Type type20;
329 bool flag10 = type19 == type20;
330 throw new InvalidCastException();
331 }
332
333 // Token: 0x06002726 RID: 10022 RVA: 0x00054C2C File Offset: 0x00052E2C
334 // Note: this type is marked as 'beforefieldinit'.
335 static Vector()
336 {
337 }
338
339 // Token: 0x0400155D RID: 5469
340 private Register register;
341
342 // Token: 0x0400155E RID: 5470
343 private static readonly int s_count;
344
345 // Token: 0x0400155F RID: 5471
346 private static readonly Vector<T> s_zero;
347
348 // Token: 0x04001560 RID: 5472
349 private static readonly Vector<T> s_one;
350
351 // Token: 0x04001561 RID: 5473
353
354 // Token: 0x0200052C RID: 1324
355 private struct VectorSizeHelper
356 {
357 // Token: 0x04001562 RID: 5474
359
360 // Token: 0x04001563 RID: 5475
361 internal byte _byte;
362 }
363 }
364}
class f__AnonymousType0<< Count > j__TPar
static CultureInfo CurrentCulture
static int Combine(int h1, int h2)
static int Count
Definition Vector.cs:16
unsafe Vector(void *dataPointer)
Definition Vector.cs:79
static Vector< T > Zero
Definition Vector.cs:27
static int InitializeCount()
Definition Vector.cs:36
override bool Equals(object obj)
Definition Vector.cs:107
override int GetHashCode()
Definition Vector.cs:136
static readonly Vector< T > s_one
Definition Vector.cs:349
unsafe Vector(void *dataPointer, int offset)
Definition Vector.cs:84
string ToString(string format, IFormatProvider formatProvider)
Definition Vector.cs:160
static readonly Vector< T > s_zero
Definition Vector.cs:346
static Vector< T > Equals(Vector< T > left, Vector< T > right)
Definition Vector.cs:206
static bool IsHardwareAccelerated
Definition Vector.2.cs:20
static readonly int s_count
Definition Vector.cs:343
static T GetOneValue()
Definition Vector.cs:263
static bool ScalarEquals(T left, T right)
Definition Vector.cs:233
bool Equals(Vector< T > other)
Definition Vector.cs:118
override string ToString()
Definition Vector.cs:150
static readonly Vector< T > s_allOnes
Definition Vector.cs:352
static bool operator!=(Vector< T > left, Vector< T > right)
Definition Vector.cs:191
static bool operator==(Vector< T > left, Vector< T > right)
Definition Vector.cs:184
static T GetAllBitsSetValue()
Definition Vector.cs:298
Vector(Register existingRegister)
Definition Vector.cs:92