Comment #6 on issue 3773 by [email protected]: V8 is not -fsanitize=float-cast-overflow clean
https://code.google.com/p/v8/issues/detail?id=3773

FastD2I is written with the undefined behavior in mind. Here's the comment:

// The fast double-to-(unsigned-)int conversion routine does not guarantee
// rounding towards zero.
// The result is unspecified if x is infinite or NaN, or if the rounded
// integer value is outside the range of type int.

We also have a FastD2IChecked, which avoid the undefined behavior. Maybe we can replace all FastD2I with FastD2I checked and replace FastI2D(FastD2I(x)) calls with something else?

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
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