- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 22 for CNT (0.02 sec)
-
src/internal/zstd/bits.go
func (br *bitReader) moreBits() error { for br.cnt < 16 { if br.off >= uint32(len(br.data)) { return br.r.makeEOFError(int(br.off)) } c := br.data[br.off] br.off++ br.bits |= uint32(c) << br.cnt br.cnt += 8 } return nil } // val is called to fetch a value of b bits. func (br *bitReader) val(b uint8) uint32 { r := br.bits & ((1 << b) - 1) br.bits >>= b br.cnt -= uint32(b) return r }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 18 20:34:13 UTC 2023 - 3.3K bytes - Viewed (0) -
src/cmd/compile/internal/s390x/ggen.go
p = pp.Append(p, s390x.ACLEAR, obj.TYPE_CONST, 0, 256, obj.TYPE_MEM, reg, off) pl := p p = pp.Append(p, s390x.AADD, obj.TYPE_CONST, 0, 256, obj.TYPE_REG, reg, 0) p = pp.Append(p, s390x.ABRCTG, obj.TYPE_REG, ireg, 0, obj.TYPE_BRANCH, 0, 0) p.To.SetTarget(pl) cnt = cnt % 256 } // Generate remaining clear instructions without a loop. for cnt > 0 { n := cnt
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 19 15:59:22 UTC 2022 - 2.5K bytes - Viewed (0) -
src/slices/iter_test.go
var s []int for i := range size { s = append(s, i) } ei, ev := 0, 0 cnt := 0 for i, v := range All(s) { if i != ei || v != ev { t.Errorf("at iteration %d got %d, %d want %d, %d", cnt, i, v, ei, ev) } ei++ ev++ cnt++ } if cnt != size { t.Errorf("read %d values expected %d", cnt, size) } } } func TestBackward(t *testing.T) { for size := 0; size < 10; size++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 10 17:28:50 UTC 2024 - 5.7K bytes - Viewed (0) -
src/internal/zstd/xxhash.go
xh.v[3] = -xh.v[3] for i := range xh.buf { xh.buf[i] = 0 } xh.cnt = 0 } // update adds a buffer to the has. func (xh *xxhash64) update(b []byte) { xh.len += uint64(len(b)) if xh.cnt+len(b) < len(xh.buf) { copy(xh.buf[xh.cnt:], b) xh.cnt += len(b) return } if xh.cnt > 0 { n := copy(xh.buf[xh.cnt:], b) b = b[n:] xh.v[0] = xh.round(xh.v[0], binary.LittleEndian.Uint64(xh.buf[:]))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 18 20:34:13 UTC 2023 - 3.3K bytes - Viewed (0) -
src/cmd/compile/internal/riscv64/ggen.go
"cmd/internal/obj" "cmd/internal/obj/riscv" ) func zeroRange(pp *objw.Progs, p *obj.Prog, off, cnt int64, _ *uint32) *obj.Prog { if cnt == 0 { return p } // Adjust the frame to account for LR. off += base.Ctxt.Arch.FixedFrameSize if cnt < int64(4*types.PtrSize) { for i := int64(0); i < cnt; i += int64(types.PtrSize) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 19 15:59:22 UTC 2022 - 1.8K bytes - Viewed (0) -
test/typeparam/issue47925d.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 687 bytes - Viewed (0) -
src/internal/zstd/literals.go
return nil, err } outbuf[out4] = byte(t4 >> 8) out4++ rbr4.cnt -= uint32(t4 & 0xff) } outbuf[out1] = byte(t1 >> 8) out1++ rbr1.cnt -= uint32(t1 & 0xff) outbuf[out2] = byte(t2 >> 8) out2++ rbr2.cnt -= uint32(t2 & 0xff) outbuf[out3] = byte(t3 >> 8) out3++ rbr3.cnt -= uint32(t3 & 0xff) } return outbuf, nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 14:30:10 UTC 2023 - 8.8K bytes - Viewed (0) -
src/maps/iter_test.go
m := make(map[int]int) for i := range size { m[i] = i } cnt := 0 for i, v := range All(m) { v1, ok := m[i] if !ok || v != v1 { t.Errorf("at iteration %d got %d, %d want %d, %d", cnt, i, v, i, v1) } cnt++ } if cnt != size { t.Errorf("read %d values expected %d", cnt, size) } } } func TestKeys(t *testing.T) { for size := 0; size < 10; size++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:44:19 UTC 2024 - 1.9K bytes - Viewed (0) -
cmd/consolelogger.go
if p != nil { lg, ok := p.(log.Info) if ok && lg.SendLog(node, logKind) { lastN[cnt%last] = lg cnt++ } } }) sys.RUnlock() // send last n console log messages in order filtered by node if cnt > 0 { for i := 0; i < last; i++ { entry := lastN[(cnt+i)%last] if (entry == log.Info{}) { continue } select { case subCh <- entry:
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 5.5K bytes - Viewed (0) -
internal/logger/targets.go
cnt := make(map[string]int, len(sys)+len(audit)) // Add system and audit. for _, t := range sys { key := strings.ToLower(t.Type().String()) n := cnt[key] cnt[key]++ key = fmt.Sprintf("sys_%s_%d", key, n) res[key] = t.Stats() } for _, t := range audit { key := strings.ToLower(t.Type().String()) n := cnt[key] cnt[key]++
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 03 15:44:50 UTC 2024 - 6K bytes - Viewed (0)