« Return to Thread: Some question regarding FP-math

Re: Some question regarding FP-math

by Weddington, Eric :: Rate this Message:

| View in Thread



> -----Original Message-----
> From: avr-libc-dev-bounces+eric.weddington=atmel.com@... [mailto:avr-
> libc-dev-bounces+eric.weddington=atmel.com@...] On Behalf Of David
> Brown
> Sent: Sunday, July 01, 2012 7:21 AM
> To: avr-libc-dev@...
> Subject: Re: [avr-libc-dev] Some question regarding FP-math
>
>
> Is there any interest in alternative implementations for some of these
> functions?  I've got some code for calculating sines and cosines using a
> table with cubic interpolation which I used on another processor.  It is
> probably a little bigger than the current avr-libc implementation, but
> not too bad - with cubic interpolation the table can be a lot smaller
> than with linear interpolation.  It is also not quite as accurate as
> power-series implementations tend to be, but it is a lot faster, and
> accurate enough for many uses.
>
> I'm sure I could adapt the code to the avr.  But I don't know the best
> way to include such code in avr-libc - because it is not accurate enough
> for IEEE standards, it can't replace the standard implementations.
>

The goal of avr-libc is to be a Standard C library. Because of that, it does need to meet all relevant standards.

However, you could still put together a library to be distributed separately.
:-)

Eric

_______________________________________________
AVR-libc-dev mailing list
AVR-libc-dev@...
https://lists.nongnu.org/mailman/listinfo/avr-libc-dev

 « Return to Thread: Some question regarding FP-math