Re: Type fixed piont



SDV wrote:

(top posting fixed)

>-- My english is bad...if I made some mistaches you'll tell me please! >"steve" <bungalow_steve@xxxxxxxxx> ha scritto nel messaggio >news:1149009313.948838.198010@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

>>
>> SDV wrote:
>
>>>> Hi,
>>>> I'm working with an ADSP-BF533 which uses fixed point arithmetic.
>>>> Have I, for this reason, some limitation with type declaration (like
>>>> double,
>>>> float, ...)?
>
>>
>> No, no limitation, if you use float types the complier will just
>> generate software emulated floating point code using fixed point math,
>> the code will be a lot slower then if you had a processor with hardware
>> floating point, and the code will take up more memory, but it will work
>> fine otherwise.
>>
>> steve

If I want to take the code faster, without emulation of floating point, what kind of type can I use?

Fixed point, of course. Try doing a web search on "fractional" and "DSP".

--

Tim Wescott
Wescott Design Services
http://www.wescottdesign.com

Posting from Google? See http://cfaj.freeshell.org/google/

"Applied Control Theory for Embedded Systems" came out in April.
See details at http://www.wescottdesign.com/actfes/actfes.html
.