ref: 62389c8990cafb8e99ae29b2bccbcd100ce4c7f0 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; }