ctlz implementation for 32-bit