diff options
author | Wang Zhenyu <zhenyu.z.wang@intel.com> | 2007-02-02 11:26:57 +0800 |
---|---|---|
committer | Wang Zhenyu <zhenyu.z.wang@intel.com> | 2007-02-02 11:26:57 +0800 |
commit | f7489bbec150349bf03bea8d9d55451dbc92bfc2 (patch) | |
tree | 377d4b84c21229ce88c4c8f0587207fed7fc8617 /src/common.h | |
parent | f1285ecb72e807ac10db398fa983bf69d4154d97 (diff) | |
parent | ae6d3585a4d96aa4dc05ca8563cebfa7796324ef (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.h | 11 |
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 ", \ |