[libc-commits] [PATCH] D143732: [libc] Fix exp2f and prevent misuse of likely/unlikely
Tue Ly via Phabricator via libc-commits
libc-commits at lists.llvm.org
Fri Feb 10 05:54:02 PST 2023
lntue accepted this revision.
lntue added inline comments.
This revision is now accepted and ready to land.
================
Comment at: libc/src/__support/macros/attributes.h:27
+template <typename T>
+constexpr inline bool expects_bool_condition(T value, T expected) {
+ return __builtin_expect(value, expected);
----------------
Shall you use `LIBC_INLINE` here?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143732/new/
https://reviews.llvm.org/D143732
More information about the libc-commits
mailing list