Lines Matching refs:alignment
69 /* The alignment of a DBusBasicValue might conceivably be > 8 because of the
946 * @param alignment size of each element
951 int alignment)
956 _dbus_assert (_DBUS_ALIGN_ADDRESS (data, alignment) == data);
962 end = d + (n_elements * alignment);
964 if (alignment == 8)
976 else if (alignment == 4)
986 _dbus_assert (alignment == 2);
1001 int alignment)
1003 _dbus_assert (_DBUS_ALIGN_VALUE (array_start, alignment) == (unsigned) array_start);
1011 n_elements, alignment);
1021 int alignment,
1029 _dbus_assert (n_elements <= DBUS_MAXIMUM_ARRAY_LENGTH / alignment);
1033 len_in_bytes = n_elements * alignment;
1036 /* Note that we do alignment padding unconditionally
1042 if (!_dbus_string_insert_alignment (str, &array_start, alignment))
1053 swap_array (str, array_start, n_elements, byte_order, alignment);
1217 int alignment;
1223 alignment = _dbus_type_get_alignment (element_type);
1225 i = _DBUS_ALIGN_VALUE (i, alignment);
1231 * Gets the alignment requirement for the given type;
1235 * @returns alignment of 1, 4, or 8
1536 int alignment;
1546 alignment = _dbus_type_get_alignment (element_type);
1548 pos = _DBUS_ALIGN_VALUE (pos, alignment);
1550 array_len = n_elements * alignment;
1561 int alignment)
1565 if (alignment == 1)
1569 swap_array (&t, 0, len_bytes / alignment, byte_order, alignment);
1636 alignment = _dbus_type_get_alignment (DBUS_TYPE_##typename); \
1639 v_UINT32/alignment, \
1642 byte_order, alignment); \
1671 int alignment;