Lines Matching refs:alignment
135 static inline size_t align_to(size_t pos, size_t alignment) { in align_to() argument
136 size_t offset = pos & (alignment - 1); in align_to()
137 return pos + (offset ? alignment - offset : 0); in align_to()
142 size_t count, alignment; in parse_serialize_spec() local
147 alignment = __alignof__(uint16_t); /* usually 2 */ in parse_serialize_spec()
150 alignment = __alignof__(uint32_t); /* usually 4 */ in parse_serialize_spec()
153 alignment = __alignof__(uint64_t); /* usually 8 */ in parse_serialize_spec()
156 alignment = __alignof__(int); /* usually 4 */ in parse_serialize_spec()
160 alignment = 1; in parse_serialize_spec()
163 *pos = align_to(*pos, alignment); in parse_serialize_spec()
164 *max_alignment = *max_alignment < alignment ? alignment : *max_alignment; in parse_serialize_spec()