From: Tom Stellard Date: Thu, 20 Feb 2014 15:46:28 +0000 (-0800) Subject: util: Add util_cpu_to_le* helpers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9f30685faee90e6ac750876b89504edea0e90050;p=mesa.git util: Add util_cpu_to_le* helpers Reviewed-by: Michel Dänzer Reviewed-by: Francisco Jerez --- 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.