diff options
author | Ian Romanick <[email protected]> | 2004-06-29 19:08:20 +0000 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2004-06-29 19:08:20 +0000 |
commit | 8e77da1cd7d63af5e7ffcf7ea220cdaf1bdc8162 (patch) | |
tree | 0c4880d81a752b0ded4c75374cba6caa77e971da /src/mesa/main | |
parent | c61c7cb8e4100476d5feb976c39a23b1ed7b564a (diff) |
First phase of TLS work. At this point SPARC assembly dispatch is
broken, but it will be fixed "shortly." This is pretty much the same
as the patch I sent to the dri-devel list on 22-Jun-2004.
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/glheader.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/glheader.h b/src/mesa/main/glheader.h index 19eff31841e..23956fdcf07 100644 --- a/src/mesa/main/glheader.h +++ b/src/mesa/main/glheader.h @@ -328,6 +328,12 @@ typedef GLushort GLhalfARB; #endif +#if !defined __GNUC__ || __GNUC__ < 3 +# define __builtin_expect(x, y) x +#endif + + + /** * Sometimes we treat GLfloats as GLints. On x86 systems, moving a float * as a int (thereby using integer registers instead of FP registers) is |