Tidying up of branch-predict hint macros LIKELY/UNLIKELY. Fixes

#271504.  (Florian Krohm, britzel@acm.org)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11736
This commit is contained in:
Julian Seward
2011-05-09 21:54:44 +00:00
parent 2146140b60
commit e22276cef0
3 changed files with 6 additions and 6 deletions

View File

@@ -32,7 +32,7 @@
#define __PUB_TOOL_LIBCBASSERT_H
#define tl_assert(expr) \
((void) ((expr) ? 0 : \
((void) (LIKELY(expr) ? 0 : \
(VG_(assert_fail) (/*isCore?*/False, (const Char*)#expr, \
(const Char*)__FILE__, __LINE__, \
(const Char*)__PRETTY_FUNCTION__, \
@@ -40,7 +40,7 @@
0)))
#define tl_assert2(expr, format, args...) \
((void) ((expr) ? 0 : \
((void) (LIKELY(expr) ? 0 : \
(VG_(assert_fail) (/*isCore?*/False, (const Char*)#expr, \
(const Char*)__FILE__, __LINE__, \
(const Char*)__PRETTY_FUNCTION__, \