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
value
intThe value.
Returns
IsPow2(uint)
Evaluate whether a given integral value is a power of 2.
[CLSCompliant(false)]
public static bool IsPow2(uint value)
Parameters
value
uintThe value.
Returns
IsPow2(long)
Evaluate whether a given integral value is a power of 2.
public static bool IsPow2(long value)
Parameters
value
longThe value.
Returns
IsPow2(ulong)
Evaluate whether a given integral value is a power of 2.
[CLSCompliant(false)]
public static bool IsPow2(ulong value)
Parameters
value
ulongThe value.
Returns
IsPow2(ExInt128)
Evaluate whether a given integral value is a power of 2.
public static bool IsPow2(ExInt128 value)
Parameters
value
ExInt128The value.
Returns
IsPow2(ExUInt128)
Evaluate whether a given integral value is a power of 2.
[CLSCompliant(false)]
public static bool IsPow2(ExUInt128 value)
Parameters
value
ExUInt128The value.
Returns
IsPow2(Int128)
Evaluate whether a given integral value is a power of 2.
public static bool IsPow2(Int128 value)
Parameters
value
Int128The value.
Returns
IsPow2(UInt128)
Evaluate whether a given integral value is a power of 2.
[CLSCompliant(false)]
public static bool IsPow2(UInt128 value)
Parameters
value
UInt128The value.
Returns
IsPow2(nint)
Evaluate whether a given integral value is a power of 2.
public static bool IsPow2(nint value)
Parameters
value
nintThe value.
Returns
IsPow2(nuint)
Evaluate whether a given integral value is a power of 2.
[CLSCompliant(false)]
public static bool IsPow2(nuint value)
Parameters
value
nuintThe value.