- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for archLog (0.13 sec)
-
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) -
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) -
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) -
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) -
src/math/stubs_s390x.s
MOVD $·cbrtAsm(SB), R2 MOVD R2, 0(R1) BR ·cbrtAsm(SB) GLOBL ·cbrtvectorfacility+0x00(SB), NOPTR, $8 DATA ·cbrtvectorfacility+0x00(SB)/8, $·cbrtTrampolineSetup(SB) TEXT ·archLog(SB), NOSPLIT, $0 MOVD ·logvectorfacility+0x00(SB), R1 BR (R1) TEXT ·logTrampolineSetup(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) -
src/math/stubs.go
} 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 func archMod(x, y float64) float64 { panic("not implemented") } const haveArchPow = false func archPow(x, y float64) float64 { panic("not implemented") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 2.6K bytes - Viewed (0) -
src/math/arith_s390x.go
const haveArchLdexp = false func archLdexp(frac float64, exp int) float64 { panic("not implemented") } const haveArchLog2 = false func archLog2(x float64) float64 { panic("not implemented") } const haveArchMod = false func archMod(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 Apr 15 15:48:19 UTC 2021 - 3.7K bytes - Viewed (0) -
src/math/log10.go
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]. func Log2(x float64) float64 { if haveArchLog2 { return archLog2(x) } return log2(x) } func log2(x float64) float64 { frac, exp := Frexp(x) // Make sure exact powers of two give an exact answer. // Don't depend on Log(0.5)*(1/Ln2)+exp being exactly exp-1.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 11:59:09 UTC 2023 - 873 bytes - Viewed (0) -
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) -
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)