Detect endianness
authorSøren Sandmann <sandmann@redhat.com>
Tue, 22 May 2007 14:00:46 +0000 (10:00 -0400)
committerSøren Sandmann <sandmann@redhat.com>
Tue, 22 May 2007 14:00:46 +0000 (10:00 -0400)
TODO
pixman/pixman-private.h

diff --git a/TODO b/TODO
index 2a0a856..6ed36a9 100644 (file)
--- 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
index ab3f2d2..85a670f 100644 (file)
 #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__)