has anyone ever used memset with a c arg other than 0? why?
-
Show this thread
-
if you're gonna have a 1-byte memset, why not a 2- or a 4-byte variant? And don't tell me about wmemset, since that's 2 bytes on windows and 4 bytes everywhere else
1 reply 0 retweets 0 likesShow this thread -
also 8-byte, in case you want to fill a region with identical pointers I guess and "just write a loop" isn't as fast; memset is actually has asm optimizations in most libcs (for small buffers it's SIMD; for large it's cache-bypassing REP STOS)
1 reply 0 retweets 0 likesShow this thread
I often have memset8, memset16, memset32 when I'm building freestanding systems, along with all the other useful memory operations. This is on 32-bit systems; on 64-bit ones I'd add that variant too.pic.twitter.com/gbdXLhpfUM
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.