Lines Matching defs:field
560 * Workaround to cast a const field of a structure to non-const type.
562 #define RTE_CAST_FIELD(var, field, type) \
563 (*(type *)((uintptr_t)(var) + offsetof(typeof(*(var)), field)))
799 /** Return the offset of a field in a structure. */
840 * Get the size of a field in a structure.
844 * @param field
845 * The field in the structure.
847 * The size of the field in the structure, in bytes.
849 #define RTE_SIZEOF_FIELD(type, field) (sizeof(((type *)0)->field))