Reviewers: Mads Ager, Kevin Millikin,

Message:
Ready for initial review.

Description:
Change the implementation of Math.random to use George
Marsaglia's multiply-with-carry instead of mixing the
bits obtained from calling the system random() twice.

This seems to be a bit faster and gives a better
distribution than the system random() in particular on
Windows.

Please review this at http://codereview.chromium.org/126113

SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/

Affected files:
   M     src/api.cc
   M     src/arm/codegen-arm.h
   M     src/arm/codegen-arm.cc
   M     src/assembler.h
   M     src/assembler.cc
   M     src/codegen.cc
   M     src/ia32/codegen-ia32.h
   M     src/ia32/codegen-ia32.cc
   M     src/math.js
   M     src/runtime.h
   M     src/runtime.cc
   M     src/serialize.cc
   M     src/v8.h
   M     src/v8.cc



--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to