Template is just unnecessary.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
The nice thing about the template parameters is that it forces the compiler to see the constant value.
It is quite possible that gcc and clang optimize this, but we have to benchmark.
Comment Actions
It is so trivial that I'm pretty sure that both gcc and clang can optimize it, but if you are in doubt, I can check for assembly.