41 references to BitsPerUInt32
System.Runtime.Numerics (41)
System\Numerics\BigInteger.cs (41)
32private const int MinIntSplitShift = int.MaxValue - BitsPerUInt32 + 1;
127_bits = x <= uint.MaxValue ? [((uint)x)] : [(uint)x, (uint)(x >> BitsPerUInt32)];
151_bits = value <= uint.MaxValue ? [((uint)value)] : [(uint)value, (uint)(value >> BitsPerUInt32)];
238_bits[cu + 1] = (uint)(man >> (cbit + BitsPerUInt32));
242_bits[cu - 1] = (nuint)(uint)man << (BitsPerUInt32 - cbit);
1841highBits = ((ulong)_bits[^1] << BitsPerUInt32) + (uint)_bits[^2];
2573bits = [(uint)(x >> (BitsPerUInt32 * 0))];
2577bits = [(uint)(x >> (BitsPerUInt32 * 0)),
2578(uint)(x >> (BitsPerUInt32 * 1))];
2582bits = [(uint)(x >> (BitsPerUInt32 * 0)),
2583(uint)(x >> (BitsPerUInt32 * 1)),
2584(uint)(x >> (BitsPerUInt32 * 2))];
2588bits = [(uint)(x >> (BitsPerUInt32 * 0)),
2589(uint)(x >> (BitsPerUInt32 * 1)),
2590(uint)(x >> (BitsPerUInt32 * 2)),
2591(uint)(x >> (BitsPerUInt32 * 3))];
2644bits = [(uint)(value >> (BitsPerUInt32 * 0))];
2648bits = [(uint)(value >> (BitsPerUInt32 * 0)),
2649(uint)(value >> (BitsPerUInt32 * 1))];
2653bits = [(uint)(value >> (BitsPerUInt32 * 0)),
2654(uint)(value >> (BitsPerUInt32 * 1)),
2655(uint)(value >> (BitsPerUInt32 * 2))];
2659bits = [(uint)(value >> (BitsPerUInt32 * 0)),
2660(uint)(value >> (BitsPerUInt32 * 1)),
2661(uint)(value >> (BitsPerUInt32 * 2)),
2662(uint)(value >> (BitsPerUInt32 * 3))];
2767return value >> MinIntSplitShift >> BitsPerUInt32;
2861return value << BitsPerUInt32 << MinIntSplitShift;
3440if (Environment.Is64BitProcess && (uint)(value._bits[^1] >> BitsPerUInt32) == 0)
3442result -= BitsPerUInt32;
3509bool halfLimb = (uint)(bits[^1] >> BitsPerUInt32) == 0;
3528: (bits[^1] == ((nuint)UInt32HighBit << BitsPerUInt32) && firstNonZeroLimb == bits.Length - 1);
3557int digitShift32 = (int)(0x80000000 / BitsPerUInt32);
3565(digitShift32, smallShift32) = Math.DivRem(-(int)rotateLeftAmount, BitsPerUInt32);
3571(digitShift32, smallShift32) = Math.DivRem((int)rotateLeftAmount, BitsPerUInt32);
3579int nuintSmallShift = (digitShift32 & 1) * BitsPerUInt32 + smallShift32;
3615zd[^1] |= carry >> BitsPerUInt32;
3638nuint overflow = zd[^1] >> BitsPerUInt32;
3695limbs[i] = ((v & 0xFFFFFFFF) << BitsPerUInt32) | (v >> BitsPerUInt32);
5409return value << BitsPerUInt32 << MinIntSplitShift;