comp.lang.ada
 help / color / mirror / Atom feed
From: Tom Moran <tmoran@bix.com>
Subject: Re: Fixed-point
Date: 1997/03/28
Date: 1997-03-28T00:00:00+00:00	[thread overview]
Message-ID: <333C27FB.73B7@bix.com> (raw)
In-Reply-To: 333C08A7.446B9B3D@innocon.com


> Jack Crenshaw's "Programmer's Toolbox" column in *Embedded Systems
> Programming* has been discussing 
> ...
> fixed-point operations are so slow in Ada
  He apparently once tried Ada in the early '80s and has been repeating
obsolete nonsense ever since.  Clearly if you define a 35 bit fixed
point field, and your compiler lets you, arithmetic will be a bit slow,
just like asm or C++.  But a reasonable size, say 16 or 32 bits, will be
fast.  I've used it often when the target was Intel hardware with no
floating point.  +- are as fast as the corresponding integer operations
and */ are a heck of a lot faster than emulated floating point.  There
are also things, such as RGB values, that cry out to be fixed point
fractions rather than integers from 0 .. 255, or 0 .. 64, or whwatever.




  parent reply	other threads:[~1997-03-28  0:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-03-28  0:00 Fixed-point Jeff Carter
1997-03-28  0:00 ` Fixed-point Robert Dewar
1997-03-29  0:00   ` Fixed-point the one and only real true kibo
1997-03-28  0:00 ` Tom Moran [this message]
1997-03-29  0:00 ` Fixed-point Robert A Duff
1997-03-30  0:00   ` Fixed-point Larry Kilgallen
1997-04-11  0:00     ` Fixed-point Ken Garlington
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox