ref: 518cfe8d0c1a6eb4f90cdb68861fe0cd3a2e0d74 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; }