Re:Memcmp is the most efficient way to compare large chunks ...
by rurban on Tuesday May 08, 2018 @01:44AM
(#17019072)
You don't see the point. The point is to write proper loops in C which the compiler can optimize. This the fastest way and benefits all platforms. Special cases which are actually slower should be removed.
Compilers which are not able to optimize proper loop patterns should be fixed and documented as such. Haven't checked gcc-8 yet, but older versions should not be used for such core functions. libc should be compiled with clang.
I'm not going to spend my life on those sorts of optimizations unless there are good reasons.