2 ms·
It wasn't just AMD, Intel was crippling performance on any non-Intel CPU. All x86 CPUs have an instruction, CPUID, that allows you to check for the presence of
by TazeTSchnitzel 11y ago
It wasn't just AMD, Intel was crippling performance on any non-Intel CPU. All x86 CPUs have an instruction, CPUID, that allows you to check for the presence of various features and instruction sets (MMX, x86-64, SSE, etc.). The standard way to generate backwards-compatible code which uses newer instructions is to check the flag, and run the version with the new feature if the flag is there, otherwise use older instructions.
Intel, though, would not only check if the CPU supported a feature, but also if the CPU was made by Intel. Essentially, Intel's compiler would generate code like "if Intel, run fast, if not Intel, run slowly."