Re: rules of fixed-point arithmetic



On Mon, 08 Sep 2008 18:24:16 -0700, Sam Green wrote:

Hello,

I have come across an unpublished paper outlining some rules of fixed-
point arithmetic. These rules include things such as: "The scale of the
sum of two binary numbers scaled X(e,f) is X(e +1,f), i.e., the sum of
two M-bit numbers requires M +1 bits." Can anyone give me the name of a
book that has similar mathematical content dealing with fixed-point
arithmetic? I am working on an academic paper and need solid references.

Fixed point arithmetic is just integer arithmetic. Interpretation
usually involves a scale factor of a power of two, but that often doesn't
show up as actual manipulation (although some chips do have a shift-left
by one after a multiply, so that the usual binary points of source
operands and accumulators line up.)

Since it takes two bits to hold all of the results of adding two one bit
integers together, so it also takes an extra bit in fixed point.

Where this gets curly is that many processors that have special
arithmetic support for fixed point arithmetic work around the need for
extra precision on addition by "saturating" the result, or by having a
set of extra "guard bits" for holding these overflows for short-ish runs
of accumulation. An example of the former are the ARMv5e DSP
instructions, and of the latter are the Motorola DSP56000 series (and
most other fixed point DSP processors.)

Any text on digital signal processing will discuss this, as will the
architecture reference manuals for all "fixed point" processor chips.

Cheers,

--
Andrew
.



Relevant Pages

  • Re: rules of fixed-point arithmetic
    ... I have come across an unpublished paper outlining some rules of fixed- ... These rules include things such as: "The scale of ... the sum of two binary numbers scaled Xis X, i.e., the ... (I don't remember if this exact statement would cause problems.) ...
    (comp.arch)
  • rules of fixed-point arithmetic
    ... I have come across an unpublished paper outlining some rules of fixed- ... These rules include things such as: "The scale of ... the sum of two binary numbers scaled Xis X, i.e., the ... solid references. ...
    (comp.arch)
  • Re: lb and ub constraints in lsqcurvefit
    ... to be able to use large scale solvers. ... My objective function is a sum of squares ... Those are linear constraints on the parameters; ... with each a mean and a variance, and I want those peaks to ...
    (comp.soft-sys.matlab)
  • Re: How to use correctly GetRegionData to find the square area of a polygon
    ... I pick rectangle via GetRegionData() and then ... > sum up and estimate. ... > Adjusting on smaller scale because I'm forced to take all the pixel on a ...
    (microsoft.public.win32.programmer.gdi)
  • Re: geometry question
    ... can be composed as a sum of two squares, ... general parametric solution (up to a scale factor, ...
    (sci.math)