From: Raul Silvera Date: Wed, 14 Oct 2015 02:49:40 +0000 (-0700) Subject: runtime: Reduce testing for fastlog2 implementation X-Git-Tag: go1.6beta1~846 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=1d765b77a04fb12c2d97e0a8c9491de2bbfcbacc;p=gostls13.git runtime: Reduce testing for fastlog2 implementation The current fastlog2 testing checks all 64M values in the domain of interest, which is too much for platforms with no native floating point. Reduce testing under testing.Short() to speed up builds for those platforms. Related to #12620 Change-Id: Ie5dcd408724ba91c3b3fcf9ba0dddedb34706cd1 Reviewed-on: https://go-review.googlesource.com/15830 Reviewed-by: Keith Randall Reviewed-by: Joel Sing Reviewed-by: Minux Ma Run-TryBot: Minux Ma TryBot-Result: Gobot Gobot --- diff --git a/src/runtime/fastlog2_test.go b/src/runtime/fastlog2_test.go index 8937365d51..14f6c90837 100644 --- a/src/runtime/fastlog2_test.go +++ b/src/runtime/fastlog2_test.go @@ -15,7 +15,13 @@ func TestFastLog2(t *testing.T) { // implementation over the range of interest for heap sampling. const randomBitCount = 26 var e float64 - for i := 1; i < 1<