tan() messed up the FPU stack and computed wrong results, because the parameter was not stated as an input in the asm statement. I checked the compiler generated assembly for correctness and compared results with glibc, everything seems to work now.
This was a pretty sneaky error, we may have more cases of this elsewhere.
tan()
messed up the FPU stack and computed wrong results, because the parameter was not stated as an input in theasm
statement. I checked the compiler generated assembly for correctness and compared results with glibc, everything seems to work now.This was a pretty sneaky error, we may have more cases of this elsewhere.
Fixes #36.