12 references to IsPow2
System.Private.CoreLib (8)
src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentQueueSegment.cs (1)
49Debug.Assert(BitOperations.IsPow2(boundedLength), $"Must be a power of 2, got {boundedLength}");
src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
509public static bool IsPow2(short value) => BitOperations.IsPow2(value);
src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
542public static bool IsPow2(int value) => BitOperations.IsPow2(value);
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\ConditionalWeakTable.cs (3)
463Debug.Assert(BitOperations.IsPow2(InitialCapacity)); 486Debug.Assert(BitOperations.IsPow2(buckets.Length)); 689Debug.Assert(BitOperations.IsPow2(newSize));
src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
470public static bool IsPow2(sbyte value) => BitOperations.IsPow2(value);
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.T.cs (1)
28if (!BitOperations.IsPow2(sizeof(T))) { goto CannotVectorize; }
System.Private.Xml.Linq (1)
System\Xml\Linq\XHashtable.cs (1)
147Debug.Assert(BitOperations.IsPow2(capacity), "capacity must be a power of 2");
System.Runtime.Numerics (1)
System\Numerics\BigInteger.cs (1)
628return BitOperations.IsPow2(_sign);
System.Security.Cryptography (1)
System\Security\Cryptography\RandomNumberGenerator.cs (1)
360if (BitOperations.IsPow2(choices.Length) && choices.Length <= 256)
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\RegexCharClass.cs (1)
1255return BitOperations.IsPow2(mask);