memcpy vs slice copy

Sergey Gromov snake.scaly at gmail.com
Sun Mar 15 08:02:28 PDT 2009


Sun, 15 Mar 2009 10:31:10 -0400, bearophile wrote:

> The ASM of the inner loop:
> 
> L:  movl    _h, %eax
>     movl    %eax, (%edx)
>     movzwl  _h+4, %eax
>     movw    %ax, 4(%edx)
>     addl    $6, %edx
>     cmpl    %ecx, %edx
>     jne L

Obviously, a memcpy intrinsic is at work here.  DMD calls an actual CRT
function instead.



More information about the Digitalmars-d mailing list