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
Math.cs
Go to the documentation of this file.
1using System;
6
7namespace System
8{
9 // Token: 0x020000D6 RID: 214
10 public static class Math
11 {
12 // Token: 0x060007E7 RID: 2023 RVA: 0x00012C34 File Offset: 0x00010E34
13 public static int Abs(int value)
14 {
15 /*
16An exception occurred when decompiling this method (060007E7)
17
18ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.Math::Abs(System.Int32)
19
20 ---> System.Exception: Basic block has to end with unconditional control flow.
21{
22 Block_0:
23 call:void(Math::ThrowAbsOverflow)
24}
25
26 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
27 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
28 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
29 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
30 --- End of inner exception stack trace ---
31 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
32 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
33*/;
34 }
35
36 // Token: 0x060007E8 RID: 2024 RVA: 0x0000207A File Offset: 0x0000027A
38 private static void ThrowAbsOverflow()
39 {
40 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
41 }
42
43 // Token: 0x060007E9 RID: 2025 RVA: 0x0000207A File Offset: 0x0000027A
44 public static int DivRem(int a, int b, [Out] int result)
45 {
46 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
47 }
48
49 // Token: 0x060007EA RID: 2026 RVA: 0x00012C48 File Offset: 0x00010E48
50 public static int Clamp(int value, int min, int max)
51 {
52 return value;
53 }
54
55 // Token: 0x060007EB RID: 2027 RVA: 0x00012C58 File Offset: 0x00010E58
56 public static double IEEERemainder(double x, double y)
57 {
58 /*
59An exception occurred when decompiling this method (060007EB)
60
61ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Double System.Math::IEEERemainder(System.Double,System.Double)
62
63 ---> System.Exception: Basic block has to end with unconditional control flow.
64{
65 IL_0019:
66 brtrue(IL_0000, ldc.i4:bool(1))
67}
68
69 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
70 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
71 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
72 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
73 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
74 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
75 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
76 --- End of inner exception stack trace ---
77 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
78 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
79*/;
80 }
81
82 // Token: 0x060007EC RID: 2028 RVA: 0x00012C80 File Offset: 0x00010E80
83 public static double Log(double a, double newBase)
84 {
85 /*
86An exception occurred when decompiling this method (060007EC)
87
88ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Double System.Math::Log(System.Double,System.Double)
89
90 ---> System.Exception: Basic block has to end with unconditional control flow.
91{
92 IL_0003:
93 brtrue(IL_0000, ldc.i4:bool(1))
94}
95
96 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
97 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
98 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
99 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
100 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
101 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
102 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
103 --- End of inner exception stack trace ---
104 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
105 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
106*/;
107 }
108
109 // Token: 0x060007ED RID: 2029 RVA: 0x0000207A File Offset: 0x0000027A
111 public static byte Max(byte val1, byte val2)
112 {
113 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
114 }
115
116 // Token: 0x060007EE RID: 2030 RVA: 0x0000207A File Offset: 0x0000027A
117 public static double Max(double val1, double val2)
118 {
119 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
120 }
121
122 // Token: 0x060007EF RID: 2031 RVA: 0x0000207A File Offset: 0x0000027A
124 public static int Max(int val1, int val2)
125 {
126 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
127 }
128
129 // Token: 0x060007F0 RID: 2032 RVA: 0x0000207A File Offset: 0x0000027A
131 public static long Max(long val1, long val2)
132 {
133 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
134 }
135
136 // Token: 0x060007F1 RID: 2033 RVA: 0x0000207A File Offset: 0x0000027A
137 public static float Max(float val1, float val2)
138 {
139 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
140 }
141
142 // Token: 0x060007F2 RID: 2034 RVA: 0x0000207A File Offset: 0x0000027A
143 [CLSCompliant(false)]
145 public static ushort Max(ushort val1, ushort val2)
146 {
147 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
148 }
149
150 // Token: 0x060007F3 RID: 2035 RVA: 0x0000207A File Offset: 0x0000027A
152 public static byte Min(byte val1, byte val2)
153 {
154 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
155 }
156
157 // Token: 0x060007F4 RID: 2036 RVA: 0x0000207A File Offset: 0x0000027A
158 public static double Min(double val1, double val2)
159 {
160 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
161 }
162
163 // Token: 0x060007F5 RID: 2037 RVA: 0x0000207A File Offset: 0x0000027A
165 public static int Min(int val1, int val2)
166 {
167 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
168 }
169
170 // Token: 0x060007F6 RID: 2038 RVA: 0x0000207A File Offset: 0x0000027A
172 public static long Min(long val1, long val2)
173 {
174 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
175 }
176
177 // Token: 0x060007F7 RID: 2039 RVA: 0x0000207A File Offset: 0x0000027A
178 public static float Min(float val1, float val2)
179 {
180 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
181 }
182
183 // Token: 0x060007F8 RID: 2040 RVA: 0x0000207A File Offset: 0x0000027A
185 [CLSCompliant(false)]
186 public static uint Min(uint val1, uint val2)
187 {
188 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
189 }
190
191 // Token: 0x060007F9 RID: 2041 RVA: 0x0000207A File Offset: 0x0000027A
192 public static double Round(double a)
193 {
194 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
195 }
196
197 // Token: 0x060007FA RID: 2042 RVA: 0x00012C94 File Offset: 0x00010E94
198 public static double Round(double value, int digits)
199 {
200 /*
201An exception occurred when decompiling this method (060007FA)
202
203ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Double System.Math::Round(System.Double,System.Int32)
204
205 ---> System.Exception: Basic block has to end with unconditional control flow.
206{
207 IL_0000:
208 brtrue(IL_0000, ldc.i4:bool(1))
209}
210
211 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
212 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
213 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
214 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
215 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
216 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
217 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
218 --- End of inner exception stack trace ---
219 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
220 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
221*/;
222 }
223
224 // Token: 0x060007FB RID: 2043 RVA: 0x00012CA4 File Offset: 0x00010EA4
225 public static double Round(double value, int digits, MidpointRounding mode)
226 {
227 /*
228An exception occurred when decompiling this method (060007FB)
229
230ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Double System.Math::Round(System.Double,System.Int32,System.MidpointRounding)
231
232 ---> System.Exception: Basic block has to end with unconditional control flow.
233{
234 IL_0005:
235 brtrue(IL_0000, ldloc:int32[exp:bool](var_0_01))
236}
237
238 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
239 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
240 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
241 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
242 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
243 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
244 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
245 --- End of inner exception stack trace ---
246 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
247 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
248*/;
249 }
250
251 // Token: 0x060007FC RID: 2044 RVA: 0x00012CB8 File Offset: 0x00010EB8
252 public static int Sign(double value)
253 {
254 return 1;
255 }
256
257 // Token: 0x060007FD RID: 2045 RVA: 0x0000207A File Offset: 0x0000027A
258 public static int Sign(int value)
259 {
260 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
261 }
262
263 // Token: 0x060007FE RID: 2046 RVA: 0x0000207A File Offset: 0x0000027A
264 public static int Sign(long value)
265 {
266 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
267 }
268
269 // Token: 0x060007FF RID: 2047 RVA: 0x00012CC8 File Offset: 0x00010EC8
270 public static int Sign(float value)
271 {
272 return 1;
273 }
274
275 // Token: 0x06000800 RID: 2048 RVA: 0x0000207A File Offset: 0x0000027A
276 private static void ThrowMinMaxException<T>(T min, T max)
277 {
278 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
279 }
280
281 // Token: 0x06000801 RID: 2049 RVA: 0x0000207A File Offset: 0x0000027A
282 public static double Abs(double value)
283 {
284 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
285 }
286
287 // Token: 0x06000802 RID: 2050 RVA: 0x0000207A File Offset: 0x0000027A
288 public static float Abs(float value)
289 {
290 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
291 }
292
293 // Token: 0x06000803 RID: 2051 RVA: 0x0000207A File Offset: 0x0000027A
294 public static double Acos(double d)
295 {
296 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
297 }
298
299 // Token: 0x06000804 RID: 2052 RVA: 0x0000207A File Offset: 0x0000027A
300 public static double Atan(double d)
301 {
302 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
303 }
304
305 // Token: 0x06000805 RID: 2053 RVA: 0x0000207A File Offset: 0x0000027A
306 public static double Atan2(double y, double x)
307 {
308 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
309 }
310
311 // Token: 0x06000806 RID: 2054 RVA: 0x0000207A File Offset: 0x0000027A
312 public static double Ceiling(double a)
313 {
314 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
315 }
316
317 // Token: 0x06000807 RID: 2055 RVA: 0x0000207A File Offset: 0x0000027A
318 public static double Cos(double d)
319 {
320 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
321 }
322
323 // Token: 0x06000808 RID: 2056 RVA: 0x0000207A File Offset: 0x0000027A
324 public static double Floor(double d)
325 {
326 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
327 }
328
329 // Token: 0x06000809 RID: 2057 RVA: 0x0000207A File Offset: 0x0000027A
330 public static double Log(double d)
331 {
332 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
333 }
334
335 // Token: 0x0600080A RID: 2058 RVA: 0x0000207A File Offset: 0x0000027A
336 public static double Pow(double x, double y)
337 {
338 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
339 }
340
341 // Token: 0x0600080B RID: 2059 RVA: 0x0000207A File Offset: 0x0000027A
342 public static double Sin(double a)
343 {
344 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
345 }
346
347 // Token: 0x0600080C RID: 2060 RVA: 0x0000207A File Offset: 0x0000027A
348 public static double Sqrt(double d)
349 {
350 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
351 }
352
353 // Token: 0x0600080D RID: 2061 RVA: 0x0000207A File Offset: 0x0000027A
354 public static double Tan(double a)
355 {
356 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
357 }
358
359 // Token: 0x0600080E RID: 2062 RVA: 0x0000207A File Offset: 0x0000027A
360 private unsafe static double ModF(double x, double* intptr)
361 {
362 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
363 }
364
365 // Token: 0x0600080F RID: 2063 RVA: 0x00012CD8 File Offset: 0x00010ED8
366 // Note: this type is marked as 'beforefieldinit'.
367 static Math()
368 {
369 }
370
371 // Token: 0x04000365 RID: 869
372 private static double doubleRoundLimit;
373
374 // Token: 0x04000366 RID: 870
375 private static double[] roundPower10Double;
376 }
377}
class f__AnonymousType0<< Count > j__TPar
static double Atan(double d)
Definition Math.cs:300
static double Min(double val1, double val2)
Definition Math.cs:158
static double Acos(double d)
Definition Math.cs:294
static double Cos(double d)
Definition Math.cs:318
static int Abs(int value)
Definition Math.cs:13
static double Round(double value, int digits)
Definition Math.cs:198
static void ThrowMinMaxException< T >(T min, T max)
Definition Math.cs:276
static float Min(float val1, float val2)
Definition Math.cs:178
static int Sign(float value)
Definition Math.cs:270
static int DivRem(int a, int b, [Out] int result)
Definition Math.cs:44
static byte Min(byte val1, byte val2)
Definition Math.cs:152
static double Tan(double a)
Definition Math.cs:354
static ushort Max(ushort val1, ushort val2)
Definition Math.cs:145
static double Atan2(double y, double x)
Definition Math.cs:306
static double Sqrt(double d)
Definition Math.cs:348
static double Pow(double x, double y)
Definition Math.cs:336
static int Sign(int value)
Definition Math.cs:258
static double Ceiling(double a)
Definition Math.cs:312
static float Abs(float value)
Definition Math.cs:288
static int Min(int val1, int val2)
Definition Math.cs:165
static double IEEERemainder(double x, double y)
Definition Math.cs:56
static double Max(double val1, double val2)
Definition Math.cs:117
static uint Min(uint val1, uint val2)
Definition Math.cs:186
static int Sign(double value)
Definition Math.cs:252
static int Clamp(int value, int min, int max)
Definition Math.cs:50
static double Log(double a, double newBase)
Definition Math.cs:83
static double Log(double d)
Definition Math.cs:330
static long Max(long val1, long val2)
Definition Math.cs:131
static Math()
Definition Math.cs:367
static int Max(int val1, int val2)
Definition Math.cs:124
static double Abs(double value)
Definition Math.cs:282
static double Round(double value, int digits, MidpointRounding mode)
Definition Math.cs:225
static double Sin(double a)
Definition Math.cs:342
static float Max(float val1, float val2)
Definition Math.cs:137
static void ThrowAbsOverflow()
Definition Math.cs:38
static double doubleRoundLimit
Definition Math.cs:372
static long Min(long val1, long val2)
Definition Math.cs:172
static double[] roundPower10Double
Definition Math.cs:375
static int Sign(long value)
Definition Math.cs:264
static double Floor(double d)
Definition Math.cs:324
static double Round(double a)
Definition Math.cs:192
static unsafe double ModF(double x, double *intptr)
Definition Math.cs:360
static byte Max(byte val1, byte val2)
Definition Math.cs:111