mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-04-02 12:32:55 +00:00
Bug 792689 - Add some double negations to the macros in Likely.h; r=Waldo
This commit is contained in:
parent
abf742d34d
commit
232ff717cd
@ -12,11 +12,11 @@
|
||||
#define mozilla_Likely_h_
|
||||
|
||||
#if defined(__clang__) || (defined(__GNUC__) && (__GNUC__ > 2))
|
||||
# define MOZ_LIKELY(x) (__builtin_expect((x), 1))
|
||||
# define MOZ_UNLIKELY(x) (__builtin_expect((x), 0))
|
||||
# define MOZ_LIKELY(x) (__builtin_expect(!!(x), 1))
|
||||
# define MOZ_UNLIKELY(x) (__builtin_expect(!!(x), 0))
|
||||
#else
|
||||
# define MOZ_LIKELY(x) (x)
|
||||
# define MOZ_UNLIKELY(x) (x)
|
||||
# define MOZ_LIKELY(x) (!!(x))
|
||||
# define MOZ_UNLIKELY(x) (!!(x))
|
||||
#endif
|
||||
|
||||
#endif /* mozilla_Likely_h_ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user