|
|
|
|
|
by WesolyKubeczek
526 days ago
|
|
> I think the optimizer recognizes modulo 2 and converts it to bitwise AND. A quick check in the compiler explorer (godbolt.org) confirms that this is indeed true for GCC on x86_64 and aarch64, but not for clang on the same (clang does optimize it with -O3). |
|