DSPRelated.com
Forums

DSP56F807 QUESTION OF THE DAY: -0.0 and 0.0 on the DSP56F807

Started by Roberts Paul October 7, 2003
DSP56F807 QUESTION OF THE DAY
Can anyone confirm or deny the following:

(True or False)

1) Some DSP56F807's, when performing floating point math using the floating
point libraries that come with the Metrowerks CodeWarrior IDE (version 4.1,
build 0622), when subtracting one float from another float having the same
value, for example 300.0f minus 300.0f, will return a result of 0.0f, whilst
other versions of silicon will come up with -0.0f.

2) Some DSP56F807's, when performing floating point math using the floating
point libraries that come with the Metrowerks CodeWarrior IDE (version 4.1,
build 0622), when subtracting one float from another float having the same
value, namely 0.0f minus 0.0f, will return a result of 0.0f, whilst other
versions of silicon will come up with -0.0f.

Thank you,
Paul Roberts



Paul,
Can you please specify what exactly you mean by different
version of silicon? Are you talking about 803,805?

--Irene

--- In , Roberts Paul <proberts@c...>
wrote:
> DSP56F807 QUESTION OF THE DAY
> Can anyone confirm or deny the following:
>
> (True or False)
>
> 1) Some DSP56F807's, when performing floating point math using the
floating
> point libraries that come with the Metrowerks CodeWarrior IDE
(version 4.1,
> build 0622), when subtracting one float from another float having
the same
> value, for example 300.0f minus 300.0f, will return a result of
0.0f, whilst
> other versions of silicon will come up with -0.0f.
>
> 2) Some DSP56F807's, when performing floating point math using the
floating
> point libraries that come with the Metrowerks CodeWarrior IDE
(version 4.1,
> build 0622), when subtracting one float from another float having
the same
> value, namely 0.0f minus 0.0f, will return a result of 0.0f,
whilst other
> versions of silicon will come up with -0.0f.
>
> Thank you,
> Paul Roberts