The lack of dedicated LERP instructions in x86 isn't really a significant competitive disadvantage against ARM. Here's why:
Modern x86 processors can compute linear interpolation quite efficiently using existing instructions. As the second post mentions, with FMA (Fused Multiply-Add) instructions, you can implement LERP in just two instructions:
result = a + t * (b - a) becomes:
- One subtraction:
temp = b - a
- One FMA:
result = fma(t, temp, a)
Or with the FNMSUB approach mentioned, you can avoid the explicit subtraction by rearranging the formula.
The real competitive factors between x86 and ARM are much broader:
Power efficiency: ARM's RISC design and focus on mobile/embedded markets gives it advantages in performance-per-watt, which matters increasingly in data centers and mobile devices.
Instruction decode complexity: x86's variable-length instructions require more complex decode logic than ARM's fixed-width instructions, consuming more power and silicon area.
Legacy baggage: x86 carries decades of backwards compatibility requirements that ARM doesn't have.
Licensing model: ARM's licensing approach allows customization by vendors (Apple M-series, AWS Graviton, etc.) while x86 is controlled by Intel and AMD.
Adding LERP instructions to x86 would be a minor optimization at best. The instruction would save perhaps one cycle in specific workloads, but modern out-of-order processors can often hide this latency anyway. The silicon area and design complexity for adding new instructions needs strong justification, and LERP alone doesn't meet that bar when existing instructions handle it well enough.
The real battleground is in areas like power efficiency, specialized accelerators (AI, video encoding), and overall system design rather than individual arithmetic operations.