Lines Matching refs:alignment
34 /** {@code > 0;} alignment requirement for the final output;
36 private final int alignment;
47 * Validates an alignment.
49 * @param alignment the alignment
50 * @throws IllegalArgumentException thrown if {@code alignment}
53 public static void validateAlignment(int alignment) {
54 if ((alignment <= 0) ||
55 (alignment & (alignment - 1)) != 0) {
56 throw new IllegalArgumentException("invalid alignment");
66 * @param alignment {@code > 0;} alignment requirement for the final output;
69 public Section(String name, DexFile file, int alignment) {
74 validateAlignment(alignment);
78 this.alignment = alignment;
93 * Gets the alignment for this instance's final output.
95 * @return {@code > 0;} the alignment
98 return alignment;
122 * in order to meet its alignment constraint
133 int mask = alignment - 1;
155 throw new RuntimeException("alignment mismatch: for " + this +
259 * Aligns the output of the given data to the alignment of this instance.
264 out.alignTo(alignment);