// ====================================================
//
// __ieee754_log(x)
-// Return the logrithm of x
+// Return the logarithm of x
//
// Method :
// 1. Argument Reduction: find k and f such that
// 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 */