util: Add util_cpu_to_le* helpers
authorTom Stellard <thomas.stellard@amd.com>
Thu, 20 Feb 2014 15:46:28 +0000 (07:46 -0800)
committerTom 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

index 0f498bc1531fcee927738471d74042222d20f51d..ffbcc4cbfea103dff69ce39fef5513cdbb4fa710 100644 (file)
@@ -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.