Update dependencies
This commit is contained in:
1
vendor/modernc.org/mathutil/CONTRIBUTORS
generated
vendored
1
vendor/modernc.org/mathutil/CONTRIBUTORS
generated
vendored
@ -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>
|
||||
|
8
vendor/modernc.org/mathutil/binarylog.go
generated
vendored
8
vendor/modernc.org/mathutil/binarylog.go
generated
vendored
@ -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
11
vendor/modernc.org/mathutil/sqr.go
generated
vendored
Normal 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
9
vendor/modernc.org/mathutil/sqr_std.go
generated
vendored
Normal 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()
|
||||
}
|
Reference in New Issue
Block a user