From 1a57267a17c2fc17fb6e104846fabc3e363c326c Mon Sep 17 00:00:00 2001 From: Emile Date: Fri, 16 Aug 2024 19:50:26 +0200 Subject: initial commit --- vendor/modernc.org/mathutil/sqr.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 vendor/modernc.org/mathutil/sqr.go (limited to 'vendor/modernc.org/mathutil/sqr.go') diff --git a/vendor/modernc.org/mathutil/sqr.go b/vendor/modernc.org/mathutil/sqr.go new file mode 100644 index 0000000..b7e15c9 --- /dev/null +++ b/vendor/modernc.org/mathutil/sqr.go @@ -0,0 +1,12 @@ +//go:build !riscv64 && !loong64 +// +build !riscv64,!loong64 + +package mathutil + +import "github.com/remyoudompheng/bigfft" + +func (f *float) sqr() { + f.n = bigfft.Mul(f.n, f.n) + f.fracBits *= 2 + f.normalize() +} -- cgit 1.4.1