summaryrefslogtreecommitdiff
path: root/src/mesa/main/macros.h
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2002-06-12 00:52:50 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2002-06-12 00:52:50 +0000
commit1013e4650473ef0aceac7f3cd571b982ff249250 (patch)
treec87f4e1385cd453e5ac5e1596a7d10b0b3d0c56e /src/mesa/main/macros.h
parent35883ceb9389f9e5b4be8233f2326367c6aecddb (diff)
Moved big/little endian code to glheader.h.
Define either MESA_BIG_ENDIAN or MESA_LITTLE_ENDIAN.
Diffstat (limited to 'src/mesa/main/macros.h')
-rw-r--r--src/mesa/main/macros.h18
1 files changed, 3 insertions, 15 deletions
diff --git a/src/mesa/main/macros.h b/src/mesa/main/macros.h
index 294c928e35..038518d90a 100644
--- a/src/mesa/main/macros.h
+++ b/src/mesa/main/macros.h
@@ -1,4 +1,4 @@
-/* $Id: macros.h,v 1.27 2002/06/05 16:48:54 brianp Exp $ */
+/* $Id: macros.h,v 1.28 2002/06/12 00:52:50 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -454,20 +454,8 @@ do { \
-/* Byte swapping
- */
-
-#if defined(BYTE_ORDER) && defined(BIG_ENDIAN) && BYTE_ORDER == BIG_ENDIAN
-#include <byteswap.h>
-#define CPU_TO_LE32( x ) bswap_32( x )
-#else
-#define CPU_TO_LE32( x ) ( x )
-#endif
-
-#define LE32_TO_CPU( x ) CPU_TO_LE32( x )
-
-
/* Generic color packing macros
+ * XXX We may move these into texutil.h at some point.
*/
#define PACK_COLOR_8888( a, b, c, d ) \
@@ -493,7 +481,7 @@ do { \
(((a) & 0xe0) | (((b) & 0xe0) >> 3) | (((c) & 0xc0) >> 6))
-#if defined(BYTE_ORDER) && defined(BIG_ENDIAN) && BYTE_ORDER == BIG_ENDIAN
+#ifdef MESA_BIG_ENDIAN
#define PACK_COLOR_8888_LE( a, b, c, d ) PACK_COLOR_8888( d, c, b, a )