|
|
|
|
|
by etrain
3487 days ago
|
|
This is pretty awesome. One key bit of information that the compiler has is that the coefficients are a constant array of length 12, which makes the loop unrolling possible and also means that the register magic is in play - it's seriously awesome that the compiler does this. That said, I'd expect something similar to happen with a well-written C program. Would equivalent abstractions in C++1{1,4,7} be "costly"? |
|
With C the lack of generics means that writing composable iterators is hard, though.