Changeset 109

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

Make likely/unlikely definitions conditional

Files:

Legend:

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

    r104 r109  
    4949 
    5050 
     51#ifndef likely 
    5152/// As in Linux kernel: evaluate condition, which is likely to be true 
    5253#define likely(x) __builtin_expect(x,1) 
     54#endif 
     55 
     56#ifndef unlikely 
    5357/// As in Linux kernel: evaluate condition, which is likely to be false 
    5458#define unlikely(x) __builtin_expect(x,0) 
     59#endif 
    5560 
    5661#endif