Mercurial > hg > truffle
comparison graal/com.oracle.max.asmdis/src/com/sun/max/asm/gen/risc/field/SignDependentOperations.java @ 4142:bc8527f3071c
Adjust code base to new level of warnings.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Sun, 18 Dec 2011 05:24:06 +0100 |
parents | e233f5660da4 |
children |
comparison
equal
deleted
inserted
replaced
4141:04d21be7a24f | 4142:bc8527f3071c |
---|---|
134 * sequence contains 32 or less items. Otherwise, this method returns null. | 134 * sequence contains 32 or less items. Otherwise, this method returns null. |
135 */ | 135 */ |
136 public static List<Integer> smallContiguousRange(int min, int max, int grain) { | 136 public static List<Integer> smallContiguousRange(int min, int max, int grain) { |
137 final long range = (((long) max - (long) min) + 1) / grain; | 137 final long range = (((long) max - (long) min) + 1) / grain; |
138 if (range > 0 && range <= 32) { | 138 if (range > 0 && range <= 32) { |
139 final List<Integer> result = new ArrayList<Integer>((int) range); | 139 final List<Integer> result = new ArrayList<>((int) range); |
140 for (int i = min; i <= max; i += grain * 2) { | 140 for (int i = min; i <= max; i += grain * 2) { |
141 result.add(i); | 141 result.add(i); |
142 } | 142 } |
143 return result; | 143 return result; |
144 } | 144 } |