4 ms·
you can write your own memset that bypasses all of that. Its just 2 lines of code.
by FrozenVoid 7y ago
you can write your own memset that bypasses all of that.
Its just 2 lines of code.
- gmueckl 7y agoAnd that will be slower than calling memset() unless you have a really smart compiler.
- rurban 7y agoI don't trust any memset at all. Literally every single memset I looked at was either broken, too slow or insecure. Mostly the wellknown glibc, freebsd, msvcrt and compiler implementations.