hm...
superb then...

just try to compile sin/cos/whatever, run under gdb or msp430simu.

check results and compare them (bit to bit) with, say, i386 gcc.
The best way to do this probably will be something:

union cn {
float f;
long l;
};

union cn f1, f2;


int cmp () 
{
        f1.f = sin(xxx);
        f2.f = [value obtained from somewhere];

        return f1.l== f2.l;
}


cheers,
~d




On Thu, 18 Apr 2002 20:15:35 -0700 (PDT)
David Dyck <[email protected]> wrote:

> On Thu, 18 Apr 2002 at 11:48 +0400, Dmitry <[email protected]> wrote:
> 
> > NO... TI fp implementation is not IEEE 754 complaint... TI uses 40 bits 
> > floats while gcc uses 32 bits IEEE 754 fp concepts.
> 
> I just am looking at the manual for the free demo (IAR) compiler
> for the msp430, and it is documenting their floating point format
> as 4 bytes
> 
> 31 - sign
> 30 - 23 exponent
> 22 - 0 Mantissa
> 
> (-1)**s * s**(exponent-127) * 1.Mantissa
> 
> It states that the values are stored in IEEE format
> 
> 
> 
> 


/********************************************************************
     ("`-''-/").___..--''"`-._     (\   Dimmy the Wild      UA1ACZ
      `6_ 6  )   `-.  (     ).`-.__.`)  Enterprise Information Sys 
      (_Y_.)'  ._   )  `._ `. ``-..-'   Nevsky prospekt,   20 / 44
    _..`--'_..-_/  /--'_.' ,'           Saint Petersburg,   Russia
   (il),-''  (li),'  ((!.-'             +7 (812)  3468202, 5585314
 ********************************************************************/

Reply via email to