3 ms·
x87 is still providing some functionality which is more convenient to be used in some specific scenarios. I've used it intentionally even for some 64-bit code,
by acqq 6y ago
x87 is still providing some functionality which is more convenient to be used in some specific scenarios. I've used it intentionally even for some 64-bit code, where it was a perfect fit to all other requirements of the whole environment and the goals of the project.
When you don't need it, of course you should use your defaults. But there are still some specific scenarios where it definitely has its uses.
Just as an example of the advantages, x87 code is very compact and the numeric manipulations happen on the implicit hardware floating point stack, allowing for complex formulas fitting in only a few bytes (as the addresses are implicit). Also, as some ABIs still depend on it, targeting such ABIs makes the use of x87 unavoidable.
- BeeOnRope 6y agoIt also provides the 80-bit precision stuff which I guess could be useful for something.