4 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 (2)
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\Threading\ThreadLocal.cs (1)
556
uint newSize = BitOperations.
RoundUpToPowerOf2
((uint)minSize);