Technical discussions related to Analog Devices DSPs (including Blackfin, TigerSHARC, SHARC and ADSP-21xx DSPs).
Post a new Thread
a normal real number representation in blackfin - emailtoprs - Apr 29 3:54:00 2005
hi all
its making me mad.
just tell me how the hell do i represent a numbe say
12.34 in blackfin assembly. i know how to change .34 and 12 to their
corresponding floating point. but wat about 12.34. please its urgent

(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )
Re: a normal real number representation in blackfin - Mike Rosing - Apr 29 8:53:00 2005
On Fri, 29 Apr 2005, emailtoprs wrote:
> hi all
> its making me mad.
> just tell me how the hell do i represent a numbe say
> 12.34 in blackfin assembly. i know how to change .34 and 12 to their
> corresponding floating point. but wat about 12.34. please its urgent
Blackfin is an integer/fixed point device. All numbers are less than one
in fractional notation. So you will need either a separate scale factor
(real floating point basicly) or you need to scale all your computations
to what ever the largest value will be (and the blackfin sees that as 1.0,
or .99999999 really)
Patience, persistence, truth,
Dr. mike

(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )