Return true if the argument is a power of two > 0. Ex. isPowerOf2_32(0x00100000U) == true (32 bit edition.)

Synopsis

Declared in <llvm/Support/MathExtras.h>

constexpr
bool
isPowerOf2_32(uint32_t Value);

Return Value

True if Value is a power of two greater than zero.

Parameters

Name

Description

Value

32‐bit value to test.

Created with MrDocs