|
|
|
|
|
by ncmncm
1363 days ago
|
|
That is the way to do the math, but not the way to write the code. That said, I would like for my compiler to combine any multiplications involved down to one factor for input to the fastest sin/cos operations the machine has. And, to treat resulting multipliers close enough to 1, 1/2, and 1/4 as exact, and then skip the multiplication entirely. But the second part is a hard thing to ask of a compiler. |
|
I wish I had done CS, those kinds of compiler optimization sounds so fun. I'd love to work on that