4 ms·
I happen to be working on some 32/64 bit code right now, and this article has some very useful tips. Pretty sure they mixed up arguments on their memset() call
by asynchronous13 14y ago
I happen to be working on some 32/64 bit code right now, and this article has some very useful tips. Pretty sure they mixed up arguments on their memset() call in section 3 though:
memset(values, ARRAY_SIZE * sizeof(size_t), 0);
should be:
memset(values, 0, ARRAY_SIZE * sizeof(size_t));
That would not be a fun bug to track down.
- AndreyKarpov 14y agoThank you. I will correct it.