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