A question on how sin(Infinity) or sin(Nan) is handled.

It seems that for these values, we have to go all the way through to the
Payne-Hanek routine in C to get it to return NaN, which is then passed into the
kernel routines.

While NaN and Infinity are relatively rare, it's been my experience that once
NaN is generated, it just propagates everywhere forever, so now all trig
functions will be blazingly slow.

Would it make sense to add the special case to REMPIO2 instead? And maybe inform MathSin, MathCos, and MathTan that REMPIO2 returned NaN so the kernel routines
aren't called?

https://codereview.chromium.org/411263004/

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to