diff options
Diffstat (limited to 'libgo/go/math/log.go')
-rw-r--r-- | libgo/go/math/log.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libgo/go/math/log.go b/libgo/go/math/log.go index a786c8c..f06611d 100644 --- a/libgo/go/math/log.go +++ b/libgo/go/math/log.go @@ -77,7 +77,12 @@ package math // Log(0) = -Inf // Log(x < 0) = NaN // Log(NaN) = NaN +func libc_log(float64) float64 __asm__("log") func Log(x float64) float64 { + return libc_log(x) +} + +func log(x float64) float64 { const ( Ln2Hi = 6.93147180369123816490e-01 /* 3fe62e42 fee00000 */ Ln2Lo = 1.90821492927058770002e-10 /* 3dea39ef 35793c76 */ |