summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2007-01-31 12:50:31 -0800
committerEric Anholt <eric@anholt.net>2007-01-31 12:50:31 -0800
commitc47210d94ed17ad9e8e489a1e1886732e6dc7220 (patch)
treeb675c4bd113f0e384a1ff20e633d0e55a9696506 /src/common.h
parent72ea0e514dcbebd009833c21f40e9bfb84074628 (diff)
Move the render code to non-EXA-specific filenames.
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
index 561dfac7..91e31b5f 100644
--- a/src/common.h
+++ b/src/common.h
@@ -130,6 +130,17 @@ extern void I830DPRINTF_stub(const char *filename, int line,
outring &= ringmask; \
} while (0)
+union intfloat {
+ float f;
+ unsigned int ui;
+};
+
+#define OUT_RING_F(x) do { \
+ union intfloat tmp; \
+ tmp.f = (float)(x); \
+ OUT_RING(tmp.ui); \
+} while(0)
+
#define ADVANCE_LP_RING() do { \
if (ringused > needed) \
FatalError("%s: ADVANCE_LP_RING: exceeded allocation %d/%d\n ", \