Module Name: xsrc
Committed By: riastradh
Date: Wed Jul 9 20:12:30 UTC 2014
Modified Files:
xsrc/external/mit/MesaLib/dist/src/mesa/main: compiler.h
Log Message:
Define CPU_TO_LE16/LE16_TO_CPU consistently in main/compiler.h.
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.3 -r1.2 \
xsrc/external/mit/MesaLib/dist/src/mesa/main/compiler.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: xsrc/external/mit/MesaLib/dist/src/mesa/main/compiler.h
diff -u xsrc/external/mit/MesaLib/dist/src/mesa/main/compiler.h:1.1.1.3 xsrc/external/mit/MesaLib/dist/src/mesa/main/compiler.h:1.2
--- xsrc/external/mit/MesaLib/dist/src/mesa/main/compiler.h:1.1.1.3 Wed Jul 9 19:38:37 2014
+++ xsrc/external/mit/MesaLib/dist/src/mesa/main/compiler.h Wed Jul 9 20:12:30 2014
@@ -266,13 +266,16 @@ static INLINE GLuint CPU_TO_LE32(GLuint
#else /*__linux__ */
#include <sys/endian.h>
#define CPU_TO_LE32( x ) bswap32( x )
+#define CPU_TO_LE16( x ) bswap16( x )
#endif /*__linux__*/
#define MESA_BIG_ENDIAN 1
#else
#define CPU_TO_LE32( x ) ( x )
+#define CPU_TO_LE16( x ) ( x )
#define MESA_LITTLE_ENDIAN 1
#endif
#define LE32_TO_CPU( x ) CPU_TO_LE32( x )
+#define LE16_TO_CPU( x ) CPU_TO_LE16( x )