11 references to IsPow2
System.Private.CoreLib (7)
src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentQueueSegment.cs (1)
49
Debug.Assert(BitOperations.
IsPow2
(boundedLength), $"Must be a power of 2, got {boundedLength}");
src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
499
public static bool IsPow2(short value) => BitOperations.
IsPow2
(value);
src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
538
public static bool IsPow2(int value) => BitOperations.
IsPow2
(value);
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\ConditionalWeakTable.cs (2)
590
Debug.Assert(BitOperations.
IsPow2
(buckets.Length));
795
Debug.Assert(BitOperations.
IsPow2
(newSize));
src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
462
public static bool IsPow2(sbyte value) => BitOperations.
IsPow2
(value);
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.T.cs (1)
26
if (!BitOperations.
IsPow2
(sizeof(T))) { goto CannotVectorize; }
System.Private.Xml.Linq (1)
System\Xml\Linq\XHashtable.cs (1)
147
Debug.Assert(BitOperations.
IsPow2
(capacity), "capacity must be a power of 2");
System.Runtime.Numerics (1)
System\Numerics\BigInteger.cs (1)
643
return BitOperations.
IsPow2
(_sign);
System.Security.Cryptography (1)
System\Security\Cryptography\RandomNumberGenerator.cs (1)
362
if (BitOperations.
IsPow2
(choices.Length))
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\RegexCharClass.cs (1)
1255
return BitOperations.
IsPow2
(mask);