Hi, as far as I understand when I multiply two 32 bit integer numbers, the processor produces a 64 bit result, but then the compiler truncates the upper 32 bits to produce a 32 bit value. Is there a way in gcc to avoid this truncating? The problem is that I need to multiply two potentially big 32bit numbers(I don't want to use long long because it's slow) and need to verify whether their product fits into 32 bit integer.
Thanks !