avr-libc
avr-libc copied to clipboard
[patch #6680] Sine, cosine functions
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
Joerg Wunsch <joerg_wunsch> Tue 08 Jun 2010 01:51:00 PM CEST
Dmitry is our Mr. libm.
Eric Weddington
Dmitry, could you please take a look at these patches?