Mesa (master): util: Add util_cpu_to_le* helpers
Tom Stellard
tstellar at kemper.freedesktop.org
Mon Feb 24 21:00:18 UTC 2014
Module: Mesa
Branch: master
Commit: 9f30685faee90e6ac750876b89504edea0e90050
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9f30685faee90e6ac750876b89504edea0e90050
Author: Tom Stellard <thomas.stellard at amd.com>
Date: Thu Feb 20 07:46:28 2014 -0800
util: Add util_cpu_to_le* helpers
Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>
Reviewed-by: Francisco Jerez <currojerez at riseup.net>
---
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.
More information about the mesa-commit
mailing list