On 2014-10-07 13:47, Ivo Doko wrote: > static constexpr int_fast8_t shift_1 = a >= 0 ? a : -a; > static constexpr int_fast8_t shift_2 = b >= 0 ? b : -b; > static constexpr int_fast8_t shift_3 = c >= 0 ? c : -c; Oh, of course, I should have mentioned that a, b and c are template parameters. Sorry about that.