abs_s.s 163 B

1234567891011121314
  1. .text
  2. .align 4
  3. .code 32
  4. .global abs_s
  5. .type abs_s, %function
  6. abs_s:
  7. LSL r0,r0,#16
  8. CMP r0,#0
  9. SUBLT r1,r0,#1
  10. EORLT r0,r1,r1, ASR #31
  11. ASR r0,r0,#16
  12. BX lr