This is an archive of the discontinued LLVM Phabricator instance.

[libc] Fix exp2f and prevent misuse of likely/unlikely
ClosedPublic

Authored by gchatelet on Feb 10 2023, 5:50 AM.

Details

Summary

Let's make sure that we only accept boolean expressions when using likely/unlikely.

Diff Detail

Event Timeline

gchatelet created this revision.Feb 10 2023, 5:50 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptFeb 10 2023, 5:50 AM
gchatelet requested review of this revision.Feb 10 2023, 5:50 AM
lntue accepted this revision.Feb 10 2023, 5:53 AM
lntue added inline comments.
libc/src/__support/macros/attributes.h
27

Shall you use LIBC_INLINE here?

This revision is now accepted and ready to land.Feb 10 2023, 5:53 AM
gchatelet updated this revision to Diff 496448.Feb 10 2023, 6:00 AM
  • address comments
gchatelet marked an inline comment as done.Feb 10 2023, 6:00 AM

Done

This revision was landed with ongoing or failed builds.Feb 10 2023, 6:02 AM
This revision was automatically updated to reflect the committed changes.