norm_l.s 149 B

12345678910111213141516
  1. .text
  2. .align 4
  3. .code 32
  4. .global norm_l
  5. .type norm_l, %function
  6. norm_l:
  7. CMP r0,#0
  8. BEQ END
  9. MVNLT r0,r0
  10. CLZ r0,r0
  11. SUB r0,r0,#1
  12. END:
  13. BX lr