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

Reply via email to