Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for archLog10 (0.1 sec)

  1. src/math/log10.go

    // license that can be found in the LICENSE file.
    
    package math
    
    // Log10 returns the decimal logarithm of x.
    // The special cases are the same as for [Log].
    func Log10(x float64) float64 {
    	if haveArchLog10 {
    		return archLog10(x)
    	}
    	return log10(x)
    }
    
    func log10(x float64) float64 {
    	return Log(x) * (1 / Ln10)
    }
    
    // Log2 returns the binary logarithm of x.
    // The special cases are the same as for [Log].
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 873 bytes
    - Viewed (0)
  2. src/math/stubs.go

    	panic("not implemented")
    }
    
    const haveArchLog10 = false
    
    func archLog10(x float64) float64 {
    	panic("not implemented")
    }
    
    const haveArchLog2 = false
    
    func archLog2(x float64) float64 {
    	panic("not implemented")
    }
    
    const haveArchLog1p = false
    
    func archLog1p(x float64) float64 {
    	panic("not implemented")
    }
    
    const haveArchMod = false
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 2.6K bytes
    - Viewed (0)
  3. src/math/arith_s390x.go

    func logTrampolineSetup(x float64) float64
    func logAsm(x float64) float64
    
    // Below here all functions are grouped in stubs.go for other
    // architectures.
    
    const haveArchLog10 = true
    
    func archLog10(x float64) float64
    func log10TrampolineSetup(x float64) float64
    func log10Asm(x float64) float64
    
    const haveArchCos = true
    
    func archCos(x float64) float64
    func cosTrampolineSetup(x float64) float64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 15 15:48:19 UTC 2021
    - 3.7K bytes
    - Viewed (0)
  4. src/math/stubs_s390x.s

    // Copyright 2016 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    #include "textflag.h"
    
    TEXT ·archLog10(SB), NOSPLIT, $0
    	MOVD ·log10vectorfacility+0x00(SB), R1
    	BR   (R1)
    
    TEXT ·log10TrampolineSetup(SB), NOSPLIT, $0
    	MOVB   ·hasVX(SB), R1
    	CMPBEQ R1, $1, vectorimpl                 // vectorfacility = 1, vector supported
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 15 15:48:19 UTC 2021
    - 12.4K bytes
    - Viewed (0)
  5. src/math/log1p.go

    //
    // Special cases are:
    //
    //	Log1p(+Inf) = +Inf
    //	Log1p(±0) = ±0
    //	Log1p(-1) = -Inf
    //	Log1p(x < -1) = NaN
    //	Log1p(NaN) = NaN
    func Log1p(x float64) float64 {
    	if haveArchLog1p {
    		return archLog1p(x)
    	}
    	return log1p(x)
    }
    
    func log1p(x float64) float64 {
    	const (
    		Sqrt2M1     = 4.142135623730950488017e-01  // Sqrt(2)-1 = 0x3fda827999fcef34
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 6.3K bytes
    - Viewed (0)
Back to top