41 references to BitsPerUInt32
System.Runtime.Numerics (41)
System\Numerics\BigInteger.cs (41)
32private const int MinIntSplitShift = int.MaxValue - BitsPerUInt32 + 1;
131_bits = x <= uint.MaxValue ? [((uint)x)] : [(uint)x, (uint)(x >> BitsPerUInt32)];
155_bits = value <= uint.MaxValue ? [((uint)value)] : [(uint)value, (uint)(value >> BitsPerUInt32)];
242_bits[cu + 1] = (uint)(man >> (cbit + BitsPerUInt32));
246_bits[cu - 1] = (nuint)(uint)man << (BitsPerUInt32 - cbit);
2284highBits = ((ulong)_bits[^1] << BitsPerUInt32) + (uint)_bits[^2];
3095bits = [(uint)(x >> (BitsPerUInt32 * 0))];
3099bits = [(uint)(x >> (BitsPerUInt32 * 0)),
3100(uint)(x >> (BitsPerUInt32 * 1))];
3104bits = [(uint)(x >> (BitsPerUInt32 * 0)),
3105(uint)(x >> (BitsPerUInt32 * 1)),
3106(uint)(x >> (BitsPerUInt32 * 2))];
3110bits = [(uint)(x >> (BitsPerUInt32 * 0)),
3111(uint)(x >> (BitsPerUInt32 * 1)),
3112(uint)(x >> (BitsPerUInt32 * 2)),
3113(uint)(x >> (BitsPerUInt32 * 3))];
3166bits = [(uint)(value >> (BitsPerUInt32 * 0))];
3170bits = [(uint)(value >> (BitsPerUInt32 * 0)),
3171(uint)(value >> (BitsPerUInt32 * 1))];
3175bits = [(uint)(value >> (BitsPerUInt32 * 0)),
3176(uint)(value >> (BitsPerUInt32 * 1)),
3177(uint)(value >> (BitsPerUInt32 * 2))];
3181bits = [(uint)(value >> (BitsPerUInt32 * 0)),
3182(uint)(value >> (BitsPerUInt32 * 1)),
3183(uint)(value >> (BitsPerUInt32 * 2)),
3184(uint)(value >> (BitsPerUInt32 * 3))];
3289return value >> MinIntSplitShift >> BitsPerUInt32;
3403return value << BitsPerUInt32 << MinIntSplitShift;
4039if (Environment.Is64BitProcess && (uint)(value._bits[^1] >> BitsPerUInt32) == 0)
4041result -= BitsPerUInt32;
4108bool halfLimb = (uint)(bits[^1] >> BitsPerUInt32) == 0;
4127: (bits[^1] == ((nuint)UInt32HighBit << BitsPerUInt32) && firstNonZeroLimb == bits.Length - 1);
4156int digitShift32 = (int)(0x80000000 / BitsPerUInt32);
4164(digitShift32, smallShift32) = Math.DivRem(-(int)rotateLeftAmount, BitsPerUInt32);
4170(digitShift32, smallShift32) = Math.DivRem((int)rotateLeftAmount, BitsPerUInt32);
4178int nuintSmallShift = (digitShift32 & 1) * BitsPerUInt32 + smallShift32;
4214zd[^1] |= carry >> BitsPerUInt32;
4237nuint overflow = zd[^1] >> BitsPerUInt32;
4294limbs[i] = ((v & 0xFFFFFFFF) << BitsPerUInt32) | (v >> BitsPerUInt32);
6011return value << BitsPerUInt32 << MinIntSplitShift;