Opened 11 years ago
Closed 11 years ago
#583 closed defect (fixed)
Implement missing trigonometric functions
Reported by: | Martin Decky | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 0.6.0 |
Component: | helenos/lib/softfloat | Version: | mainline |
Keywords: | Cc: | ||
Blocker for: | Depends on: | ||
See also: |
Description
The trigonometric functions sine and cosine are currently implemented properly only for ia32 and amd64. Therefore code relying on these functions (e.g. GUI rendering) does not work correctly on other platforms.
A generic software implementation of these transcendetal functions with a reasonable precision should be available for platforms without a FPU or where the FPU is unable to calculate these functions directly. Platforms which support such functions in hardware should preferably use the hardware implementation.
Note:
See TracTickets
for help on using tickets.
Implemented in mainline,2083. The Taylor series approximation is not lightning-fast, but it is very accurate, portable and easy to understand.