3 ms·
> But why should this be the case? Why with all the optimizations compilers are doing now, should such a common and trivial thing still need to be written in as
by aortega 13y ago
> But why should this be the case? Why with all the optimizations compilers are doing now, should such a common and trivial thing still need to be written in asm?
Yes, if the CPU vendor keeps coming with all kinds of clowny instructions like MMX/SSE2/SSE4/SSE XP/etc to accelerate things (but really because they need new instructions so the ABI remains patented). Compilers and libraries can't keep with all the new instructions.
- dbaupp 13y agoHigh performance libraries do keep up with the new instructions, e.g. GMP[1] likes the new MULX[2] instruction a lot. [1]: https://gmplib.org/list-archives/gmp-devel/2013-August/003353.html https://gmplib.org/list-archives/gmp-devel/2013-August/00335... [2]: http://www.intel.com/content/www/us/en/intelligent-systems/intel-technology/ia-large-integer-arithmetic-paper.html http://www.intel.com/content/www/us/en/intelligent-systems/i...
- p0nce 13y agoSorry but I _need_ those new instructions.