Opened 10 years ago

Closed 10 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:


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.

Change History (1)

comment:1 by Martin Decky, 10 years ago

Resolution: fixed
Status: newclosed

Implemented in mainline,2083. The Taylor series approximation is not lightning-fast, but it is very accurate, portable and easy to understand.

Note: See TracTickets for help on using tickets.