aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2014-02-20 07:46:28 -0800
committerTom Stellard <[email protected]>2014-02-24 12:56:27 -0800
commit9f30685faee90e6ac750876b89504edea0e90050 (patch)
treebf54242a6d7aa5a8f5180335522a35d2c3ac55db /src
parenta9f88e2ae8632189b08f01e8a4166020df8d0d38 (diff)
util: Add util_cpu_to_le* helpers
Reviewed-by: Michel Dänzer <[email protected]> Reviewed-by: Francisco Jerez <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/util/u_math.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_math.h b/src/gallium/auxiliary/util/u_math.h
index 0f498bc1531..ffbcc4cbfea 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.