canRun method
Whether a CPU of this type can run a program of the argument type.
Implementation
bool canRun(CpuType cpuType) {
if (cpuType == this) {
return true;
}
switch (this) {
case aarch64:
return cpuType == aarch32;
case amd64:
return cpuType == x86;
default:
return false;
}
}