Lines Matching defs:v
59 #define RTE_STATIC_BSWAP16(v) \
60 ((((uint16_t)(v) & UINT16_C(0x00ff)) << 8) | \
61 (((uint16_t)(v) & UINT16_C(0xff00)) >> 8))
63 #define RTE_STATIC_BSWAP32(v) \
64 ((((uint32_t)(v) & UINT32_C(0x000000ff)) << 24) | \
65 (((uint32_t)(v) & UINT32_C(0x0000ff00)) << 8) | \
66 (((uint32_t)(v) & UINT32_C(0x00ff0000)) >> 8) | \
67 (((uint32_t)(v) & UINT32_C(0xff000000)) >> 24))
69 #define RTE_STATIC_BSWAP64(v) \
70 ((((uint64_t)(v) & UINT64_C(0x00000000000000ff)) << 56) | \
71 (((uint64_t)(v) & UINT64_C(0x000000000000ff00)) << 40) | \
72 (((uint64_t)(v) & UINT64_C(0x0000000000ff0000)) << 24) | \
73 (((uint64_t)(v) & UINT64_C(0x00000000ff000000)) << 8) | \
74 (((uint64_t)(v) & UINT64_C(0x000000ff00000000)) >> 8) | \
75 (((uint64_t)(v) & UINT64_C(0x0000ff0000000000)) >> 24) | \
76 (((uint64_t)(v) & UINT64_C(0x00ff000000000000)) >> 40) | \
77 (((uint64_t)(v) & UINT64_C(0xff00000000000000)) >> 56))
92 #define RTE_BE16(v) (rte_be16_t)(v)
93 #define RTE_BE32(v) (rte_be32_t)(v)
94 #define RTE_BE64(v) (rte_be64_t)(v)
95 #define RTE_LE16(v) (rte_le16_t)(RTE_STATIC_BSWAP16(v))
96 #define RTE_LE32(v) (rte_le32_t)(RTE_STATIC_BSWAP32(v))
97 #define RTE_LE64(v) (rte_le64_t)(RTE_STATIC_BSWAP64(v))
99 #define RTE_BE16(v) (rte_be16_t)(RTE_STATIC_BSWAP16(v))
100 #define RTE_BE32(v) (rte_be32_t)(RTE_STATIC_BSWAP32(v))
101 #define RTE_BE64(v) (rte_be64_t)(RTE_STATIC_BSWAP64(v))
102 #define RTE_LE16(v) (rte_le16_t)(v)
103 #define RTE_LE32(v) (rte_le32_t)(v)
104 #define RTE_LE64(v) (rte_le64_t)(v)