49 references to NumericsHelpers
System.Numerics (49)
System\Numerics\BigInteger.cs (24)
152
hash =
NumericsHelpers
.CombineHash(hash, (int)_bits[iv]);
171
return
NumericsHelpers
.MakeUlong(_bits[1], _bits[0]) == uu;
189
return
NumericsHelpers
.MakeUlong(_bits[1], _bits[0]) == other;
222
ulong uuTmp = cu == 2 ?
NumericsHelpers
.MakeUlong(_bits[1], _bits[0]) : _bits[0];
238
ulong uuTmp = cu == 2 ?
NumericsHelpers
.MakeUlong(_bits[1], _bits[0]) : _bits[0];
301
NumericsHelpers
.DangerousMakeTwosComplement(dwords); // mutates dwords
350
NumericsHelpers
.DangerousMakeTwosComplement(dwords); // mutates dwords
620
NumericsHelpers
.DangerousMakeTwosComplement(val); // mutates val
767
NumericsHelpers
.DangerousMakeTwosComplement(value); // mutates val
972
NumericsHelpers
.Swap(ref regRes, ref regTmp);
979
NumericsHelpers
.Swap(ref regVal, ref regTmp);
1115
NumericsHelpers
.Swap(ref regRes, ref regTmp);
1120
NumericsHelpers
.Swap(ref regSquare, ref regTmp);
1262
uu =
NumericsHelpers
.MakeUlong(value._bits[1], value._bits[0]);
1290
return
NumericsHelpers
.MakeUlong(value._bits[1], value._bits[0]);
1313
return
NumericsHelpers
.GetDoubleFromParts(sign, exp, man);
1440
NumericsHelpers
.DangerousMakeTwosComplement(xd); // mutates xd
1465
NumericsHelpers
.DangerousMakeTwosComplement(zd); // mutates zd
1736
NumericsHelpers
.GetDoubleParts(value, out sign, out exp, out man, out fFinite);
1851
uint uHi =
NumericsHelpers
.GetHi(uu);
1854
if (
NumericsHelpers
.GetLo(uu) != 0 && ++uHi == 0)
1864
uHiRes =
NumericsHelpers
.GetLo(uu);
1874
uint uHi =
NumericsHelpers
.GetHi(uu);
1882
uHiRes =
NumericsHelpers
.GetLo(uu);
System\Numerics\BigIntegerBuilder.cs (24)
92
_uSmall =
NumericsHelpers
.Abs(bn._Sign);
186
uint uHi =
NumericsHelpers
.GetHi(uu);
188
_uSmall =
NumericsHelpers
.GetLo(uu);
213
man =
NumericsHelpers
.MakeUlong(_rgu[cuLeft + 1], _rgu[cuLeft]);
217
if (cuLeft > 0 && (cbit =
NumericsHelpers
.CbitHighZero(_rgu[cuLeft + 1])) > 0) {
717
uu =
NumericsHelpers
.MakeUlong((uint)uu, _rgu[iv]);
736
uu =
NumericsHelpers
.MakeUlong((uint)uu, regNum._rgu[iv]);
774
NumericsHelpers
.Swap(ref this, ref regTmp);
781
NumericsHelpers
.Swap(ref this, ref regQuo);
824
int cbitShiftLeft =
NumericsHelpers
.CbitHighZero(uDen);
843
ulong uuNum =
NumericsHelpers
.MakeUlong(uNumHi, regNum._rgu[iu + cuDen - 1]);
860
while (uuRem <= uint.MaxValue && uuQuo * uDenNext >
NumericsHelpers
.MakeUlong((uint)uuRem, uNumNext)) {
1022
return
NumericsHelpers
.MakeUlong(_rgu[cu - 1], _rgu[cu - 2]);
1126
NumericsHelpers
.Swap(ref reg1, ref reg2);
1127
NumericsHelpers
.Swap(ref cuMax, ref cuMin);
1134
reg1._uSmall =
NumericsHelpers
.GCD(reg1._uSmall, reg2._uSmall);
1136
reg1.Set(
NumericsHelpers
.GCD(Mod(ref reg1, reg2._uSmall), reg2._uSmall));
1141
reg1.Set(
NumericsHelpers
.GCD(reg1.GetHigh2(2), reg2.GetHigh2(2)));
1155
int cbit =
NumericsHelpers
.CbitHighZero(uu1 | uu2);
1162
NumericsHelpers
.Swap(ref uu1, ref uu2);
1163
NumericsHelpers
.Swap(ref reg1, ref reg2);
1181
if (
NumericsHelpers
.GetHi(uu2) == 0) {
1309
return
NumericsHelpers
.CbitLowZero(_uSmall);
1315
int cbit =
NumericsHelpers
.CbitLowZero(_rgu[iuMin]);
System\Numerics\BigNumber.cs (1)
555
ulong uuRes =
NumericsHelpers
.MakeUlong(rguDst[iuDst], uCarry);