7 references to RoundUpToPowerOf2
System.Collections.Specialized (1)
System\Collections\Specialized\BitVector32.cs (1)
147
short mask = (short)(BitOperations.
RoundUpToPowerOf2
((uint)(ushort)maxValue + 1) - 1);
System.Linq.Expressions (1)
System\Dynamic\Utils\CacheDict.cs (1)
44
int alignedSize = (int)BitOperations.
RoundUpToPowerOf2
((uint)size);
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentQueue.cs (1)
97
length = (int)Math.Min(BitOperations.
RoundUpToPowerOf2
((uint)count), MaxSegmentLength);
src\libraries\System.Private.CoreLib\src\System\Random.cs (1)
247
int mask = (int)BitOperations.
RoundUpToPowerOf2
((uint)choices.Length) - 1;
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadLocal.cs (1)
559
uint newSize = BitOperations.
RoundUpToPowerOf2
((uint)minSize);
System.Runtime.Numerics (1)
System\Numerics\BigIntegerCalculator.DivRem.cs (1)
373
int m = (int)BitOperations.
RoundUpToPowerOf2
((uint)right.Length / (uint)DivideBurnikelZieglerThreshold + 1);
System.Security.Cryptography (1)
System\Security\Cryptography\RandomNumberGenerator.cs (1)
394
int mask = (int)BitOperations.
RoundUpToPowerOf2
((uint)choices.Length) - 1;