envoid/vendor/modernc.org/mathutil/sqr.go
Sagi Dayan d5d1eecb89
Some checks failed
Codespell / Check for spelling errors (push) Failing after 1m26s
Initial commit
Signed-off-by: Sagi Dayan <sagidayan@gmail.com>
2024-12-12 20:18:00 +02:00

12 lines
208 B
Go

//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()
}