3 ms·
working example: https://godbolt.org/g/EXdQx1 https://godbolt.org/g/EXdQx1
by krona 10y ago
working example: https://godbolt.org/g/EXdQx1 https://godbolt.org/g/EXdQx1
- TillE 10y agoYour example still gets calculated at compile time if you remove the constexpr. However, if you change -O3 to -O2, then there's a difference.