Dear Janos,

Am 05.11.19 um 16:25 schrieb Janos Meny:
You are dividing by 2, which is an int, so by integral promotion your result 
will also be an int which can comfortably hold the value you are computing. See
yes, I overlooked that one. But even if you replace it by a int16_t Two, it 
doesn't overflow.

https://www.godbolt.org/z/1hliL6
Sadly, I'm not familiar with the intel assembler.

Best regards,
Peter


Reply via email to