platform.h File Reference
#include <stddef.h>
#include <errno.h>
#include <endian.h>
Include dependency graph for platform.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define le16_to_cpu   le16toh
 
#define le32_to_cpu   le32toh
 
#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)))
 

Macro Definition Documentation

◆ get_unaligned

#define get_unaligned (   p)
Value:
({ \
struct packed_dummy_struct { \
typeof(*(p)) __val; \
} __attribute__((packed)) *__ptr = (void *) (p); \
\
__ptr->__val; \
})
struct senf::emu::MonitorDataFilterStatistics __attribute__

Definition at line 23 of file platform.h.

◆ get_unaligned_le16

#define get_unaligned_le16 (   p)    le16_to_cpu(get_unaligned((uint16_t *)(p)))

Definition at line 31 of file platform.h.

◆ get_unaligned_le32

#define get_unaligned_le32 (   p)    le32_to_cpu(get_unaligned((uint32_t *)(p)))

Definition at line 32 of file platform.h.

◆ le16_to_cpu

#define le16_to_cpu   le16toh

Definition at line 21 of file platform.h.

◆ le32_to_cpu

#define le32_to_cpu   le32toh

Definition at line 22 of file platform.h.