This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: newlib vs C99 math functions


Christopher Faylor wrote:
On Thu, Aug 10, 2006 at 03:49:01PM -0500, mwoehlke wrote:
Christopher Faylor wrote:
On Thu, Aug 10, 2006 at 02:35:44PM -0500, mwoehlke wrote:
Andrew Pinski wrote:
While porting some code over to use newlib from a closed source libc,
I ran into the problem of that newlib did not implement most of the
C99 math functions or macros.  I ran into the problem that FP_ILOGB0
was not defined and I was wondering if anyone is working on adding any
of the C99 math functions to newlib?

Also is there a bug system for newlib because it would be great to
file bugs about the problems I ran into.

Thanks,
Andrew Pinski
Well, newlib's printf() does not support "%a"/"%A" which are required by C99, so my observation of the C99 support at least is "spotty at best".

Meanwhile, I'll wait anxiously to see you get any more attention from the 'official' folks than I've gotten so far.
http://isbn.nu/0671723650
Meh :-D
(You know, I think we're going to get a lot of mileage out of that...)

You know it will only be a short matter of time before that is directed at me, right? :-)

Ouch, you're right... my condolences, in advance. :-)
This would be a little past the TITTTL point, but I can't seem to find newlib-talk ;-)


I apologize for getting used to the promptness of Cygwin's list. This one *does* seems dead by comparison.

Now that we know you're here, do you know if anyone is working on adding C99-conformance to newlib? ;-)

I don't think that newlib has a roadmap. Any changes would come from either contributions or talking very nicely to Jeff. Since newlib isn't Jeff's full-time job, I would imagine that adding major new functionality won't be high on his to-do list.

If there is a list, "%a" in printf/etc would be nice, but I have no need of it now or in the foreseeable future. I mainly point it out because it looks like that is the only thing missing from printf-and-friends for C99 conformance.


Not sure if I can help Andrew; if they were macros I'd say borrow from a compatible open-source libc (like, say, glibc) and offer a patch, but I see he also mentioned missing functions; those are a little more complicated to add.

--
Matthew
vIMprove your life! Now on version 7!


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]