qh_is_pwr_of_2_s32()

QNX SDP8.0QNX Helpers Developer's GuideAPIDeveloper

Return whether the absolute value of an int32_t value is a power of two

Synopsis:

#include <qh/misc.h>
static bool qh_is_pwr_of_2_s32(const int32_t val)

Library:

qh

Returns:

Returns true if the absolute value is a power of two; otherwise, false.

Page updated: