equal
deleted
inserted
replaced
1152 * |
1152 * |
1153 * @param a an argument. |
1153 * @param a an argument. |
1154 * @param b another argument. |
1154 * @param b another argument. |
1155 * @return the larger of {@code a} and {@code b}. |
1155 * @return the larger of {@code a} and {@code b}. |
1156 */ |
1156 */ |
|
1157 @HotSpotIntrinsicCandidate |
1157 public static float max(float a, float b) { |
1158 public static float max(float a, float b) { |
1158 return Math.max(a, b); |
1159 return Math.max(a, b); |
1159 } |
1160 } |
1160 |
1161 |
1161 /** |
1162 /** |
1170 * |
1171 * |
1171 * @param a an argument. |
1172 * @param a an argument. |
1172 * @param b another argument. |
1173 * @param b another argument. |
1173 * @return the larger of {@code a} and {@code b}. |
1174 * @return the larger of {@code a} and {@code b}. |
1174 */ |
1175 */ |
|
1176 @HotSpotIntrinsicCandidate |
1175 public static double max(double a, double b) { |
1177 public static double max(double a, double b) { |
1176 return Math.max(a, b); |
1178 return Math.max(a, b); |
1177 } |
1179 } |
1178 |
1180 |
1179 /** |
1181 /** |
1217 * |
1219 * |
1218 * @param a an argument. |
1220 * @param a an argument. |
1219 * @param b another argument. |
1221 * @param b another argument. |
1220 * @return the smaller of {@code a} and {@code b.} |
1222 * @return the smaller of {@code a} and {@code b.} |
1221 */ |
1223 */ |
|
1224 @HotSpotIntrinsicCandidate |
1222 public static float min(float a, float b) { |
1225 public static float min(float a, float b) { |
1223 return Math.min(a, b); |
1226 return Math.min(a, b); |
1224 } |
1227 } |
1225 |
1228 |
1226 /** |
1229 /** |
1235 * |
1238 * |
1236 * @param a an argument. |
1239 * @param a an argument. |
1237 * @param b another argument. |
1240 * @param b another argument. |
1238 * @return the smaller of {@code a} and {@code b}. |
1241 * @return the smaller of {@code a} and {@code b}. |
1239 */ |
1242 */ |
|
1243 @HotSpotIntrinsicCandidate |
1240 public static double min(double a, double b) { |
1244 public static double min(double a, double b) { |
1241 return Math.min(a, b); |
1245 return Math.min(a, b); |
1242 } |
1246 } |
1243 |
1247 |
1244 /** |
1248 /** |