mirror of
https://github.com/janishutz/eth-summaries.git
synced 2026-01-12 01:58:24 +00:00
8 lines
263 B
ArmAsm
8 lines
263 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 |