From: Matthias Andree (no email)
Date: Wed Jan 02 2002 - 21:40:16 EST
(Wietse Venema) writes:
> Matthias Andree:
> > <> writes:
> >
> > > The code is not robust. Multiplication by numbers > 2 can
> >
> > A robust integer math code does not use C, it is a PITA
> > otherwise. Period. SCNR.
>
> Having hardware assistance would help. The code that I have settled
> on is basically Victor's, plus adding a check after the addition.
>
> My next message in this thread had an updated algorithm that was
> optimized for correctness not speed. If you have comments let me
> know, as I am about to send out an official release candidate.
I did not prove the new code correct, but it looks sane, I cannot see
how to break it. C is ugly when it comes to actual maths.
-- Matthias Andree "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." Benjamin Franklin - To unsubscribe, send mail to with content (not subject): unsubscribe postfix-users
|
|
|