Table of Contents

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 int

The value.

Returns

bool

IsPow2(uint)

Evaluate whether a given integral value is a power of 2.

[CLSCompliant(false)]
public static bool IsPow2(uint value)

Parameters

value uint

The value.

Returns

bool

IsPow2(long)

Evaluate whether a given integral value is a power of 2.

public static bool IsPow2(long value)

Parameters

value long

The value.

Returns

bool

IsPow2(ulong)

Evaluate whether a given integral value is a power of 2.

[CLSCompliant(false)]
public static bool IsPow2(ulong value)

Parameters

value ulong

The value.

Returns

bool

IsPow2(ExInt128)

Evaluate whether a given integral value is a power of 2.

public static bool IsPow2(ExInt128 value)

Parameters

value ExInt128

The value.

Returns

bool

IsPow2(ExUInt128)

Evaluate whether a given integral value is a power of 2.

[CLSCompliant(false)]
public static bool IsPow2(ExUInt128 value)

Parameters

value ExUInt128

The value.

Returns

bool

IsPow2(Int128)

Evaluate whether a given integral value is a power of 2.

public static bool IsPow2(Int128 value)

Parameters

value Int128

The value.

Returns

bool

IsPow2(UInt128)

Evaluate whether a given integral value is a power of 2.

[CLSCompliant(false)]
public static bool IsPow2(UInt128 value)

Parameters

value UInt128

The value.

Returns

bool

IsPow2(nint)

Evaluate whether a given integral value is a power of 2.

public static bool IsPow2(nint value)

Parameters

value nint

The value.

Returns

bool

IsPow2(nuint)

Evaluate whether a given integral value is a power of 2.

[CLSCompliant(false)]
public static bool IsPow2(nuint value)

Parameters

value nuint

The value.

Returns

bool