summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSøren Sandmann <sandmann@redhat.com>2007-05-22 10:00:46 -0400
committerSøren Sandmann <sandmann@redhat.com>2007-05-22 10:00:46 -0400
commite32b240145ee7bbc2e69020b0bb00c33c68acf15 (patch)
tree24dbeabda2f0590fa9beed0849e6740593a8b093
parente5cf135170198a33429b00f7c506a84054f0297e (diff)
Detect endianness
-rw-r--r--TODO2
-rw-r--r--pixman/pixman-private.h8
2 files changed, 8 insertions, 2 deletions
diff --git a/TODO b/TODO
index 2a0a856..6ed36a9 100644
--- a/TODO
+++ b/TODO
@@ -58,5 +58,3 @@
the X server will be changing them.
- Make sure the endian-ness macros are defined correctly.
-
-- Detect MMX code properly
diff --git a/pixman/pixman-private.h b/pixman/pixman-private.h
index ab3f2d2..85a670f 100644
--- a/pixman/pixman-private.h
+++ b/pixman/pixman-private.h
@@ -15,6 +15,14 @@
#define TRUE 1
#endif
+#ifdef WORDS_BIGENDIAN
+# define IMAGE_BYTE_ORDER MSBFirst
+# define BITMAP_BIT_ORDER MSBFirst
+#else
+# define IMAGE_BYTE_ORDER LSBFirst
+# define BITMAP_BIT_ORDER LSBFirst
+#endif
+
#define DEBUG 1
#if defined (__GNUC__)