- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for archMod (0.12 sec)
-
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/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) -
src/math/modf_ppc64x.s
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build ppc64 || ppc64le #include "textflag.h" // func archModf(f float64) (int float64, frac float64) TEXT ·archModf(SB),NOSPLIT,$0 FMOVD f+0(FP), F0 FRIZ F0, F1 FMOVD F1, int+8(FP) FSUB F1, F0, F2 FCPSGN F2, F0, F2 FMOVD F2, frac+16(FP)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:27 UTC 2023 - 416 bytes - Viewed (0) -
src/math/modf_asm.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build arm64 || ppc64 || ppc64le package math const haveArchModf = true
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/modf_noasm.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build !arm64 && !ppc64 && !ppc64le package math const haveArchModf = false func archModf(f float64) (int float64, frac float64) { panic("not implemented")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 326 bytes - Viewed (0) -
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/modf.go
// that sum to f. Both values have the same sign as f. // // Special cases are: // // Modf(±Inf) = ±Inf, NaN // Modf(NaN) = NaN, NaN func Modf(f float64) (int float64, frac float64) { if haveArchModf { return archModf(f) } return modf(f) } func modf(f float64) (int float64, frac float64) { if f < 1 { switch { case f < 0: int, frac = Modf(-f) return -int, -frac case f == 0:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 913 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) -
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)