< prev index next >
src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core.common/src/org/graalvm/compiler/core/common/calc/FloatConvert.java
Print this page
*** 23,47 ****
package org.graalvm.compiler.core.common.calc;
import org.graalvm.compiler.debug.GraalError;
public enum FloatConvert {
! F2I(FloatConvertCategory.FloatingPointToInteger),
! D2I(FloatConvertCategory.FloatingPointToInteger),
! F2L(FloatConvertCategory.FloatingPointToInteger),
! D2L(FloatConvertCategory.FloatingPointToInteger),
! I2F(FloatConvertCategory.IntegerToFloatingPoint),
! L2F(FloatConvertCategory.IntegerToFloatingPoint),
! D2F(FloatConvertCategory.FloatingPointToFloatingPoint),
! I2D(FloatConvertCategory.IntegerToFloatingPoint),
! L2D(FloatConvertCategory.IntegerToFloatingPoint),
! F2D(FloatConvertCategory.FloatingPointToFloatingPoint);
! private FloatConvertCategory category;
! FloatConvert(FloatConvertCategory category) {
this.category = category;
}
public FloatConvertCategory getCategory() {
return category;
}
--- 23,49 ----
package org.graalvm.compiler.core.common.calc;
import org.graalvm.compiler.debug.GraalError;
public enum FloatConvert {
! F2I(FloatConvertCategory.FloatingPointToInteger, 32),
! D2I(FloatConvertCategory.FloatingPointToInteger, 64),
! F2L(FloatConvertCategory.FloatingPointToInteger, 32),
! D2L(FloatConvertCategory.FloatingPointToInteger, 64),
! I2F(FloatConvertCategory.IntegerToFloatingPoint, 32),
! L2F(FloatConvertCategory.IntegerToFloatingPoint, 64),
! D2F(FloatConvertCategory.FloatingPointToFloatingPoint, 64),
! I2D(FloatConvertCategory.IntegerToFloatingPoint, 32),
! L2D(FloatConvertCategory.IntegerToFloatingPoint, 64),
! F2D(FloatConvertCategory.FloatingPointToFloatingPoint, 32);
! private final FloatConvertCategory category;
! private final int inputBits;
! FloatConvert(FloatConvertCategory category, int inputBits) {
this.category = category;
+ this.inputBits = inputBits;
}
public FloatConvertCategory getCategory() {
return category;
}
*** 70,75 ****
--- 72,81 ----
return F2L;
default:
throw GraalError.shouldNotReachHere();
}
}
+
+ public int getInputBits() {
+ return inputBits;
+ }
}
< prev index next >