Comment #1 on issue 895 by pierreAndre.laurent: gcd negative parameters
http://code.google.com/p/v8/issues/detail?id=895

The real problem I was facing in earley-boyer.js file in benchmaks-v2.zip is :

gcd must always return a positive number

if (a === 0) return abs(b);
if (b === 0) return abs(a);


considering gcd(-a,b) == gcd(a,b) , ooops I am sorry, the code is right (this comes from the definition of gcd)


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

Reply via email to