]> Cypherpunks repositories - gostls13.git/commit
runtime: fix complex division benchmarks
authorShenghou Ma <minux.ma@gmail.com>
Thu, 10 May 2012 19:09:14 +0000 (03:09 +0800)
committerShenghou Ma <minux.ma@gmail.com>
Thu, 10 May 2012 19:09:14 +0000 (03:09 +0800)
commitaa45e52e74f37e39a5a8234071742d50b87b7b2c
tree4fdf9fd23d3879b456dc2f3a6c1e9f11194a2c18
parent5374ded1f3c35a9c98f4a80e35b4b11fa3caa1c7
runtime: fix complex division benchmarks
we can't add the division result to n during iteration, because it might
turn n into NaN or Inf.

R=golang-dev, rsc, iant, iant
CC=golang-dev
https://golang.org/cl/6197045
src/pkg/runtime/complex_test.go