[xproto] Xmd: Add FP3232 to the core proto
Jasper St. Pierre
jstpierre at mecheye.net
Thu Oct 25 15:46:18 PDT 2012
From: "Jasper St. Pierre" <jstpierre at mecheye.net>
So that these can be shared between other extensions besides
XInput2.
---
Xmd.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/Xmd.h b/Xmd.h
index 96cc08f..6947fcc 100644
--- a/Xmd.h
+++ b/Xmd.h
@@ -44,6 +44,9 @@ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
SOFTWARE.
******************************************************************/
+
+#include <stdint.h>
+
#ifndef XMD_H
# define XMD_H 1
/*
@@ -144,6 +147,12 @@ typedef CARD16 BITS16;
typedef CARD8 BYTE;
typedef CARD8 BOOL;
+typedef int32_t FP1616;
+typedef struct _FP3232 {
+ int32_t integral;
+ uint32_t frac;
+} FP3232;
+
/*
* definitions for sign-extending bitfields on 64-bit architectures
*/
--
1.7.12.1
More information about the xorg-devel
mailing list