std1.0.0-beta-7 SafeC docs

std :: bit

Function std::next_pow2

#include <std/bit.h> source ยท definition

unsigned long long next_pow2(unsigned long long x)

Round x up to the next power of two (returns x if already a power of two). Returns 1 for x == 0.