#include <stddef.h>
#include <errno.h>
#include <endian.h>
Go to the source code of this file.
Defines | |
#define | get_unaligned(p) |
#define | get_unaligned_le16(p) le16_to_cpu(get_unaligned((uint16_t *)(p))) |
#define | get_unaligned_le32(p) le32_to_cpu(get_unaligned((uint32_t *)(p))) |
#define | le16_to_cpu le16toh |
#define | le32_to_cpu le32toh |
#define get_unaligned | ( | p | ) |
({ \ struct packed_dummy_struct { \ typeof(*(p)) __val; \ } __attribute__((packed)) *__ptr = (void *) (p); \ \ __ptr->__val; \ })
Definition at line 10 of file platform.h.
#define get_unaligned_le16 | ( | p | ) | le16_to_cpu(get_unaligned((uint16_t *)(p))) |
Definition at line 18 of file platform.h.
#define get_unaligned_le32 | ( | p | ) | le32_to_cpu(get_unaligned((uint32_t *)(p))) |
Definition at line 19 of file platform.h.
#define le16_to_cpu le16toh |
Definition at line 8 of file platform.h.
#define le32_to_cpu le32toh |
Definition at line 9 of file platform.h.