diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-01-06 13:46:48 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-01-06 13:46:48 +0100 |
commit | 55a5ac48c2abb4c7a97a829d3e9e2db86fafc081 (patch) | |
tree | b7fa73dfa753135f80c771977eb14b16d895c964 /include/sal/types.h | |
parent | 409d1817b8d0d0364c6e07f5a4ae14da8bc6a852 (diff) |
Get parenthesisation right
...for
#define COMMA ,
if (SAL_LIKELY(void() COMMA true)) ...
Change-Id: I607d3da52e769035b35cefe1103675d89d5a3b9b
Diffstat (limited to 'include/sal/types.h')
-rw-r--r-- | include/sal/types.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sal/types.h b/include/sal/types.h index f70422af2ee1..97806de60350 100644 --- a/include/sal/types.h +++ b/include/sal/types.h @@ -636,7 +636,7 @@ template< typename T1, typename T2 > inline T1 static_int_cast(T2 n) { Returns: the boolean value of expr (expressed as either int 1 or 0) */ -# define SAL_LIKELY(expr) (__builtin_expect(SAL_DETAIL_BOOLEAN_EXPR(expr), 1)) +# define SAL_LIKELY(expr) __builtin_expect(SAL_DETAIL_BOOLEAN_EXPR((expr)), 1) /** An optimization annotation: denotes that expression is unlikely to be true. @@ -648,7 +648,7 @@ template< typename T1, typename T2 > inline T1 static_int_cast(T2 n) { Returns: the boolean value of expr (expressed as either int 1 or 0) */ -# define SAL_UNLIKELY(expr) (__builtin_expect(SAL_DETAIL_BOOLEAN_EXPR(expr), 0)) +# define SAL_UNLIKELY(expr) __builtin_expect(SAL_DETAIL_BOOLEAN_EXPR((expr)), 0) /** An optimization annotation: tells the compiler to work harder at this code |