- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 155 for pcap (0.06 sec)
-
test/slice3.go
notOK() println(desc, "=", base, len, cap, "want panic") return } if cap != 0 && base != uintptr(xbase) || base >= 10 || len != uintptr(xlen) || cap != uintptr(xcap) { notOK() if cap == 0 { println(desc, "=", base, len, cap, "want", "0-9", xlen, xcap) } else { println(desc, "=", base, len, cap, "want", xbase, xlen, xcap) } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 2.9K bytes - Viewed (0) -
src/regexp/backtrack.go
b.visited = b.visited[:visitedSize] clear(b.visited) // set to 0 } if cap(b.cap) < ncap { b.cap = make([]int, ncap) } else { b.cap = b.cap[:ncap] } for i := range b.cap { b.cap[i] = -1 } if cap(b.matchcap) < ncap { b.matchcap = make([]int, ncap) } else { b.matchcap = b.matchcap[:ncap] } for i := range b.matchcap { b.matchcap[i] = -1 } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 14 17:25:39 UTC 2023 - 8.8K bytes - Viewed (0) -
src/runtime/os_illumos.go
} if cents := int32(getcpucap()); cents > 0 { // Convert from a percentage of CPUs to a number of CPUs, // rounding up to make use of a fractional CPU // e.g., 336% becomes 4 CPUs ncap := (cents + 99) / 100 if ncap < n { return ncap } } return n } //go:nosplit func getrctl(controlname, oldbuf, newbuf unsafe.Pointer, flags uint32) uintptr {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 28 18:06:12 UTC 2019 - 3.9K bytes - Viewed (0) -
internal/bpool/bpool.go
} return &BytePoolCap{ c: make(chan []byte, maxSize), w: width, wcap: capwidth, } } // Populate - populates and pre-warms the byte pool, this function is non-blocking. func (bp *BytePoolCap) Populate() { for _, buf := range reedsolomon.AllocAligned(cap(bp.c), bp.wcap) { bp.Put(buf[:bp.w]) } } // Get gets a []byte from the BytePool, or creates a new one if none are
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Apr 19 16:44:59 UTC 2024 - 2.6K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/universe.go
okforcap [types.NTYPE]bool okforlen [types.NTYPE]bool okforarith [types.NTYPE]bool ) var builtinFuncs = [...]struct { name string op ir.Op }{ {"append", ir.OAPPEND}, {"cap", ir.OCAP}, {"clear", ir.OCLEAR}, {"close", ir.OCLOSE}, {"complex", ir.OCOMPLEX}, {"copy", ir.OCOPY}, {"delete", ir.ODELETE}, {"imag", ir.OIMAG}, {"len", ir.OLEN}, {"make", ir.OMAKE}, {"max", ir.OMAX},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 05 15:20:28 UTC 2023 - 4.7K bytes - Viewed (0) -
src/cmd/compile/internal/types2/universe.go
_Assert _Trace ) var predeclaredFuncs = [...]struct { name string nargs int variadic bool kind exprKind }{ _Append: {"append", 1, true, expression}, _Cap: {"cap", 1, false, expression}, _Clear: {"clear", 1, false, statement}, _Close: {"close", 1, false, statement}, _Complex: {"complex", 2, false, expression}, _Copy: {"copy", 2, false, statement},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 9.1K bytes - Viewed (0) -
src/go/types/universe.go
_Assert _Trace ) var predeclaredFuncs = [...]struct { name string nargs int variadic bool kind exprKind }{ _Append: {"append", 1, true, expression}, _Cap: {"cap", 1, false, expression}, _Clear: {"clear", 1, false, statement}, _Close: {"close", 1, false, statement}, _Complex: {"complex", 2, false, expression}, _Copy: {"copy", 2, false, statement},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 9.3K bytes - Viewed (0) -
test/makeslice.go
type T []int shouldPanic("len out of range", func() { _ = make(T, int(n)) }) shouldPanic("cap out of range", func() { _ = make(T, 0, int(n)) }) shouldPanic("len out of range", func() { _ = make(T, uint(n)) }) shouldPanic("cap out of range", func() { _ = make(T, 0, uint(n)) }) shouldPanic("len out of range", func() { _ = make(T, int64(n)) }) shouldPanic("cap out of range", func() { _ = make(T, 0, int64(n)) })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 07 17:50:24 UTC 2020 - 5.5K bytes - Viewed (0) -
test/fixedbugs/issue4085b.go
shouldPanic("len out of range", func() { _ = make(T, int(n2)) }) shouldPanic("cap out of range", func() { _ = make(T, 0, int(n2)) }) testMakeInAppend(int(n2)) // Test elem.size*cap overflow n2 = 1<<63 - 1 shouldPanic("len out of range", func() { _ = make(T, int(n2)) }) shouldPanic("cap out of range", func() { _ = make(T, 0, int(n2)) }) testMakeInAppend(int(n2)) var x uint64 = 1<<64 - 1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 17 17:18:17 UTC 2019 - 2.9K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/allocators.go
Len: n, Cap: cap(b) * int(scale), } return *(*[]*Block)(unsafe.Pointer(&s)) } func (c *Cache) freeBlockSlice(s []*Block) { var base *Value var derived *Block scale := unsafe.Sizeof(base) / unsafe.Sizeof(derived) b := unsafeheader.Slice{ Data: unsafe.Pointer(&s[0]), Len: int((uintptr(len(s)) + scale - 1) / scale), Cap: int((uintptr(cap(s)) + scale - 1) / scale), }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 15 23:00:54 UTC 2023 - 7.4K bytes - Viewed (0)