Changeset 75 for trunk


Ignore:
Timestamp:
Mar 27, 2008, 9:32:40 AM (11 years ago)
Author:
cameron
Message:

Add likely/unlikely macros a la Linux

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/lib_simd.h

    r58 r75  
    2222#include "altivec_simd.h"
    2323#endif
     24
     25/* Useful definitions from Linux kernel*/
     26#define likely(x) __builtin_expect((x),1)
     27#define unlikely(x) __builtin_expect((x),0)
    2428
    2529/* Shift forward and back operations, based on endianness */
Note: See TracChangeset for help on using the changeset viewer.