]> Cypherpunks repositories - gostls13.git/commit
math/big: recognize squaring for Floats
authorBrian Kessler <brian.m.kessler@gmail.com>
Fri, 18 Aug 2017 06:26:31 +0000 (23:26 -0700)
committerRobert Griesemer <gri@golang.org>
Fri, 18 Aug 2017 12:48:10 +0000 (12:48 +0000)
commit497f891fce8c6657ab28dfcd2e7195014f3a967f
treef2492bf666bf3f583ca8bf8aa4ddf4d46bb7d51c
parentfe08ebaebb09cb0c45e3728a96d494f7f9f5c1b3
math/big: recognize squaring for Floats

Updates #13745

Recognize z.Mul(x, x) as squaring for Floats and use
the internal z.sqr(x) method for nat on the mantissa.

Change-Id: I0f792157bad93a13cae1aecc4c10bd20c6397693
Reviewed-on: https://go-review.googlesource.com/56774
Reviewed-by: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/math/big/float.go