RESOLVED FIXED 15703
fix numeric functions -- improve correctness and speed
https://bugs.webkit.org/show_bug.cgi?id=15703
Summary fix numeric functions -- improve correctness and speed
Darin Adler
Reported 2007-10-25 23:24:43 PDT
I noticed that our toInteger function was not doing what the specification said it should. And that toInt32 wasn't optimizing enough. So I went and optimized both.
Attachments
patch with detailed change log (21.41 KB, patch)
2007-10-26 00:05 PDT, Darin Adler
mjs: review+
Darin Adler
Comment 1 2007-10-26 00:05:35 PDT
Created attachment 16873 [details] patch with detailed change log
Maciej Stachowiak
Comment 2 2007-10-26 00:33:18 PDT
Comment on attachment 16873 [details] patch with detailed change log r=me with one comment: please consider using trunc(d) instead of copysign(floor(fabs(d))). They should do the same thing.
Darin Adler
Comment 3 2007-10-26 01:04:03 PDT
Committed revision 27095.
Note You need to log in before you can comment on or make changes to this bug.