Re: [PATCH v3] lib/string.c: implement a basic bcmp

2019-03-13 Thread Steven Rostedt
On March 13, 2019 4:37:37 PM EDT, Nick Desaulniers wrote: >A recent optimization in Clang (r355672) lowers comparisons of the >return value of memcmp against zero to comparisons of the return value >of bcmp against zero. This helps some platforms that implement bcmp >more efficiently than mem

[PATCH v3] lib/string.c: implement a basic bcmp

2019-03-13 Thread Nick Desaulniers
A recent optimization in Clang (r355672) lowers comparisons of the return value of memcmp against zero to comparisons of the return value of bcmp against zero. This helps some platforms that implement bcmp more efficiently than memcmp. glibc simply aliases bcmp to memcmp, but an optimized implemen