AVR C Runtime Library - Bugs: bug #9348, asin (acos) & atan problem...
You are not allowed to post comments on this tracker with your current authentication level.
bug #9348: asin (acos) & atan problem (64K boundary)
Submitter: | None | ||
Submitted: | Tue 15 Jun 2004 01:03:36 PM UTC | ||
Category: | Library | Severity: | 3 - Normal |
Priority: | 5 - Normal | Item Group: | None |
Status: | Fixed | Assigned to: | troth |
Percent Complete: | 0% | Originator Email: | -email is unavailable- |
Open/Closed: | Closed | Release: | None |
Fixed Release: | None |
Mon 01 Nov 2004 05:22:54 PM UTC, comment #2: |
Theodore A. Roth <troth> |
Mon 18 Oct 2004 05:29:49 PM UTC, comment #1: The reason why this is happening is that acos() calls asin(), and asin() and atan() are both implemented using tables. The data tables are loaded with a 16 bit pointer, hence only work in the lowest 64K address space. |
Eric Weddington <arcanum> |
Tue 15 Jun 2004 01:03:36 PM UTC, original submission:
When crossing 64K boundary asin, acos and atan give incorrect results. |
Anonymous |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
CC list is empty
Follow 3 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2004-11-01 | troth | Status | None | Fixed | |
Assigned to | None | troth | |||
Open/Closed | Open | Closed |
Powered by Savane 3.13-f8d8.
Corresponding source code
Both asin.S and atan.S were missing PGM_SECTION before the lookup tables. Adding that forces the tables into the lower 64K of flash (i.e. the .progmem.gcc_fplib section).
Fix applied to both cvs HEAD and 1.0 branch.