- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 783 for Seal (0.03 sec)
-
test/fixedbugs/issue4252.dir/main.go
package main import "./a" func main() { if a.InlinedFakeTrue() { panic("returned true was the real one") } if !a.InlinedFakeFalse() { panic("returned false was the real one") } if a.InlinedFakeNil() == nil { panic("returned nil was the real one") } a.Test()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 435 bytes - Viewed (0) -
test/fixedbugs/bug491.go
if len(a) != 1 || len(c) != 3 { bug() println("make call not ordered:", len(a), b, len(c)) } } // real { x := 1 + 0i f := func() int { x = 3; return 2 } a, b, c := real(x), f(), real(x) if a != 1 || c != 3 { bug() println("real call not ordered:", a, b, c) } } } var bugged = false func bug() { if !bugged { println("BUG")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 2K bytes - Viewed (0) -
pkg/proxy/ipvs/graceful_termination.go
) const ( rsCheckDeleteInterval = 1 * time.Minute ) // listItem stores real server information and the process time. // If nothing special happened, real server will be delete after process time. type listItem struct { VirtualServer *utilipvs.VirtualServer RealServer *utilipvs.RealServer } // String return the unique real server name(with virtual server information) func (g *listItem) String() string {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 19 01:20:51 UTC 2023 - 6.6K bytes - Viewed (0) -
src/internal/bytealg/compare_386.s
TEXT ·Compare(SB),NOSPLIT,$0-28 MOVL a_base+0(FP), SI MOVL a_len+4(FP), BX MOVL b_base+12(FP), DI MOVL b_len+16(FP), DX LEAL ret+24(FP), AX JMP cmpbody<>(SB) TEXT runtime·cmpstring(SB),NOSPLIT,$0-20 MOVL a_base+0(FP), SI MOVL a_len+4(FP), BX MOVL b_base+8(FP), DI MOVL b_len+12(FP), DX LEAL ret+16(FP), AX JMP cmpbody<>(SB) // input: // SI = a // DI = b // BX = alen // DX = blen
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 23 21:22:58 UTC 2021 - 2.6K bytes - Viewed (0) -
test/cmplxdivide.go
package main import ( "fmt" "math" ) func calike(a, b complex128) bool { if imag(a) != imag(b) && !(math.IsNaN(imag(a)) && math.IsNaN(imag(b))) { return false } if real(a) != real(b) && !(math.IsNaN(real(a)) && math.IsNaN(real(b))) { return false } return true } func main() { bad := false for _, t := range tests { x := t.f / t.g if !calike(x, t.out) { if !bad {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 15 22:45:17 UTC 2017 - 868 bytes - Viewed (0) -
src/math/cmplx/isnan.go
// license that can be found in the LICENSE file. package cmplx import "math" // IsNaN reports whether either real(x) or imag(x) is NaN // and neither is an infinity. func IsNaN(x complex128) bool { switch { case math.IsInf(real(x), 0) || math.IsInf(imag(x), 0): return false case math.IsNaN(real(x)) || math.IsNaN(imag(x)): return true } return false } // NaN returns a complex “not-a-number” value.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 05 17:52:29 UTC 2022 - 598 bytes - Viewed (0) -
src/math/cmplx/sqrt.go
// Sqrt returns the square root of x. // The result r is chosen so that real(r) ≥ 0 and imag(r) has the same sign as imag(x). func Sqrt(x complex128) complex128 { if imag(x) == 0 { // Ensure that imag(r) has the same sign as imag(x) for imag(x) == signed zero. if real(x) == 0 { return complex(0, imag(x)) } if real(x) < 0 { return complex(0, math.Copysign(math.Sqrt(-real(x)), imag(x))) } return complex(math.Sqrt(real(x)), imag(x))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 01 03:16:37 UTC 2020 - 3K bytes - Viewed (0) -
internal/config/heal/help.go
}, config.HelpKV{ Key: Sleep, Description: `maximum sleep duration between objects to slow down heal operation` + defaultHelpPostfix(Sleep), Optional: true, Type: "duration", }, config.HelpKV{ Key: IOCount, Description: `maximum IO requests allowed between objects to slow down heal operation` + defaultHelpPostfix(IOCount), Optional: true, Type: "int", }, config.HelpKV{
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Sep 11 21:48:54 UTC 2023 - 1.8K bytes - Viewed (0) -
pkg/proxy/ipvs/util/testing/fake_test.go
} // Add real server to the virtual server for i := range rss { if err = fake.AddRealServer(vs, rss[i]); err != nil { t.Errorf("Fail to add real server, error: %v", err) } } // Delete a real server of the virtual server // Make sure any position of the list can be real deleted rssLen := len(rss) for i := range rss { // List all real servers of the virtual server
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 19 01:20:51 UTC 2023 - 5.6K bytes - Viewed (0) -
src/math/cmplx/sin.go
func Sin(x complex128) complex128 { switch re, im := real(x), imag(x); { case im == 0 && (math.IsInf(re, 0) || math.IsNaN(re)): return complex(math.NaN(), im) case math.IsInf(im, 0): switch { case re == 0: return x case math.IsInf(re, 0) || math.IsNaN(re): return complex(math.NaN(), im) } case re == 0 && math.IsNaN(im): return x } s, c := math.Sincos(real(x)) sh, ch := sinhcosh(imag(x))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 18 17:59:44 UTC 2022 - 4.8K bytes - Viewed (0)