shared: Add put_le32()

Add helper to put uint32 values to the given pointer using
little-endian representation.
This commit is contained in:
Claudio Takahasi 2014-03-14 10:13:03 -03:00 committed by Johan Hedberg
parent 7899d71215
commit 4a2eb105c3

View File

@ -95,3 +95,8 @@ static inline void put_le16(uint16_t val, void *dst)
{
put_unaligned(cpu_to_le16(val), (uint16_t *) dst);
}
static inline void put_le32(uint32_t val, void *dst)
{
put_unaligned(cpu_to_le32(val), (uint32_t *) dst);
}