Advertisement

MMX memcpy.. For DJGPP

Started by November 17, 2000 09:29 AM
-1 comments, last by Geron 24 years, 2 months ago
I saw this mmx-memcopy routine on this board a while agou
  
void __fastcall copy_mem_mmx_a(void *dest, void *src, long size)
{
  __asm
  {
    mov esi,src
    mov edi,dest
    mov eax,size
    L1:
    movq mm0,[esi]
    movq [edi],mm0
    add esi,8
    add edi,8
    sub eax, 8
    jnz L1
    emms
  }
}
  
Looks nice, but Im using DJGPP, so i need to "convert" this to the GCC inline-assembly-syntax... Can someone please help me?
//Geron ? ,,,__oOo_(O.O)_oOo__| | | | | | | | || | | | | | | | |

This topic is closed to new replies.

Advertisement