9 references to RoundUpToPowerOf2
System.Collections.Specialized (1)
System\Collections\Specialized\BitVector32.cs (1)
147short mask = (short)(BitOperations.RoundUpToPowerOf2((uint)(ushort)maxValue + 1) - 1);
System.Linq.Expressions (1)
System\Dynamic\Utils\CacheDict.cs (1)
44int alignedSize = (int)BitOperations.RoundUpToPowerOf2((uint)size);
System.Private.CoreLib (5)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentQueue.cs (1)
97length = (int)Math.Min(BitOperations.RoundUpToPowerOf2((uint)count), MaxSegmentLength);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Random.cs (1)
535int mask = (int)BitOperations.RoundUpToPowerOf2((uint)choices.Length) - 1;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComWrappers.cs (1)
1341uint bucketCount = BitOperations.RoundUpToPowerOf2((uint)Math.Min(Environment.ProcessorCount, MaxBucketCount));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadLocal.cs (1)
556uint newSize = BitOperations.RoundUpToPowerOf2((uint)minSize);
System\Runtime\ThunkPool.cs (1)
49public static readonly uint PageSize = BitOperations.RoundUpToPowerOf2((uint)Math.Max(ThunkCodeSize * NumThunksPerBlock, ThunkDataSize * NumThunksPerBlock + IntPtr.Size));
System.Runtime.Numerics (1)
System\Numerics\BigIntegerCalculator.DivRem.cs (1)
191int m = (int)BitOperations.RoundUpToPowerOf2((uint)right.Length / (uint)DivideBurnikelZieglerThreshold + 1);
System.Security.Cryptography (1)
System\Security\Cryptography\RandomNumberGenerator.cs (1)
394int mask = (int)BitOperations.RoundUpToPowerOf2((uint)choices.Length) - 1;