summaryrefslogtreecommitdiffstats
path: root/vendor/modernc.org/mathutil/sqr.go
blob: 0b29b874e2c85a6d62983e9ed2cb9781a30dffff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
// +build !riscv64

package mathutil

import "github.com/remyoudompheng/bigfft"

func (f *float) sqr() {
	f.n = bigfft.Mul(f.n, f.n)
	f.fracBits *= 2
	f.normalize()
}