Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

mmx memcpy

melolonsky
Beginner
620 Views
I'm new to mmx technology and
would like to speed up my application
by simply replacing the C++ memcpy
function with a faster mmx one.

AMD provides a copy/paste c++
and assembler version of the memcpy
function optimized for AMD.

I couldn't find one at the intel site
nor in the web. I found many documents
about mmx, I downloaded the IPP and MKL
but none of them offers a copy/paste
memcpy function.

Please help
Thanks
-Mel
0 Kudos
1 Reply
Brandon_H_Intel
Employee
620 Views
Here's what the Intel C++ Compiler generates:

;;; memcpy(a, b, c);

mov edi, a
mov esi, b
mov ecx, c
push ecx
shr ecx, 2
rep movsd
pop ecx
and ecx, 3
rep movsb

Brandon
Intel Developer Support

For on-line assistance: http://support.intel.com/support/performancetools
For product support information: http://www.intel.com/software/products/support
* Intel and Pentium are registered trademarks of Intel Corporation or its subsidiaries in the United States and other countries
* Other names and brands may be claimed as the property of others

0 Kudos
Reply