You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
auto test1(const char* str, unsigned len) {
auto cmp_len = len == 0 ? 0 : 1;
return __builtin_memcmp("a", str, cmp_len);
}
results in a memcmp call, even though it's almost certainly faster to inline the memcmp call, especially when the place where the result is used is available.