Emulate ffsl/ffs for targeting PNaCl, using __builtin_clz.