Mesa (mesa_7_6_branch): mesa: test for __blrts for CPU_TO_LE32()
Brian Paul
brianp at kemper.freedesktop.org
Wed Dec 16 15:04:44 UTC 2009
Module: Mesa
Branch: mesa_7_6_branch
Commit: 138d639ec9d4454c646d94701365e25630d9f3da
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=138d639ec9d4454c646d94701365e25630d9f3da
Author: Brian Paul <brianp at vmware.com>
Date: Wed Dec 16 08:04:23 2009 -0700
mesa: test for __blrts for CPU_TO_LE32()
See bug 25663.
---
src/mesa/main/compiler.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/mesa/main/compiler.h b/src/mesa/main/compiler.h
index 522295a..a296404 100644
--- a/src/mesa/main/compiler.h
+++ b/src/mesa/main/compiler.h
@@ -235,7 +235,7 @@ extern "C" {
#elif defined(__APPLE__)
#include <CoreFoundation/CFByteOrder.h>
#define CPU_TO_LE32( x ) CFSwapInt32HostToLittle( x )
-#elif defined(_AIX)
+#elif (defined(_AIX) || defined(__blrts))
#define CPU_TO_LE32( x ) x = ((x & 0x000000ff) << 24) | \
((x & 0x0000ff00) << 8) | \
((x & 0x00ff0000) >> 8) | \
More information about the mesa-commit
mailing list