ctlz and cttz implementation with same logic