Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for CNT (0.06 sec)

  1. src/runtime/pinner_test.go

    	}
    	for i := 0; i < N; i++ {
    		pinner.Pin(p)
    	}
    	if !runtime.IsPinned(addr) {
    		t.Fatal("not marked as pinned")
    	}
    	if cnt := runtime.GetPinCounter(addr); cnt == nil || *cnt != N-1 {
    		t.Fatalf("pin counter incorrect: %d", *cnt)
    	}
    	pinner.Unpin()
    	if runtime.IsPinned(addr) {
    		t.Fatal("still marked as pinned")
    	}
    	if runtime.GetPinCounter(addr) != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 18:36:12 UTC 2023
    - 11K bytes
    - Viewed (0)
  2. src/crypto/aes/gcm_s390x.go

    		copy(srcbuf[:], src[:siz])
    		cryptBlocksGCM(g.block.function, g.block.key, dst[:siz], srcbuf[:siz], ctrbuf[:], cnt)
    		src = src[siz:]
    		dst = dst[siz:]
    	}
    	if len(src) > 0 {
    		var x [16]byte
    		g.block.Encrypt(x[:], cnt[:])
    		for i := range src {
    			dst[i] = src[i] ^ x[i]
    		}
    		cnt.inc()
    	}
    }
    
    // deriveCounter computes the initial GCM counter state from the given nonce.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/arch/arm64/arm64asm/inst.go

    	r   Reg
    	a   Arrangement
    	cnt uint8
    }
    
    func (RegisterWithArrangement) isArg() {}
    
    func (r RegisterWithArrangement) String() string {
    	result := r.r.String()
    	result += r.a.String()
    	if r.cnt > 0 {
    		result = "{" + result
    		if r.cnt == 2 {
    			r1 := V0 + Reg((uint16(r.r)-uint16(V0)+1)&31)
    			result += ", " + r1.String() + r.a.String()
    		} else if r.cnt > 2 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 21.5K bytes
    - Viewed (0)
  4. pkg/controller/job/indexed_job_utils_test.go

    	cases := map[string]struct {
    		cnt              int
    		completions      int
    		activePods       []indexPhase
    		succeededIndexes []interval
    		failedIndexes    *orderedIntervals
    		want             []int
    	}{
    		"cnt greater than completions": {
    			cnt:         5,
    			completions: 3,
    			want:        []int{0, 1, 2},
    		},
    		"cnt less than completions": {
    			cnt:         2,
    			completions: 5,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/plugins/podtopologyspread/scoring.go

    		if tpVal, ok := node.Labels[c.TopologyKey]; ok {
    			var cnt int64
    			if c.TopologyKey == v1.LabelHostname {
    				cnt = int64(countPodsMatchSelector(nodeInfo.Pods, c.Selector, pod.Namespace))
    			} else {
    				pair := topologyPair{key: c.TopologyKey, value: tpVal}
    				cnt = *s.TopologyPairToPodCounts[pair]
    			}
    			score += scoreForCount(cnt, c.MaxSkew, s.TopologyNormalizingWeight[i])
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  6. src/runtime/hash_test.go

    		for i := 0; i < 256; i++ {
    			var k key
    			cnt := 0
    			if i&1 != 0 {
    				k.a = "foo"
    				cnt++
    			}
    			if i&2 != 0 {
    				k.b = "foo"
    				cnt++
    			}
    			if i&4 != 0 {
    				k.c = "foo"
    				cnt++
    			}
    			if i&8 != 0 {
    				k.d = "foo"
    				cnt++
    			}
    			if i&16 != 0 {
    				k.e = "foo"
    				cnt++
    			}
    			if i&32 != 0 {
    				k.f = "foo"
    				cnt++
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 17:50:18 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  7. src/syscall/syscall_darwin.go

    	if err != nil {
    		Close(fd2)
    		return 0, err
    	}
    	defer closedir(d)
    
    	var cnt int64
    	for {
    		var entry Dirent
    		var entryp *Dirent
    		e := readdir_r(d, &entry, &entryp)
    		if e != 0 {
    			return n, errnoErr(e)
    		}
    		if entryp == nil {
    			break
    		}
    		if skip > 0 {
    			skip--
    			cnt++
    			continue
    		}
    		reclen := int(entry.Reclen)
    		if reclen > len(buf) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:50 UTC 2024
    - 11K bytes
    - Viewed (0)
  8. src/runtime/mfinal.go

    					finptrmask[i] = finalizer1[i%len(finalizer1)]
    				}
    			}
    		}
    		block := finc
    		finc = block.next
    		block.next = finq
    		finq = block
    	}
    	f := &finq.fin[finq.cnt]
    	atomic.Xadd(&finq.cnt, +1) // Sync with markroots
    	f.fn = fn
    	f.nret = nret
    	f.fint = fint
    	f.ot = ot
    	f.arg = p
    	unlock(&finlock)
    	fingStatus.Or(fingWake)
    }
    
    //go:nowritebarrier
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 01:56:56 UTC 2024
    - 19K bytes
    - Viewed (0)
  9. src/test/java/jcifs/tests/EnumTest.java

                    }
    
                    int cnt = 0;
                    try ( CloseableIterator<SmbResource> chld = f.children() ) {
                        while ( chld.hasNext() ) {
                            try ( SmbResource next = chld.next() ) {
                                cnt++;
                            }
                        }
                    }
    
                    assertEquals(numFiles, cnt);
                }
                finally {
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Thu Jan 05 13:09:03 UTC 2023
    - 25.5K bytes
    - Viewed (0)
  10. src/archive/tar/reader_test.go

    					i, s1, s2, err, v.err)
    			}
    			if cnt != v.cnt {
    				t.Errorf("test %d, NewReader(%s) with %s discard: got %d headers, want %d headers",
    					i, s1, s2, cnt, v.cnt)
    			}
    		}
    	}
    }
    
    // TestReadHeaderOnly tests that Reader does not attempt to read special
    // header-only files.
    func TestReadHeaderOnly(t *testing.T) {
    	f, err := os.Open("testdata/hdr-only.tar")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 21 21:14:38 UTC 2022
    - 47.1K bytes
    - Viewed (0)
Back to top