libm which comes with msp430-libc is a newlib one.

~d


On Wednesday 12 February 2003 17:35, David Brown wrote:
> Is it possible to compile newlib's maths library with mspgcc?  It is not
> going to be as efficient as a carefully-writen version specifically for the
> msp, but I would imagine that as long as you have sufficient memory in the
> target (and have low enough speed requirements...), then that would give
> you the other floating-point functions you could wish for.  Just make sure
> the newlib library is last on the linker's list, and you will get the
> msp-specific versions of sin, cos, etc., and the newlib Bessel functions.
> Checking that the newlib maths library worked ok would surely be less
> effort than trying to re-write the functions, and should satisfy most
> requirements.
>
> mvh.
>
> David.
>
> > > P.S. Is there a list of unsupported float functions that need to be
> > > implemented?  The docs imply that you need help getting all the
> > > functions done.
> >
> > Some Bessels, associated Legendre's (God! I 'm missing them a lot!),
> > hell loads of any spherical ones are missed. Some simpler ones (like sin,
>
> cos,
>
> > all hyperbolic, simple bessels, etc. are there)
> >
> > > PPS. Suggestion.  I think it would be helpful if when using "double",
> > > you should get a compiler error that says that double is not supported.
> > > Is this easy/possible?
> >
> > Not easy, yet possible. gcc just implicitly makes doubles floats.
> >
> > > PPPS.  Bill, yes, mspgcc does support long long, and I'm using at least
> > > one.  You can refer to doc.txt line 579 (section 5 memory API's) to
> > > find the supported data types.
> > >
> > >
> > > -----Original Message-----
> > > From: mspgcc-users-ad...@lists.sourceforge.net
> > > [mailto:mspgcc-users-ad...@lists.sourceforge.net] On Behalf Of Thomas
> > > Carley
> > > Sent: Wednesday, February 12, 2003 8:16 AM
> > > To: mspgcc-users@lists.sourceforge.net
> > > Subject: Re: [Mspgcc-users] Double data type?
> > >
> > >
> > > Would a fixed point representation work well here? If you use base 2
> > > (binary fixed point) it is very efficient. What is the range of data
> > > you need to represent, and with what precision?
> > >
> > > On Wed, 12 Feb 2003, Dmitry wrote:
> > > > 64bits doubles are not supported.
> > > > I have no plans to make this support.
> > > >
> > > > only 32bits IEEE754 floats are (somehow) suported.
> > > >
> > > > ~d
> > > >
> > > > On Wednesday 12 February 2003 00:17, Mark Stokes wrote:
> > > > > What happened to the double data type that was discussed earlier. 
> > > > > I have found a need for it and was wondering.  Here's my dilemma: I
> > > > > am using 8-digit 7-seg display to represent things on the screen.
> > > > > This means that if I want to represent a floating point number that
> > >
> > > is
> > >
> > > > > less than one like 0.9999999 I would have a number that is out of
> > >
> > > the
> > >
> > > > > bounds of the "float" data type.  For example:
> > > > >
> > > > > float floatvar;
> > > > >
> > > > >     floatvar = 0.99999999
> > > > >
> > > > > Then floatvar ends up == 1 which is not helping me.  I need it to
> > > > > == .99999999 because internally the controller can't deal w/
> > > > > numbers
> > >
> > > (in
> > >
> > > > > this particular variable) that are >= 1.0.
> > > > > However, if I take the same code and put on Borland, and use
> > >
> > > "double's",
> > >
> > > > > then I get the intended result (floatvar ends up == to 0.99999999).
> > > > > {footnote: if I use float in Borland the same thing happens.}
> > > > >
> > > > > Any ideas on when "double" will be available?  What about a new
> > >
> > > release
> > >
> > > > > of the win32 executables?  Perhaps I'll get the gnu tree working so
> > >
> > > that
> > >
> > > > > I can make win32 releases, but right now I don't have the time to
> > >
> > > mess
> > >
> > > > > w/ that.
> > > > >
> > > > > Thanks
> > > > > -Mark
> > > > >
> > > > >
> > > > >
> > > > > -------------------------------------------------------
> > > > > This SF.NET email is sponsored by:
> > > > > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2
> > > > > See! http://www.vasoftware.com
> > > > > _______________________________________________
> > > > > Mspgcc-users mailing list
> > > > > Mspgcc-users@lists.sourceforge.net
> > > > > https://lists.sourceforge.net/lists/listinfo/mspgcc-users
> > > >
> > > > --
> > > > /********************************************************************
> > > >      ("`-''-/").___..--''"`-._     (\   Dimmy the Wild      UA1ACZ
> > > >       `6_ 6  )   `-.  (     ).`-.__.`)  Enterprise Information Sys
> > > >       (_Y_.)'  ._   )  `._ `. ``-..-'   Nevsky prospekt,   20 / 44
> > > >     _..`--'_..-_/  /--'_.' ,'           Saint Petersburg,   Russia
> > > >    (il),-''  (li),'  ((!.-'             +7 (812)  3468202, 5585314
> > > > 
> > > > ********************************************************************/
> > > >
> > > >
> > > >
> > > > -------------------------------------------------------
> > > > This SF.NET email is sponsored by:
> > > > SourceForge Enterprise Edition + IBM + LinuxWorld
> > >
> > > http://www.vasoftware.com
> > >
> > > > _______________________________________________
> > > > Mspgcc-users mailing list
> > > > Mspgcc-users@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/mspgcc-users
> > >
> > > -------------------------------------------------------
> > > This SF.NET email is sponsored by:
> > > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> > > http://www.vasoftware.com
> > > _______________________________________________
> > > Mspgcc-users mailing list
> > > Mspgcc-users@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/mspgcc-users
> > >
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.NET email is sponsored by:
> > > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> > > http://www.vasoftware.com
> > > _______________________________________________
> > > Mspgcc-users mailing list
> > > Mspgcc-users@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/mspgcc-users
> >
> > --
> > /********************************************************************
> >      ("`-''-/").___..--''"`-._     (\   Dimmy the Wild      UA1ACZ
> >       `6_ 6  )   `-.  (     ).`-.__.`)  Enterprise Information Sys
> >       (_Y_.)'  ._   )  `._ `. ``-..-'   Nevsky prospekt,   20 / 44
> >     _..`--'_..-_/  /--'_.' ,'           Saint Petersburg,   Russia
> >    (il),-''  (li),'  ((!.-'             +7 (812)  3468202, 5585314
> >  ********************************************************************/
> >
> >
> >
> > -------------------------------------------------------
> > This SF.NET email is sponsored by:
> > SourceForge Enterprise Edition + IBM + LinuxWorld
>
> http://www.vasoftware.com
>
> > _______________________________________________
> > Mspgcc-users mailing list
> > Mspgcc-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/mspgcc-users
>
> -------------------------------------------------------
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.com
> _______________________________________________
> Mspgcc-users mailing list
> Mspgcc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users

-- 
/********************************************************************
     ("`-''-/").___..--''"`-._     (\   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