signed is undefined and has been since 1992 (in GCC)
Andrew Pinski
pinskia@physics.uc.edu
Tue Jun 28 13:52:00 GMT 2005
On Jun 28, 2005, at 9:46 AM, Gabriel Paubert wrote:
> Now in practice what would be the cost of checking that the divisor
> is -1 and take an alternate path that computes the correct
> results (in modulo arithmetic) for this case ?
Small compared the division it self but if it is in an inner loop, it
adds up and then becomes a performance regression which nobody wants.
-- Pinski
More information about the Gcc
mailing list