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