On 05/30/2016 11:37 AM, Florian Weimer wrote:

 * Expand __memcmp_eq for small constant sizes with loads and
   comparison, fall back to a memcmp call.

Should we export such a function from glibc?  I expect it's fairly
common.  Computing the tail difference costs a few cycles.

At the moment the patch ensures that no actual memcmp_eq function is called, it's either expanded inline or we fall back to memcmp. But there's no reason why it couldn't be added under some appropriate name.


Bernd

Reply via email to