mirror of
https://github.com/janishutz/eth-summaries.git
synced 2026-01-12 01:58:24 +00:00
9 lines
260 B
ArmAsm
9 lines
260 B
ArmAsm
absdiff:
|
|
movl %edi, %eax
|
|
subl %esi, %eax # arg2 - arg1 -> eax
|
|
movl %esi, %edx
|
|
subl %edi, %edx # arg1 - arg2 -> edx
|
|
cmpl %esi, %edi # Set condition flags
|
|
cmovle %edx, %eax # edx -> eax, only if eax <= edx
|
|
ret
|