patchAVR C Runtime Library - Patches: patch #6680, Sine, cosine functions

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #6680: Sine, cosine functions

Submitter:  Ruud <ruud62>
Submitted:  Mon 24 Nov 2008 01:13:45 PM UTC
   
 
Category:  None Priority:  3 - Low
Status:  None Privacy:  Public
Assigned to:  dmix Open/Closed:  Open

(-)Discussion

Thu 12 May 2011 10:30:13 PM UTC, comment #2: 

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

Eric Weddington <arcanum>
Group administrator
Tue 08 Jun 2010 11:51:00 AM UTC, comment #1: 

Dmitry is our Mr. libm.

Joerg Wunsch <joerg_wunsch>
Group administrator
Mon 24 Nov 2008 01:13:45 PM UTC, original submission:  

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

Ruud <ruud62>
Group Member

 

(-)Attached Files

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #16912:  sintest.txt added by ruud62 (2KiB - text/plain)
file #16913:  fp_sinus2.s added by ruud62 (4KiB - text/plain)

 

(-)Dependencies

Depends on the following items: None found

Items that depend on this one: None found

 

(+)Mail Notification Carbon-Copy List

(+)Votes

(+)History

Back to the top

Powered by Savane 3.14-31c1.
Corresponding source code