Author her. I didn't run benchmarks. I'm suspicious of micro-benchmarks and I don't have a context where I can try it against realistic data. Also, I just enjoy the maths of it even if it turns out not to make a huge performance difference in practice.
eru|3 years ago
You are right that micro-benchmarks are a bit suspicious, but they are better than nothing.
Btw, have a look at https://godbolt.org/z/zMarEnYP5 to see what Clang come up with on her own.
This uses Risc-V assembly. Just for fun. x86 is also fascinating.I haven't analysed it in detail. But it looks like Clang doesn't seem to mind multiplication.