7 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 (3)
src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentQueue.cs (1)
97length = (int)Math.Min(BitOperations.RoundUpToPowerOf2((uint)count), MaxSegmentLength);
src\libraries\System.Private.CoreLib\src\System\Random.cs (1)
247int mask = (int)BitOperations.RoundUpToPowerOf2((uint)choices.Length) - 1;
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadLocal.cs (1)
559uint newSize = BitOperations.RoundUpToPowerOf2((uint)minSize);
System.Runtime.Numerics (1)
System\Numerics\BigIntegerCalculator.DivRem.cs (1)
373int 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;