This is an archive of the discontinued LLVM Phabricator instance.

[libc] Add a reasonably optimized version for bcmp
ClosedPublic

Authored by gchatelet on Nov 23 2021, 3:48 AM.

Details

Summary

This is based on current memcmp implementation.

Diff Detail

Event Timeline

gchatelet created this revision.Nov 23 2021, 3:48 AM
gchatelet requested review of this revision.Nov 23 2021, 3:48 AM
sivachandra accepted this revision.Nov 29 2021, 8:43 AM

No objections from my side.

This revision is now accepted and ready to land.Nov 29 2021, 8:43 AM
This revision was automatically updated to reflect the committed changes.

This is broken for aarch64: https://lab.llvm.org/buildbot/#/builders/138/builds/14620.
In the case of aarch64, it looks like _64 is defined only for memset.

This is broken for aarch64: https://lab.llvm.org/buildbot/#/builders/138/builds/14620.
In the case of aarch64, it looks like _64 is defined only for memset.

Thx for reporting, I'll send a fix ASAP.