Fix move_to_unaligned16
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
5bce135e36
commit
e3e321682c
@ -228,7 +228,7 @@ typedef uint32_t bb__aliased_uint32_t FIX_ALIASING;
|
|||||||
# define move_from_unaligned32(v, u32p) (memcpy(&(v), (u32p), 4))
|
# define move_from_unaligned32(v, u32p) (memcpy(&(v), (u32p), 4))
|
||||||
# define move_to_unaligned16(u16p, v) do { \
|
# define move_to_unaligned16(u16p, v) do { \
|
||||||
uint16_t __t = (v); \
|
uint16_t __t = (v); \
|
||||||
memcpy((u16p), &__t, 4); \
|
memcpy((u16p), &__t, 2); \
|
||||||
} while (0)
|
} while (0)
|
||||||
# define move_to_unaligned32(u32p, v) do { \
|
# define move_to_unaligned32(u32p, v) do { \
|
||||||
uint32_t __t = (v); \
|
uint32_t __t = (v); \
|
||||||
|
Loading…
Reference in New Issue
Block a user