Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for archPow (0.23 sec)

  1. src/math/stubs.go

    }
    
    const haveArchLog1p = false
    
    func archLog1p(x float64) float64 {
    	panic("not implemented")
    }
    
    const haveArchMod = false
    
    func archMod(x, y float64) float64 {
    	panic("not implemented")
    }
    
    const haveArchPow = false
    
    func archPow(x, y float64) float64 {
    	panic("not implemented")
    }
    
    const haveArchRemainder = false
    
    func archRemainder(x, y float64) float64 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 2.6K bytes
    - Viewed (0)
  2. src/math/arith_s390x.go

    const haveArchExpm1 = true
    
    func archExpm1(x float64) float64
    func expm1TrampolineSetup(x float64) float64
    func expm1Asm(x float64) float64
    
    const haveArchPow = true
    
    func archPow(x, y float64) float64
    func powTrampolineSetup(x, y float64) float64
    func powAsm(x, y float64) float64
    
    const haveArchFrexp = false
    
    func archFrexp(x float64) (float64, int) {
    	panic("not implemented")
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 15 15:48:19 UTC 2021
    - 3.7K bytes
    - Viewed (0)
  3. src/math/pow.go

    //	Pow(+Inf, y) = +Inf for y > 0
    //	Pow(+Inf, y) = +0 for y < 0
    //	Pow(-Inf, y) = Pow(-0, -y)
    //	Pow(x, y) = NaN for finite x < 0 and finite non-integer y
    func Pow(x, y float64) float64 {
    	if haveArchPow {
    		return archPow(x, y)
    	}
    	return pow(x, y)
    }
    
    func pow(x, y float64) float64 {
    	switch {
    	case y == 0 || x == 1:
    		return 1
    	case y == 1:
    		return x
    	case IsNaN(x) || IsNaN(y):
    		return NaN()
    	case x == 0:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 24 19:10:58 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  4. src/math/stubs_s390x.s

    	MOVD $·expm1Asm(SB), R2
    	MOVD R2, 0(R1)
    	BR   ·expm1Asm(SB)
    
    GLOBL ·expm1vectorfacility+0x00(SB), NOPTR, $8
    DATA ·expm1vectorfacility+0x00(SB)/8, $·expm1TrampolineSetup(SB)
    
    TEXT ·archPow(SB), NOSPLIT, $0
    	MOVD ·powvectorfacility+0x00(SB), R1
    	BR   (R1)
    
    TEXT ·powTrampolineSetup(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/log_asm.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build amd64 || s390x
    
    package math
    
    const haveArchLog = true
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 259 bytes
    - Viewed (0)
  6. src/math/log_stub.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build !amd64 && !s390x
    
    package math
    
    const haveArchLog = false
    
    func archLog(x float64) float64 {
    	panic("not implemented")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 292 bytes
    - Viewed (0)
  7. src/math/mod.go

    //
    // Special cases are:
    //
    //	Mod(±Inf, y) = NaN
    //	Mod(NaN, y) = NaN
    //	Mod(x, 0) = NaN
    //	Mod(x, ±Inf) = x
    //	Mod(x, NaN) = NaN
    func Mod(x, y float64) float64 {
    	if haveArchMod {
    		return archMod(x, y)
    	}
    	return mod(x, y)
    }
    
    func mod(x, y float64) float64 {
    	if y == 0 || IsInf(x, 0) || IsNaN(x) || IsNaN(y) {
    		return NaN()
    	}
    	y = Abs(y)
    
    	yfr, yexp := Frexp(y)
    	r := x
    	if x < 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 903 bytes
    - Viewed (0)
  8. src/math/log.go

    // Log returns the natural logarithm of x.
    //
    // Special cases are:
    //
    //	Log(+Inf) = +Inf
    //	Log(0) = -Inf
    //	Log(x < 0) = NaN
    //	Log(NaN) = NaN
    func Log(x float64) float64 {
    	if haveArchLog {
    		return archLog(x)
    	}
    	return log(x)
    }
    
    func log(x float64) float64 {
    	const (
    		Ln2Hi = 6.93147180369123816490e-01 /* 3fe62e42 fee00000 */
    		Ln2Lo = 1.90821492927058770002e-10 /* 3dea39ef 35793c76 */
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  9. src/math/log_amd64.s

    #define L7     1.479819860511658591e-01   // 0x3FC2F112DF3E5244
    #define NaN    0x7FF8000000000001
    #define NegInf 0xFFF0000000000000
    #define PosInf 0x7FF0000000000000
    
    // func Log(x float64) float64
    TEXT ·archLog(SB),NOSPLIT,$0
    	// test bits for special cases
    	MOVQ    x+0(FP), BX
    	MOVQ    $~(1<<63), AX // sign bit mask
    	ANDQ    BX, AX
    	JEQ     isZero
    	MOVQ    $0, AX
    	CMPQ    AX, BX
    	JGT     isNegative
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 23 20:52:57 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  10. src/math/sin.go

    }
    
    // Cos returns the cosine of the radian argument x.
    //
    // Special cases are:
    //
    //	Cos(±Inf) = NaN
    //	Cos(NaN) = NaN
    func Cos(x float64) float64 {
    	if haveArchCos {
    		return archCos(x)
    	}
    	return cos(x)
    }
    
    func cos(x float64) float64 {
    	const (
    		PI4A = 7.85398125648498535156e-1  // 0x3fe921fb40000000, Pi/4 split into three parts
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 6.4K bytes
    - Viewed (0)
Back to top