Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Extended-Precision Fixed-Point?

1 view
Skip to first unread message

Jim Osborn

unread,
Jan 2, 1992, 1:08:13 AM1/2/92
to
Could someone point me toward references, or share experiences in
performing multiplication and addition of signed extended-precision
fixed-point numbers? The integer part is never more than 16 bits,
but the fractional part can be arbitrarily long.

The obvious approach would seem to be to use whatever registers the
machine provides and work a register at a time in the local assembly
language. This is non-portable, but given the ease of propagating
carry bits, it's probably the speediest. I could imagine there's
some clever scheme that might take advantage of the local FPU, but I
can't seem to think of one. Any suggestions?

Is there advantage to be taken of the fact that some of the
multiplication is really squaring?

Sorry if this is FAQ.
--
pilchuck!jimo@phred Jim Osborn, Physio Control Corp
11811 Willows Rd, Redmond, WA, 98073
206-867-4704 direct to my desk

0 new messages