6 ms·
It does use Horner's rule, but splits the expression into two halves in order to exploit instruction-level parallelism.
by lifthrasiir 5y ago
It does use Horner's rule, but splits the expression into two halves in order to exploit instruction-level parallelism.
- jacobolus 5y agoConsidering the form of both halves is the same, are compilers smart enough to vectorize this code?
- adgjlsfhk1 5y agoI might be wrong but I would think for something like this vectorizing wouldn't save time (since you would have to move data around before and afterwards. The real benefit of this is it lets you run two fma operations in parallel.