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


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

patch #6680: Sine, cosine functions

Submitted by:  Ruud <ruud62>
Submitted on:  Mon Nov 24 13:13:45 2008  
Category: NonePriority: 3 - Low
Status: NonePrivacy: Public
Assigned to: Dmitry Xmelkov <dmix>Open/Closed: Open

Thu May 12 22:30:13 2011, comment #2:

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

Eric Weddington <arcanum>
Project Administrator
Tue Jun 8 11:51:00 2010, comment #1:

Dmitry is our Mr. libm.

Joerg Wunsch <joerg_wunsch>
Project Administrator
Mon Nov 24 13:13:45 2008, 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..

Ruud <ruud62>
Project Member


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


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by arcanum (Posted a comment)
  • -unavailable- added by joerg_wunsch (Posted a comment)
  • -unavailable- added by ruud62 (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue Jun 8 11:51:00 2010joerg_wunschAssigned toNone=>dmix
    Mon Nov 24 13:13:45 2008ruud62Attached File-=>Added sintest.txt, #16912
      Attached File-=>Added fp_sinus2.s, #16913

    Back to the top

    Powered by Savane 3.1-cleanup1