Page 2 of 2

Re: feature request - accurate trig functions in blue

Posted: Mon Jan 21, 2013 6:02 pm
by infuzion
MyCo wrote:
infuzion wrote:
MyCo wrote:ASM Workaround.
In the Tan, you have fstp twice per line; is there a reason for this please?
Yes. fptan opcode pushs its result on the stack and then it pushs "1"... so to get the right result you have to pop a dummy (which is always 1) and then pop the result.
BTW: I've made a mistake on the other SSE channels in the tan function. I've attached the fixed version.
Thanks for the insight!
Hmmm I guess I was not in bug-hunting mode, but glad I helped you find it ;)