Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Div96By32()

static uint System.Decimal.DecCalc.Div96By32 ( ref Buf12 bufNum,
uint den )
inlinestaticprivate

Definition at line 331 of file Decimal.cs.

332 {
333 ulong high;
334 ulong num2;
335 if (bufNum.U2 != 0)
336 {
337 high = bufNum.High64;
338 num2 = (bufNum.High64 = high / den);
339 high = (high - (uint)((int)num2 * (int)den) << 32) | bufNum.U0;
340 if (high == 0L)
341 {
342 return 0u;
343 }
344 return (uint)(int)high - (bufNum.U0 = (uint)(high / den)) * den;
345 }
346 high = bufNum.Low64;
347 if (high == 0L)
348 {
349 return 0u;
350 }
351 num2 = (bufNum.Low64 = high / den);
352 return (uint)(high - num2 * den);
353 }

References System.Runtime.Serialization.Dictionary, and System.L.

Referenced by System.Decimal.DecCalc.VarDecDiv().