aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/math/acosh.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/math/acosh.go')
-rw-r--r--libgo/go/math/acosh.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/libgo/go/math/acosh.go b/libgo/go/math/acosh.go
index dce21b2..97e84d0 100644
--- a/libgo/go/math/acosh.go
+++ b/libgo/go/math/acosh.go
@@ -40,6 +40,13 @@ package math
// Acosh(x) = NaN if x < 1
// Acosh(NaN) = NaN
func Acosh(x float64) float64 {
+ return libc_acosh(x)
+}
+
+//extern acosh
+func libc_acosh(float64) float64
+
+func acosh(x float64) float64 {
const (
Ln2 = 6.93147180559945286227e-01 // 0x3FE62E42FEFA39EF
Large = 1 << 28 // 2**28