diff options
author | Anthony Green <green@moxielogic.com> | 2012-01-23 13:47:38 -0500 |
---|---|---|
committer | Anthony Green <green@moxielogic.com> | 2012-01-23 13:47:38 -0500 |
commit | 8efc0b1f4027d5a3cbf205e55d422d94e60f3226 (patch) | |
tree | f869e811053c5f5506d4658ccb2dd0f4ea838457 /include | |
parent | 1df51398ae183dc208ba4599ee867278b04d13d3 (diff) | |
download | libffi-8efc0b1f4027d5a3cbf205e55d422d94e60f3226.tar.gz |
Unlikely fixes
Diffstat (limited to 'include')
-rw-r--r-- | include/ffi_common.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/ffi_common.h b/include/ffi_common.h index 919eec2..c179d68 100644 --- a/include/ffi_common.h +++ b/include/ffi_common.h @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------- - ffi_common.h - Copyright (C) 2011 Anthony Green + ffi_common.h - Copyright (C) 2011, 2012 Anthony Green Copyright (C) 2007 Free Software Foundation, Inc Copyright (c) 1996 Red Hat, Inc. @@ -118,8 +118,8 @@ typedef float FLOAT32; #ifndef __GNUC__ #define __builtin_expect(x, expected_value) (x) #endif -#define LIKELY(x) __builtin_expect((x),1) -#define UNLIKELY(x) __builtin_expect((x),1) +#define LIKELY(x) __builtin_expect(!!(x),1) +#define UNLIKELY(x) __builtin_expect((x)!=0,0) #ifdef __cplusplus } |