DEV Community

loading...

Discussion on: Daily Challenge #281 - Area or Perimeter

Collapse
qm3ster profile image
Mihail Malo
        mov     rcx, rsi
        imul    rcx, rdi
        lea     rax, [rsi + rdi]
        add     rax, rax
        cmp     rdi, rsi
        cmove   rax, rcx
        ret

ooga booga