Changeset 104

Show
Ignore:
Timestamp:
07/17/05 04:40:29 (3 years ago)
Author:
jtv
Message:

Make likely() and unlikely() actually work

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/support.h

    r59 r104  
    4949 
    5050 
    51 // TODO: Useful implementation 
    5251/// As in Linux kernel: evaluate condition, which is likely to be true 
    53 #define likely(x) (x
     52#define likely(x) __builtin_expect(x,1
    5453/// As in Linux kernel: evaluate condition, which is likely to be false 
    55 #define unlikely(x) (x
     54#define unlikely(x) __builtin_expect(x,0
    5655 
    5756#endif