diff options
| author | Nils Wallménius <nils@rockbox.org> | 2008-11-20 20:20:43 +0000 |
|---|---|---|
| committer | Nils Wallménius <nils@rockbox.org> | 2008-11-20 20:20:43 +0000 |
| commit | 1284c127f8e1f2ab693d523a009b7b2e553024a5 (patch) | |
| tree | d3f8ed90717b8e112ce4f7196174e950eb2c2344 /apps/plugins/mpegplayer | |
| parent | 7bdf9a339245058e0b394a3d3088698092c27f6f (diff) | |
| download | rockbox-1284c127f8e1f2ab693d523a009b7b2e553024a5.zip rockbox-1284c127f8e1f2ab693d523a009b7b2e553024a5.tar.gz rockbox-1284c127f8e1f2ab693d523a009b7b2e553024a5.tar.bz2 rockbox-1284c127f8e1f2ab693d523a009b7b2e553024a5.tar.xz | |
Introduce likely() and unlikely() macros, use to give gcc hints about which branch is likely to be taken in a conditional, use them in the midi player for a small speedup, use instead of similar EXPECT macros in tremor and use in mpegplayer
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19162 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/mpegplayer')
| -rw-r--r-- | apps/plugins/mpegplayer/attributes.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/apps/plugins/mpegplayer/attributes.h b/apps/plugins/mpegplayer/attributes.h index 9d70806..7ad83a3 100644 --- a/apps/plugins/mpegplayer/attributes.h +++ b/apps/plugins/mpegplayer/attributes.h @@ -32,10 +32,3 @@ #define ATTR_ALIGN(align) #endif -#ifdef HAVE_BUILTIN_EXPECT -#define likely(x) __builtin_expect ((x) != 0, 1) -#define unlikely(x) __builtin_expect ((x) != 0, 0) -#else -#define likely(x) (x) -#define unlikely(x) (x) -#endif |