Skip to content

Instantly share code, notes, and snippets.

@gaving
Created October 3, 2010 19:52
Show Gist options
  • Select an option

  • Save gaving/608860 to your computer and use it in GitHub Desktop.

Select an option

Save gaving/608860 to your computer and use it in GitHub Desktop.
int *_memset32(int *p, int value, size_t count) {
asm {
mov EAX,value ;
mov ECX,count ;
mov EDX,EDI ;
mov EDI,p ;
rep ;
stosd ;
mov EAX,EDX ;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment