diff options
author | Tom Stellard <[email protected]> | 2014-02-20 07:46:28 -0800 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2014-02-24 12:56:27 -0800 |
commit | 9f30685faee90e6ac750876b89504edea0e90050 (patch) | |
tree | bf54242a6d7aa5a8f5180335522a35d2c3ac55db | |
parent | a9f88e2ae8632189b08f01e8a4166020df8d0d38 (diff) |
util: Add util_cpu_to_le* helpers
Reviewed-by: Michel Dänzer <[email protected]>
Reviewed-by: Francisco Jerez <[email protected]>
-rw-r--r-- | src/gallium/auxiliary/util/u_math.h | 3 |
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. |