Status: New
Owner: ----

New issue 2299 by [email protected]: bnBitCount missing variable
http://code.google.com/p/v8/issues/detail?id=2299

http://code.google.com/p/v8/source/browse/branches/bleeding_edge/benchmarks/crypto.js#904

// (public) return number of set bits
function bnBitCount() {
  var r = 0, x = this.s&BI_DM;
  for(var i = 0; i < this.t; ++i) r += cbit(this_array[i]^x);
  return r;
}

but should be:
// (public) return number of set bits
function bnBitCount() {
  var this_array = this.array;
  var r = 0, x = this.s&BI_DM;
  for(var i = 0; i < this.t; ++i) r += cbit(this_array[i]^x);
  return r;
}

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

Reply via email to