projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f539de
)
Disable x86 iround() version on BeOS with gcc < 2.95.x, as it choke GAS.
author
Philippe Houdoin
<phoudoin@freedesktop.org>
Tue, 24 Aug 2004 08:54:04 +0000
(08:54 +0000)
committer
Philippe Houdoin
<phoudoin@freedesktop.org>
Tue, 24 Aug 2004 08:54:04 +0000
(08:54 +0000)
BTW, that's remove the requirement to build Mesa on BeOS with gcc 2.95.3.
Still recommanded for performance, thought ;-)
src/mesa/main/imports.h
patch
|
blob
|
history
diff --git
a/src/mesa/main/imports.h
b/src/mesa/main/imports.h
index bc2cc8bc8b9091ab83585da32b5adbb0532836ff..6b705f64154e63afc58d6ee40755b5c13f6577f2 100644
(file)
--- a/
src/mesa/main/imports.h
+++ b/
src/mesa/main/imports.h
@@
-377,7
+377,8
@@
static INLINE int iround(float f)
return r;
}
#define IROUND(x) iround(x)
-#elif defined(USE_X86_ASM) && defined(__GNUC__) && defined(__i386__)
+#elif defined(USE_X86_ASM) && defined(__GNUC__) && defined(__i386__) && \
+ (!defined(__BEOS__) || (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)))
static INLINE int iround(float f)
{
int r;