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];
2464bits = [(uint)(x >> (BitsPerUInt32 * 0))];
2468bits = [(uint)(x >> (BitsPerUInt32 * 0)),
2469(uint)(x >> (BitsPerUInt32 * 1))];
2473bits = [(uint)(x >> (BitsPerUInt32 * 0)),
2474(uint)(x >> (BitsPerUInt32 * 1)),
2475(uint)(x >> (BitsPerUInt32 * 2))];
2479bits = [(uint)(x >> (BitsPerUInt32 * 0)),
2480(uint)(x >> (BitsPerUInt32 * 1)),
2481(uint)(x >> (BitsPerUInt32 * 2)),
2482(uint)(x >> (BitsPerUInt32 * 3))];
2535bits = [(uint)(value >> (BitsPerUInt32 * 0))];
2539bits = [(uint)(value >> (BitsPerUInt32 * 0)),
2540(uint)(value >> (BitsPerUInt32 * 1))];
2544bits = [(uint)(value >> (BitsPerUInt32 * 0)),
2545(uint)(value >> (BitsPerUInt32 * 1)),
2546(uint)(value >> (BitsPerUInt32 * 2))];
2550bits = [(uint)(value >> (BitsPerUInt32 * 0)),
2551(uint)(value >> (BitsPerUInt32 * 1)),
2552(uint)(value >> (BitsPerUInt32 * 2)),
2553(uint)(value >> (BitsPerUInt32 * 3))];
2658return value >> MinIntSplitShift >> BitsPerUInt32;
2752return value << BitsPerUInt32 << MinIntSplitShift;
3331if (Environment.Is64BitProcess && (uint)(value._bits[^1] >> BitsPerUInt32) == 0)
3333result -= BitsPerUInt32;
3400bool halfLimb = (uint)(bits[^1] >> BitsPerUInt32) == 0;
3419: (bits[^1] == ((nuint)UInt32HighBit << BitsPerUInt32) && firstNonZeroLimb == bits.Length - 1);
3448int digitShift32 = (int)(0x80000000 / BitsPerUInt32);
3456(digitShift32, smallShift32) = Math.DivRem(-(int)rotateLeftAmount, BitsPerUInt32);
3462(digitShift32, smallShift32) = Math.DivRem((int)rotateLeftAmount, BitsPerUInt32);
3470int nuintSmallShift = (digitShift32 & 1) * BitsPerUInt32 + smallShift32;
3506zd[^1] |= carry >> BitsPerUInt32;
3529nuint overflow = zd[^1] >> BitsPerUInt32;
3586limbs[i] = ((v & 0xFFFFFFFF) << BitsPerUInt32) | (v >> BitsPerUInt32);
5300return value << BitsPerUInt32 << MinIntSplitShift;