switch to CGO-free builds
This commit is contained in:
10
vendor/modernc.org/mathutil/sqr_std.go
generated
vendored
Normal file
10
vendor/modernc.org/mathutil/sqr_std.go
generated
vendored
Normal file
@@ -0,0 +1,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()
|
||||
}
|
||||
Reference in New Issue
Block a user