Method IsPow2
- Namespace
- Zyl.VectorTraits.Numerics
- Assembly
- VectorTraits.dll
IsPow2(int)
Evaluate whether a given integral value is a power of 2.
public static bool IsPow2(int value)
Parameters
valueintThe value.
Returns
IsPow2(uint)
Evaluate whether a given integral value is a power of 2.
[CLSCompliant(false)]
public static bool IsPow2(uint value)
Parameters
valueuintThe value.
Returns
IsPow2(long)
Evaluate whether a given integral value is a power of 2.
public static bool IsPow2(long value)
Parameters
valuelongThe value.
Returns
IsPow2(ulong)
Evaluate whether a given integral value is a power of 2.
[CLSCompliant(false)]
public static bool IsPow2(ulong value)
Parameters
valueulongThe value.
Returns
IsPow2(ExInt128)
Evaluate whether a given integral value is a power of 2.
public static bool IsPow2(ExInt128 value)
Parameters
valueExInt128The value.
Returns
IsPow2(ExUInt128)
Evaluate whether a given integral value is a power of 2.
[CLSCompliant(false)]
public static bool IsPow2(ExUInt128 value)
Parameters
valueExUInt128The value.
Returns
IsPow2(Int128)
Evaluate whether a given integral value is a power of 2.
public static bool IsPow2(Int128 value)
Parameters
valueInt128The value.
Returns
IsPow2(UInt128)
Evaluate whether a given integral value is a power of 2.
[CLSCompliant(false)]
public static bool IsPow2(UInt128 value)
Parameters
valueUInt128The value.
Returns
IsPow2(nint)
Evaluate whether a given integral value is a power of 2.
public static bool IsPow2(nint value)
Parameters
valuenintThe value.
Returns
IsPow2(nuint)
Evaluate whether a given integral value is a power of 2.
[CLSCompliant(false)]
public static bool IsPow2(nuint value)
Parameters
valuenuintThe value.