qh_is_pwr_of_2_s16()
QNX SDP8.0QNX Helpers Developer's GuideAPIDeveloper
Return whether the absolute value of an int16_t value is a power of two
Synopsis:
#include <qh/misc.h>
static bool qh_is_pwr_of_2_s16(const int16_t val)
Library:
qhReturns:
Returns true
if the absolute value is a power of two; otherwise, false
.
Page updated: