Boost logo

Boost :

From: Paul Mensonides (pmenso57_at_[hidden])
Date: 2002-10-19 14:49:17

----- Original Message -----
From: "Joel de Guzman" <djowel_at_[hidden]>

> ----- Original Message -----
> From: "Victor A. Wagner, Jr." <vawjr_at_[hidden]>
> > >1. AFAIK, what you are saying is implementation defined
> > >2. There's a reason why modulo is not an option (sloooow, if I'm not
> >
> > if it's so sloooooow, why do all the 2's complement computers do it by
> I'm talking about PP, not the CPU. If it can be done at all using
> the PP, I imagine it will be very sloooow.

Oh, it can be done. :)

If I was to do that, I'd simply do the arithmetic with more digits that the
user never sees. This wouldn't make much difference for addition since it
can only overflow by one digit. I'd have to throw my clever 10+1 digit
addition (that multiplication uses) out the window though, so multiplication
would be slower. I think I could still probably produce reasonable speed
results, but I don't think it's worth it. :)

Paul Mensonides

Boost list run by bdawes at, gregod at, cpdaniel at, john at