11 references to IsPow2
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
412
public static bool IsPow2(byte value) => BitOperations.
IsPow2
((uint)value);
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
431
public static bool IsPow2(ushort value) => BitOperations.
IsPow2
((uint)value);
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
469
public static bool IsPow2(uint value) => BitOperations.
IsPow2
(value);
System.Private.Xml (7)
System\Xml\Schema\XsdDateTime.cs (2)
170
Debug.Assert(BitOperations.
IsPow2
((uint)kinds), "One and only one DateTime type code can be set.");
214
Debug.Assert(BitOperations.
IsPow2
((uint)kinds), "Only one DateTime type code can be set.");
System\Xml\Xsl\IlGen\XmlIlVisitor.cs (1)
3268
if (!BitOperations.
IsPow2
((uint)kinds))
System\Xml\Xsl\XmlQueryTypeFactory.cs (1)
706
if (BitOperations.
IsPow2
(kinds))
System\Xml\Xsl\Xslt\CompilerScopeManager.cs (2)
149
Debug.Assert(flag == (flag & ScopeFlags.ExclusiveFlags) && BitOperations.
IsPow2
((uint)flag), "One exclusive flag");
168
Debug.Assert(flag == (flag & ScopeFlags.InheritedFlags) && BitOperations.
IsPow2
((uint)flag), "one inherited flag");
System\Xml\Xsl\Xslt\MatcherBuilder.cs (1)
183
if (!BitOperations.
IsPow2
((uint)nodeKinds))
System.Runtime.Numerics (1)
System\Numerics\BigInteger.cs (1)
650
return BitOperations.
IsPow2
(_bits[iu]) && !_bits.AsSpan(0, iu).ContainsAnyExcept(0u);