3 ms·
Nice. It seems gcc/clang don't know that trick. They still divide and then check that x/3 * 3 == x. https://godbolt.org/g/V4kfuu https://godbolt.org/g/V4kfuu
by pcordes 9y ago
Nice. It seems gcc/clang don't know that trick. They still divide and then check that x/3 * 3 == x. https://godbolt.org/g/V4kfuu https://godbolt.org/g/V4kfuu. (So do ICC17 and MSVC CL19).