summaryrefslogtreecommitdiff
path: root/src/pkg/math/exp2.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/math/exp2.go')
-rw-r--r--src/pkg/math/exp2.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/math/exp2.go b/src/pkg/math/exp2.go
index 1e67f29eb..1cface9d3 100644
--- a/src/pkg/math/exp2.go
+++ b/src/pkg/math/exp2.go
@@ -7,4 +7,4 @@ package math
// Exp2 returns 2**x, the base-2 exponential of x.
//
// Special cases are the same as Exp.
-func Exp2(x float64) float64 { return Exp(x * Ln2) }
+func Exp2(x float64) float64 { return exp2Go(x) }