Update dependencies

This commit is contained in:
TwinProduction
2021-10-03 22:15:20 -04:00
parent 2d3fe9795f
commit 154bc7dbc6
1204 changed files with 373532 additions and 50576 deletions

View File

@ -12,3 +12,4 @@ Faiz Abbasi <faizamodo@gmail.com>
Gary Burd <gary@beagledreams.com>
Jan Mercl <0xjnml@gmail.com>
Muhammad Surya <surya.asriadie@gmail.com>
Santiago De la Cruz <delacruzsantiago12@gmail.com>

View File

@ -6,8 +6,6 @@ package mathutil // import "modernc.org/mathutil"
import (
"math/big"
"github.com/remyoudompheng/bigfft"
)
type float struct {
@ -55,12 +53,6 @@ func (f *float) div2() {
f.normalize()
}
func (f *float) sqr() {
f.n = bigfft.Mul(f.n, f.n)
f.fracBits *= 2
f.normalize()
}
// BinaryLog computes the binary logarithm of n. The result consists of a
// characteristic and a mantissa having precision mantissaBits. The value of
// the binary logarithm is

11
vendor/modernc.org/mathutil/sqr.go generated vendored Normal file
View File

@ -0,0 +1,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()
}

9
vendor/modernc.org/mathutil/sqr_std.go generated vendored Normal file
View File

@ -0,0 +1,9 @@
// +build riscv64
package mathutil
func (f *float) sqr() {
f.n.Mul(f.n, f.n)
f.fracBits *= 2
f.normalize()
}