Hi Oleg.
Well probably you've got quite old fplib.
I faced with the same problem a while ago.
There was a problem cause of inline assembly.
Recently I uploaded new code which has no inline assembly and *my*
results with fplib were correct.
Check libc sources you've got.
If the problem will persist I'll check it when I recover from hdd
(freaked ibm beastie) crash.

Cheers,
~d


-----Original Message-----
From: mspgcc-users-ad...@lists.sourceforge.net
[mailto:mspgcc-users-ad...@lists.sourceforge.net] On Behalf Of Oleg
Skydan
Sent: Thursday, May 20, 2004 7:11 AM
To: MSP430 GCC
Subject: [Mspgcc-users] fplib BUG

Hi, All !

I have a strange behaviour of multiplication in fplib. Here is an
example:

float sqrt1(float x)
{
float r=1.375;
r=0.5*x;
return r;
}

void main()
{
b=sqrt1(2.82);
}

The result is b=1.0 :-/. If I do not use fplib the result is corret, but
the
code is 4Kb large :-(.

All the best !
Oleg
P.S. msp430-gcc (3.2.1) is built from the sources downloaded last week
from
the sourceforge CVS.



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.

Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users


Reply via email to