11 references to IsPow2
System.Private.CoreLib (7)
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)
499public static bool IsPow2(short value) => BitOperations.IsPow2(value);
src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
538public static bool IsPow2(int value) => BitOperations.IsPow2(value);
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\ConditionalWeakTable.cs (2)
590Debug.Assert(BitOperations.IsPow2(buckets.Length)); 795Debug.Assert(BitOperations.IsPow2(newSize));
src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
462public static bool IsPow2(sbyte value) => BitOperations.IsPow2(value);
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.T.cs (1)
26if (!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)
643return BitOperations.IsPow2(_sign);
System.Security.Cryptography (1)
System\Security\Cryptography\RandomNumberGenerator.cs (1)
362if (BitOperations.IsPow2(choices.Length))
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\RegexCharClass.cs (1)
1255return BitOperations.IsPow2(mask);