std1.0.0-beta-7 SafeC docs

std :: bit

Function std::ilog2

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

int ilog2(unsigned long long x)

Integer log2 (floor). Returns -1 for x == 0.