about summary refs log tree commit diff
path: root/vendor/modernc.org/mathutil/sqr_std.go
blob: a19c772d036deaf03d82dec164badb1ddb32c881 (plain)
1
2
3
4
5
6
7
8
9
10
//go:build riscv64 || loong64
// +build riscv64 loong64

package mathutil

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