9 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 (5)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentQueue.cs (1)
97
length = (int)Math.Min(BitOperations.
RoundUpToPowerOf2
((uint)count), MaxSegmentLength);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Random.cs (1)
535
int mask = (int)BitOperations.
RoundUpToPowerOf2
((uint)choices.Length) - 1;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComWrappers.cs (1)
1341
uint bucketCount = BitOperations.
RoundUpToPowerOf2
((uint)Math.Min(Environment.ProcessorCount, MaxBucketCount));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadLocal.cs (1)
556
uint newSize = BitOperations.
RoundUpToPowerOf2
((uint)minSize);
System\Runtime\ThunkPool.cs (1)
49
public 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)
191
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;