@@ -538,7 +538,7 @@ private static void IncreaseScale64(ref Buf12 bufNum, uint power)
538
538
/// <returns>Returns new scale factor. bufRes updated in place, always 3 uints.</returns>
539
539
private static unsafe int ScaleResult( Buf24* bufRes, uint hiRes, int scale)
540
540
{
541
- Debug. Assert( hiRes < bufRes-> Length) ;
541
+ Debug. Assert( hiRes < Buf24 . Length) ;
542
542
uint * result = ( uint * ) bufRes;
543
543
544
544
// See if we need to scale the result. The combined scale must
@@ -666,7 +666,7 @@ private static unsafe int ScaleResult(Buf24* bufRes, uint hiRes, int scale)
666
666
uint cur = 0 ;
667
667
do
668
668
{
669
- Debug . Assert ( cur + 1 < bufRes -> Length ) ;
669
+ Debug . Assert ( cur + 1 < Buf24 . Length ) ;
670
670
}
671
671
while ( ++ result[ ++ cur] == 0 ) ;
672
672
@@ -1007,7 +1007,7 @@ internal static unsafe void DecAddSub(ref DecCalc d1, ref DecCalc d2, bool sign)
1007
1007
uint * rgulNum = ( uint * ) & bufNum;
1008
1008
for ( uint cur = 0 ; ; )
1009
1009
{
1010
- Debug . Assert ( cur < bufNum . Length ) ;
1010
+ Debug . Assert ( cur < Buf24 . Length ) ;
1011
1011
tmp64 += UInt32x32To64( rgulNum [ cur ] , power ) ;
1012
1012
rgulNum [ cur ] = ( uint ) tmp64 ;
1013
1013
cur ++ ;
@@ -1019,7 +1019,7 @@ internal static unsafe void DecAddSub(ref DecCalc d1, ref DecCalc d2, bool sign)
1019
1019
if ( ( uint ) tmp64 != 0 )
1020
1020
{
1021
1021
// We're extending the result by another uint.
1022
- Debug. Assert( hiProd + 1 < bufNum . Length) ;
1022
+ Debug. Assert( hiProd + 1 < Buf24 . Length) ;
1023
1023
rgulNum[ ++ hiProd] = ( uint ) tmp64;
1024
1024
}
1025
1025
}
@@ -1055,9 +1055,9 @@ internal static unsafe void DecAddSub(ref DecCalc d1, ref DecCalc d2, bool sign)
1055
1055
uint cur = 3 ;
1056
1056
do
1057
1057
{
1058
- Debug. Assert( cur < bufNum . Length) ;
1058
+ Debug. Assert( cur < Buf24 . Length) ;
1059
1059
} while ( number[ cur++ ] -- == 0 ) ;
1060
- Debug. Assert( hiProd < bufNum . Length) ;
1060
+ Debug. Assert( hiProd < Buf24 . Length) ;
1061
1061
if ( number[ hiProd] == 0 && -- hiProd <= 2 )
1062
1062
goto ReturnResult;
1063
1063
}
@@ -1082,7 +1082,7 @@ internal static unsafe void DecAddSub(ref DecCalc d1, ref DecCalc d2, bool sign)
1082
1082
uint * number = ( uint * ) & bufNum;
1083
1083
for ( uint cur = 3 ; ++ number[ cur++ ] == 0 ; )
1084
1084
{
1085
- Debug. Assert( cur < bufNum . Length) ;
1085
+ Debug. Assert( cur < Buf24 . Length) ;
1086
1086
if ( hiProd < cur)
1087
1087
{
1088
1088
number[ cur] = 1 ;
@@ -2327,7 +2327,7 @@ private static unsafe void VarDecModFull(ref DecCalc d1, ref DecCalc d2, int sca
2327
2327
// The high bit of the dividend must not be set.
2328
2328
if ( tmp64 > int . MaxValue)
2329
2329
{
2330
- Debug. Assert( high + 1 < b . Length) ;
2330
+ Debug. Assert( high + 1 < Buf28 . Length) ;
2331
2331
buf[ ++ high] = ( uint ) ( tmp64 >> 32 ) ;
2332
2332
}
2333
2333
@@ -2683,15 +2683,15 @@ public ulong High64
2683
2683
#endif
2684
2684
}
2685
2685
2686
- public int Length => 6 ;
2686
+ public const int Length = 6 ;
2687
2687
}
2688
2688
2689
2689
private struct Buf28
2690
2690
{
2691
2691
public Buf24 Buf24;
2692
2692
public uint U6 ;
2693
2693
2694
- public int Length => 7 ;
2694
+ public const int Length = 7 ;
2695
2695
}
2696
2696
}
2697
2697
}
0 commit comments