Fw: Error in documentation for tan(), and poor implementation of sin() and cos()

Wilco Dijkstra Wilco.Dijkstra@arm.com
Wed Jul 8 09:36:26 GMT 2026


Hi Paul,

In all cases that is the shared range reducer which has bugs for huge inputs,
so you could just directly check the range reducer. Using integer arithmetic
like I did for float sin/cos results in a much simpler and faster range reducer.

Cheers,
Wilco


More information about the Libc-alpha mailing list