Package jnr.ffi
Enum Platform.CPU
- All Implemented Interfaces:
Serializable
,Comparable<Platform.CPU>
- Enclosing class:
- Platform
The supported CPU architectures.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription64 bit ARM32 bit ARM32 bit legacy Intel64 bit LOONGARCH32 bit MIPS (used by nestedvm)64 bit MIPS32 bit Power PC64 bit Power PC64 bit Power PC little endian64 bit RISC-VIBM zSeries S/39032 bit Sun sparc64 bit Sun sparcUnknown CPU architecture.64 bit AMD (aka EM64T/X64) -
Method Summary
Modifier and TypeMethodDescriptiontoString()
Returns aString
object representing thisCPU
object.static Platform.CPU
Returns the enum constant of this type with the specified name.static Platform.CPU[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
I386
32 bit legacy Intel -
X86_64
64 bit AMD (aka EM64T/X64) -
PPC
32 bit Power PC -
PPC64
64 bit Power PC -
PPC64LE
64 bit Power PC little endian -
SPARC
32 bit Sun sparc -
SPARCV9
64 bit Sun sparc -
S390X
IBM zSeries S/390 -
MIPS32
32 bit MIPS (used by nestedvm) -
ARM
32 bit ARM -
AARCH64
64 bit ARM -
MIPS64EL
64 bit MIPS -
LOONGARCH64
64 bit LOONGARCH -
RISCV64
64 bit RISC-V -
UNKNOWN
Unknown CPU architecture. A best effort will be made to infer architecture specific values such as address and long size.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
Returns aString
object representing thisCPU
object.- Overrides:
toString
in classEnum<Platform.CPU>
- Returns:
- the name of the cpu architecture as a lower case
String
.
-