]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Don't use _memcpy in assembly
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 3 Mar 2016 11:28:42 +0000 (11:28 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 3 Mar 2016 11:28:42 +0000 (11:28 +0000)
src/libcryptobox/siphash/avx2.S

index 995fc76364bf7a60f669bcabf2bb8c1336c691c0..070419c6005ba5726158c8adb133e9e23a544bf0 100644 (file)
@@ -103,7 +103,12 @@ LBB0_5:                                 ## %for.end
        movq    %rbx, %rdx
        subq    %rax, %rdx
        leaq    -16(%rbp), %rdi
-       callq   _memcpy
+       movq    %rdx, %rcx
+       shrq    $2, %rcx
+       rep;    movsl
+       movq    %rdx, %rcx
+       andq    $3, %rcx
+       rep;    movsb
        movb    %bl, -9(%rbp)
        vmovq   -16(%rbp), %xmm4        ## xmm4 = mem[0],zero
        vpslldq $8, %xmm4, %xmm0        ## xmm0 = zero,zero,zero,zero,zero,zero,zero,zero,xmm4[0,1,2,3,4,5,6,7]