Home | History | Annotate | Download | only in math
      1 // Copyright 2010 The Go Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style
      3 // license that can be found in the LICENSE file.
      4 
      5 #include "textflag.h"
      6 
      7 // func Log(x float64) float64
      8 TEXT Log(SB),NOSPLIT,$0
      9 	FLDLN2               // F0=log(2)
     10 	FMOVD   x+0(FP), F0  // F0=x, F1=log(2)
     11 	FYL2X                // F0=log(x)=log2(x)*log(2)
     12 	FMOVDP  F0, ret+8(FP)
     13 	RET
     14