- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 6,136 for i$ (0.04 sec)
-
src/internal/weak/pointer_test.go
wt := make([]weak.Pointer[T], 10) for i := range bt { bt[i] = new(T) wt[i] = weak.Make(bt[i]) } for i := range bt { st := wt[i].Strong() if st != bt[i] { t.Fatalf("weak pointer is not the same as strong pointer: %p vs. %p", st, bt[i]) } if wp := weak.Make(st); wp != wt[i] { t.Fatalf("new weak pointer not equal to existing weak pointer: %v vs. %v", wp, wt[i]) } if i == 0 { continue }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 21:25:11 UTC 2024 - 3.1K bytes - Viewed (0) -
src/maps/maps_test.go
} for i := 0; i < 8; i++ { if m2[i] != m[i] { t.Errorf("m2[%d] = %d, want %d", i, m2[i], m[i]) } } } func TestCloneWithMapAssign(t *testing.T) { var m = make(map[int]int) const N = 25 for i := 0; i < N; i++ { m[i] = i } m2 := Clone(m) if len(m2) != N { t.Errorf("len2(m2) = %d, want %d", len(m2), N) } for i := 0; i < N; i++ { if m2[i] != m[i] {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 17:05:56 UTC 2023 - 5.6K bytes - Viewed (0) -
src/regexp/syntax/prog.go
} // skipNop follows any no-op or capturing instructions. func (p *Prog) skipNop(pc uint32) *Inst { i := &p.Inst[pc] for i.Op == InstNop || i.Op == InstCapture { i = &p.Inst[i.Out] } return i } // op returns i.Op but merges all the Rune special cases into InstRune func (i *Inst) op() InstOp { op := i.Op switch op { case InstRune1, InstRuneAny, InstRuneAnyNotNL: op = InstRune } return op
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 20:50:01 UTC 2024 - 7.7K bytes - Viewed (0) -
src/fmt/format.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:31:55 UTC 2024 - 13.8K bytes - Viewed (0) -
src/runtime/memmove_test.go
} } for i := y; i < y+n; i++ { if dst[i] != byte(128+((i-y+x)&127)) { t.Fatalf("copied dst[%d] = %d", i, dst[i]) } dst[i] = byte(i & 127) // reset dst } for i := y + n; i < size; i++ { if dst[i] != byte(i&127) { t.Fatalf("suffix dst[%d] = %d", i, dst[i]) } } } } } } func TestMemmoveAlias(t *testing.T) { if *flagQuick { t.Skip("-quick")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 29 16:41:12 UTC 2024 - 21.2K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/bench_test.go
c := false if a > 0 { if b < 0 { d = d + 1 } c = true } return c } func BenchmarkPhioptPass(b *testing.B) { for i := 0; i < b.N; i++ { a := rand.Perm(i/10 + 10) for i := 1; i < len(a)/2; i++ { fn(a[i]-a[i-1], a[i+len(a)/2-2]-a[i+len(a)/2-1]) } } } type Point struct { X, Y int } //go:noinline func sign(p1, p2, p3 Point) bool {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 21 02:36:06 UTC 2023 - 835 bytes - Viewed (0) -
cmd/storage-datatypes_gen_test.go
v := BaseOptions{} b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { v.MarshalMsg(nil) } } func BenchmarkAppendMsgBaseOptions(b *testing.B) { v := BaseOptions{} bts := make([]byte, 0, v.Msgsize()) bts, _ = v.MarshalMsg(bts[0:0]) b.SetBytes(int64(len(bts))) b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { bts, _ = v.MarshalMsg(bts[0:0]) } }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:51:27 UTC 2024 - 62.6K bytes - Viewed (0) -
pkg/kube/krt/index.go
// Index maintains a simple index over an informer type Index[I any, K comparable] struct { mu sync.RWMutex objects map[K]sets.Set[Key[I]] c Collection[I] extract func(o I) []K } // Lookup finds all objects matching a given key func (i *Index[I, K]) Lookup(k K) []I { i.mu.RLock() defer i.mu.RUnlock() var res []I for obj := range i.objects[k] { item := i.c.GetKey(obj) if item == nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 14 04:53:45 UTC 2024 - 2.8K bytes - Viewed (0) -
src/index/suffixarray/sais2.go
// In this backward scan, c0 == text[i] and c1 == text[i+1]. // By scanning backward, we can keep track of whether the current // position is type-S or type-L according to the usual definition: // // - position len(text) is type S with text[len(text)] == -1 (the sentinel) // - position i is type S if text[i] < text[i+1], or if text[i] == text[i+1] && i+1 is type S.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 18 23:57:18 UTC 2024 - 52.3K bytes - Viewed (0) -
tensorflow/compiler/aot/tests/tfcompile_test.cc
} EXPECT_EQ(matmul_const.arg0_data(), matmul.arg_data(0)); for (int i = 0; i < 6; ++i) { EXPECT_EQ(matmul_const.arg1(i / 2, i % 2), args[i + 6]); EXPECT_EQ(matmul_const.arg1_data()[i], args[i + 6]); } EXPECT_EQ(matmul_const.arg1_data(), matmul.arg_data(1)); for (int i = 0; i < 4; ++i) { EXPECT_EQ(matmul_const.result0(i / 2, i % 2), results[i]);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 26.4K bytes - Viewed (0)