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); 1823highBits = ((ulong)_bits[^1] << BitsPerUInt32) + (uint)_bits[^2]; 2381bits = [(uint)(x >> (BitsPerUInt32 * 0))]; 2385bits = [(uint)(x >> (BitsPerUInt32 * 0)), 2386(uint)(x >> (BitsPerUInt32 * 1))]; 2390bits = [(uint)(x >> (BitsPerUInt32 * 0)), 2391(uint)(x >> (BitsPerUInt32 * 1)), 2392(uint)(x >> (BitsPerUInt32 * 2))]; 2396bits = [(uint)(x >> (BitsPerUInt32 * 0)), 2397(uint)(x >> (BitsPerUInt32 * 1)), 2398(uint)(x >> (BitsPerUInt32 * 2)), 2399(uint)(x >> (BitsPerUInt32 * 3))]; 2452bits = [(uint)(value >> (BitsPerUInt32 * 0))]; 2456bits = [(uint)(value >> (BitsPerUInt32 * 0)), 2457(uint)(value >> (BitsPerUInt32 * 1))]; 2461bits = [(uint)(value >> (BitsPerUInt32 * 0)), 2462(uint)(value >> (BitsPerUInt32 * 1)), 2463(uint)(value >> (BitsPerUInt32 * 2))]; 2467bits = [(uint)(value >> (BitsPerUInt32 * 0)), 2468(uint)(value >> (BitsPerUInt32 * 1)), 2469(uint)(value >> (BitsPerUInt32 * 2)), 2470(uint)(value >> (BitsPerUInt32 * 3))]; 2575return value >> MinIntSplitShift >> BitsPerUInt32; 2669return value << BitsPerUInt32 << MinIntSplitShift; 3248if (Environment.Is64BitProcess && (uint)(value._bits[^1] >> BitsPerUInt32) == 0) 3250result -= BitsPerUInt32; 3317bool halfLimb = (uint)(bits[^1] >> BitsPerUInt32) == 0; 3336: (bits[^1] == ((nuint)UInt32HighBit << BitsPerUInt32) && firstNonZeroLimb == bits.Length - 1); 3365int digitShift32 = (int)(0x80000000 / BitsPerUInt32); 3373(digitShift32, smallShift32) = Math.DivRem(-(int)rotateLeftAmount, BitsPerUInt32); 3379(digitShift32, smallShift32) = Math.DivRem((int)rotateLeftAmount, BitsPerUInt32); 3387int nuintSmallShift = (digitShift32 & 1) * BitsPerUInt32 + smallShift32; 3423zd[^1] |= carry >> BitsPerUInt32; 3446nuint overflow = zd[^1] >> BitsPerUInt32; 3503limbs[i] = ((v & 0xFFFFFFFF) << BitsPerUInt32) | (v >> BitsPerUInt32); 5217return value << BitsPerUInt32 << MinIntSplitShift;