Determine if a value is a power of 2.
Files
lib_math.h
Prototype
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.
Determine if a value is a power of 2.
lib_math.h
nbr
Value to validate.
DEF_YES
, 'nbr
' is a power of 2.
DEF_NO
, 'nbr
' is not a power of 2.
None.
None.