diff options
Diffstat (limited to 'zap/source/amd64/mem/cp.s')
-rw-r--r-- | zap/source/amd64/mem/cp.s | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/zap/source/amd64/mem/cp.s b/zap/source/amd64/mem/cp.s index 5985f04..57e716f 100644 --- a/zap/source/amd64/mem/cp.s +++ b/zap/source/amd64/mem/cp.s @@ -9,21 +9,22 @@ zap_cp: # zap_i8 val1; # zap_i04 val8; + # unsigned int128_t val01; # unsigned int256_t val02; .big02cp: cmp rdx,0x20 jl .big01cp # if (num < 0x20u) goto big01cp; - vmovups ymm0,[rsi] # val01 = *src; - vmovups [rdi],ymm0 # *dest = val01; + vmovups ymm0,[rsi] # val02 = *src; + vmovups [rdi],ymm0 # *dest = val02; add rsi,0x20 # dest += 0x20u; add rdi,0x20 # src += 0x20u; sub rdx,0x20 # num -= 0x20u; jmp .big02cp # goto big02cp; -.big01cp: +.big01cp: # big01cp:; cmp rdx,0x10 jl .wrdcp # if (num < 0x10u) goto wrdcp; @@ -35,7 +36,7 @@ zap_cp: sub rdx,0x10 # num -= 0x10u; jmp .big01cp # goto big01cp; -.wrdcp: +.wrdcp: # wrdcp:; cmp rdx,0x8 jl .bytecp # if (num < 0x8u) goto bytecp; @@ -47,7 +48,7 @@ zap_cp: sub rdx,0x8 # num -= 0x8u; jmp .wrdcp # goto wrdcp -.bytecp: +.bytecp: # bytecp:; test rdx,rdx # if (rem == 0x0) jz .done # goto done |