likely mistake

This commit is contained in:
albert
2002-12-04 04:04:19 +00:00
parent 0a27b5d132
commit d42a6ee787
2 changed files with 8 additions and 8 deletions

View File

@ -25,8 +25,8 @@
// won't alias anything, and aligned enough for anything
#define MALLOC __attribute__ ((__malloc__))
// tell gcc what to expect: if(unlikely(err)) die(err);
#define likely(x) __builtin_expect((x),1)
#define unlikely(x) __builtin_expect((x),0)
#define likely(x) __builtin_expect(!!(x),1)
#define unlikely(x) __builtin_expect(!!(x),0)
#else
#define MALLOC
#define likely(x) (x)