projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9f88e2
)
util: Add util_cpu_to_le* helpers
author
Tom Stellard
<thomas.stellard@amd.com>
Thu, 20 Feb 2014 15:46:28 +0000
(07:46 -0800)
committer
Tom Stellard
<thomas.stellard@amd.com>
Mon, 24 Feb 2014 20:56:27 +0000
(12:56 -0800)
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/gallium/auxiliary/util/u_math.h
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_math.h
b/src/gallium/auxiliary/util/u_math.h
index 0f498bc1531fcee927738471d74042222d20f51d..ffbcc4cbfea103dff69ce39fef5513cdbb4fa710 100644
(file)
--- 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.