MATH_IS_PWR2()

Determine if a value is a power of 2.

Files

lib_math.h

Prototype

 MATH_IS_PWR2(nbr)

Arguments

nbr

Value to validate.

Returned Value

DEF_YES, 'nbr' is a power of 2.

DEF_NO,  'nbr' is not a power of 2.

Required Configuration

None.

Notes / Warnings

None.