public static enum AMD64Address.Scale extends Enum<AMD64Address.Scale>
| Modifier and Type | Field and Description |
|---|---|
int |
log2
The value of this scale log 2.
|
int |
value
The value (or multiplier) of this scale.
|
| Modifier and Type | Method and Description |
|---|---|
static AMD64Address.Scale |
fromInt(int scale)
Creates a
AMD64Address.Scale for the scaling factor in scale. |
static AMD64Address.Scale |
fromShift(int shift)
Creates a
AMD64Address.Scale for the log2 scaling factor shift. |
static boolean |
isScaleShiftSupported(int shift)
Determines if the log2 scaling factor
shift is supported. |
static boolean |
isScaleSupported(int scale)
Determines if the scaling factor
scale is supported. |
static AMD64Address.Scale |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AMD64Address.Scale[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AMD64Address.Scale Times1
public static final AMD64Address.Scale Times2
public static final AMD64Address.Scale Times4
public static final AMD64Address.Scale Times8
public final int value
public final int log2
public static AMD64Address.Scale[] values()
public static AMD64Address.Scale valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static AMD64Address.Scale fromInt(int scale)
AMD64Address.Scale for the scaling factor in scale.IllegalArgumentException - if scale is an unsupported scaling factorpublic static AMD64Address.Scale fromShift(int shift)
AMD64Address.Scale for the log2 scaling factor shift.IllegalArgumentException - if shift is an unsupported scaling factorpublic static boolean isScaleSupported(int scale)
scale is supported.public static boolean isScaleShiftSupported(int shift)
shift is supported.