Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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.

  • No labels