Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
lifthrasiir
on March 29, 2022
|
parent
|
context
|
favorite
| on:
Implementing Cosine in C from Scratch (2020)
It does use Horner's rule, but splits the expression into two halves in order to exploit instruction-level parallelism.
jacobolus
on March 29, 2022
[–]
Considering the form of both halves is the same, are compilers smart enough to vectorize this code?
adgjlsfhk1
on March 29, 2022
|
parent
[–]
I 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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: