feature request - accurate trig functions in blue

For general discussion related FlowStone
infuzion
Posts: 109
Joined: Tue Jul 13, 2010 11:55 am
Location: Kansas City, USA, Earth, Sol

Re: feature request - accurate trig functions in blue

Post 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 ;)
Post Reply