summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
authorWang Zhenyu <zhenyu.z.wang@intel.com>2007-02-02 11:26:57 +0800
committerWang Zhenyu <zhenyu.z.wang@intel.com>2007-02-02 11:26:57 +0800
commitf7489bbec150349bf03bea8d9d55451dbc92bfc2 (patch)
tree377d4b84c21229ce88c4c8f0587207fed7fc8617 /src/common.h
parentf1285ecb72e807ac10db398fa983bf69d4154d97 (diff)
parentae6d3585a4d96aa4dc05ca8563cebfa7796324ef (diff)
Merge branch 'modesetting' into crestline
Conflicts: src/i830_display.c src/i830_tv.c src/i830_xf86Crtc.c
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 d72bf2a9..92dc2cff 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 ", \