ref: 10d16c10bed72a177a99e0a9a3f3caca6c38ce94 dir: /builtins_plan9.c/
#include "platform.h" int fl_clz(uint32_t x) { uint32_t r; if(x == 0) return 32; for(r = 0; (x & (1UL<<31)) == 0; x <<= 1, r++); return r; }