Module: Mesa
Branch: master
Commit: 9f30685faee90e6ac750876b89504edea0e90050
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=9f30685faee90e6ac750876b89504edea0e90050

Author: Tom Stellard <[email protected]>
Date:   Thu Feb 20 07:46:28 2014 -0800

util: Add util_cpu_to_le* helpers

Reviewed-by: Michel Dänzer <[email protected]>
Reviewed-by: Francisco Jerez <[email protected]>

---

 src/gallium/auxiliary/util/u_math.h |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/gallium/auxiliary/util/u_math.h 
b/src/gallium/auxiliary/util/u_math.h
index 0f498bc..ffbcc4c 100644
--- a/src/gallium/auxiliary/util/u_math.h
+++ b/src/gallium/auxiliary/util/u_math.h
@@ -726,6 +726,9 @@ util_bitcount(unsigned n)
 #define util_le16_to_cpu(x) (x)
 #endif
 
+#define util_cpu_to_le64(x) util_le64_to_cpu(x)
+#define util_cpu_to_le32(x) util_le32_to_cpu(x)
+#define util_cpu_to_le16(x) util_le16_to_cpu(x)
 
 /**
  * Reverse byte order of a 32 bit word.

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to