Skip to content

Instantly share code, notes, and snippets.

@celskeggs
Created January 7, 2020 01:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save celskeggs/db24e886e63d7134ea2bbb9934c3184f to your computer and use it in GitHub Desktop.
Save celskeggs/db24e886e63d7134ea2bbb9934c3184f to your computer and use it in GitHub Desktop.
Memset optimization index
Implementation strategies:
- For loop with Duff's device
- `rep movsd` and similar
- mmx with movq on x86
- sse: movaps (16 byte aligned), caution about
https://stackoverflow.com/questions/3654905/faster-way-to-zero-memory-than-with-memset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment