Why is memcmp(a, b, 4) only sometimes optimized to a uint32 comparison? – stackoverflow.com

Given this code: #include <string.h> int equal4(const char* a, const char* b) { return memcmp(a, b, 4) == 0; } int less4(const char* a, const char* b) { return memcmp(a, b, 4) < 0; ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

0 Comment to "Why is memcmp(a, b, 4) only sometimes optimized to a uint32 comparison? – stackoverflow.com"