This is an archive of the discontinued LLVM Phabricator instance.

[libc][NFC] Allow memcmp to be inlined
ClosedPublic

Authored by gchatelet on Nov 3 2021, 7:38 AM.

Details

Summary

Similar to D113097 although not strictly necessary for now. It helps
keeping the same structure for all memory functions.

Diff Detail

Event Timeline

gchatelet created this revision.Nov 3 2021, 7:38 AM
gchatelet requested review of this revision.Nov 3 2021, 7:38 AM
gchatelet retitled this revision from [libc][NFC] Allow memcpy to be inlined to [libc][NFC] Allow memcmp to be inlined.Nov 3 2021, 8:03 AM
gchatelet updated this revision to Diff 384444.Nov 3 2021, 8:06 AM
  • Fix commit message to use memcmp instead of memcpy
This revision is now accepted and ready to land.Nov 3 2021, 10:09 AM

LGTM with the same comment about header guards as the previous change.

gchatelet updated this revision to Diff 384711.Nov 4 2021, 5:10 AM
  • Rename filename
  • Rename function
  • Add header guard
This revision was automatically updated to reflect the committed changes.
libc/src/string/CMakeLists.txt