Update dependencies

This commit is contained in:
TwinProduction committed 2021-10-03 22:15:20 -04:00
1 parent 2d3fe9795f
commit 154bc7dbc6
1204 files changed
+373532 -50576

No files matched your search

+1
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>
-8
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
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
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()
}