4 ms·
Thanks for this. It's not the 90s anymore, that's for sure. I just tried my age-old adage of doing bit shifts and adds instead of multiplications. Turns out
by csl 14y ago
Thanks for this. It's not the 90s anymore, that's for sure.
I just tried my age-old adage of doing bit shifts and adds instead of multiplications. Turns out that's slower on an i7!
The cool thing is that llvm-g++ actually recognizes my bad hand-optimization on -O3 and fixes it.
Code at https://gist.github.com/2896137 https://gist.github.com/2896137