OSDN Git Service

compiler, libgo: Use //extern comments rather than __asm__.
[pf3gnuchains/gcc-fork.git] / libgo / go / math / log.go
index 39d9451..5e5c427 100644 (file)
@@ -23,7 +23,7 @@ package math
 // ====================================================
 //
 // __ieee754_log(x)
-// Return the logrithm of x
+// Return the logarithm of x
 //
 // Method :
 //   1. Argument Reduction: find k and f such that
@@ -77,7 +77,15 @@ package math
 //     Log(0) = -Inf
 //     Log(x < 0) = NaN
 //     Log(NaN) = NaN
+
+//extern log
+func libc_log(float64) float64
+
 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 */