Package icyllis.arc3d.compiler.tree
Class Type.CoercionCost
java.lang.Object
icyllis.arc3d.compiler.tree.Type.CoercionCost
- Enclosing class:
Type
CoercionCost. The values are packed into a long value.
- See Also:
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
CoercionCost
public CoercionCost()
-
-
Method Details
-
free
public static long free()No cost. -
widening
public static long widening(int cost) -
narrowing
public static long narrowing(int cost) -
saturate
public static long saturate() -
accept
public static boolean accept(long cost, boolean allowNarrowing) -
plus
public static long plus(long lhs, long rhs) -
compare
public static int compare(long lhs, long rhs)
-