diff options
Diffstat (limited to 'vendor/modernc.org/mathutil/sqr_std.go')
-rw-r--r-- | vendor/modernc.org/mathutil/sqr_std.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vendor/modernc.org/mathutil/sqr_std.go b/vendor/modernc.org/mathutil/sqr_std.go new file mode 100644 index 00000000..50c69204 --- /dev/null +++ b/vendor/modernc.org/mathutil/sqr_std.go @@ -0,0 +1,9 @@ +// +build riscv64 + +package mathutil + +func (f *float) sqr() { + f.n.Mul(f.n, f.n) + f.fracBits *= 2 + f.normalize() +} |