avr-libc icon indicating copy to clipboard operation
avr-libc copied to clipboard

[patch #6680] Sine, cosine functions

Open avrs-admin opened this issue 3 years ago • 2 comments

Mon 24 Nov 2008 02:13:45 PM CET

Hi All, I listed this under patches, if this is wrong I'm sorry..

The issues are the sine, cosine functions. When I started to try to speed-up the sine function I noticed that version 1.6.3 was quite inaccurate (errors as much as 2 times the lsb). So I made a quick draft of an improved? Version.. See attached file fp_sinus2. This is by no means intended as a final version, but is merely meant as an quick draft which needs improving and splitting (powsodd should be used by tan, tanh… etc). The results however are quite good. See attached sintest.txt (written with notepad windows).  More than twice the speed and much better accuracy.. Regards Ruud

file #16913: fp_sinus2.s file #16912: sintest.txt

This issue was migrated from https://savannah.nongnu.org/patch/?6680

avrs-admin avatar Jan 31 '22 07:01 avrs-admin

Joerg Wunsch <joerg_wunsch> Tue 08 Jun 2010 01:51:00 PM CEST

Dmitry is our Mr. libm.

avrs-admin avatar Jan 31 '22 07:01 avrs-admin

Eric Weddington Fri 13 May 2011 12:30:13 AM CEST

Dmitry, could you please take a look at these patches?

avrs-admin avatar Jan 31 '22 07:01 avrs-admin