mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
util: Add util_cpu_to_le* helpers
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Francisco Jerez <currojerez@riseup.net>
This commit is contained in:
parent
a9f88e2ae8
commit
9f30685fae
1 changed files with 3 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue