3 ms·
Shifting by one and dividing by 2 aren't the same for signed integers, but the distinction goes away if you change the parameter to be unsigned: https://godbolt
by saagarjha 7y ago
Shifting by one and dividing by 2 aren't the same for signed integers, but the distinction goes away if you change the parameter to be unsigned: https://godbolt.org/z/GPJsdQ https://godbolt.org/z/GPJsdQ https://godbolt.org/z/m-rS90 https://godbolt.org/z/m-rS90