ref: 1c004e408303a04439385c0cd42efc4cc94be2e9 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; }