- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,473 for boop (0.15 sec)
-
src/cmd/compile/internal/rangefunc/rewrite.go
// A forLoop describes a single range-over-func loop being processed. type forLoop struct { nfor *syntax.ForStmt // actual syntax stateVar *types2.Var // #state variable for this loop stateVarDecl *syntax.VarDecl depth int // outermost loop has depth 1, otherwise depth = depth(parent)+1 checkRet bool // add check for "return" after loop checkBreak bool // add check for "break" after loop
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:05:44 UTC 2024 - 41.6K bytes - Viewed (0) -
src/iter/pull_test.go
func panicSeq() Seq[int] { return func(yield func(int) bool) { panic("boom") } } func panicCleanupSeq() Seq[int] { return func(yield func(int) bool) { for { if !yield(55) { panic("boom") } } } } func TestPull2Panic(t *testing.T) { t.Run("next", func(t *testing.T) { next, stop := Pull2(panicSeq2()) if !panicsWith("boom", func() { next() }) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 19:09:28 UTC 2024 - 10.2K bytes - Viewed (0) -
doc/next/2-language.md
The "range" clause in a "for-range" loop now accepts iterator functions of the following types func(func() bool) func(func(K) bool) func(func(K, V) bool) as range expressions. Calls of the iterator argument function produce the iteration values for the "for-range" loop. For details see the [language spec](/ref/spec#For_statements).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 05 19:56:43 UTC 2024 - 757 bytes - Viewed (0) -
src/internal/bytealg/equal_loong64.s
#include "textflag.h" #define REGCTXT R29 // memequal(a, b unsafe.Pointer, size uintptr) bool TEXT runtime·memequal<ABIInternal>(SB),NOSPLIT|NOFRAME,$0-25 BEQ R4, R5, eq ADDV R4, R6, R7 PCALIGN $16 loop: BNE R4, R7, test MOVV $1, R4 RET test: MOVBU (R4), R9 ADDV $1, R4 MOVBU (R5), R10 ADDV $1, R5 BEQ R9, R10, loop MOVB R0, R4 RET eq: MOVV $1, R4 RET
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 15:04:25 UTC 2024 - 875 bytes - Viewed (0) -
src/runtime/race/testdata/rangefunc_test.go
) type Seq2[T1, T2 any] func(yield func(T1, T2) bool) // ofSliceIndex returns a Seq over the elements of s. It is equivalent // to range s, except that it splits s into two halves and iterates // in two separate goroutines. This is racy if yield is racy, and yield // will be racy if it contains an early exit. func ofSliceIndex[T any, S ~[]T](s S) Seq2[int, T] { return func(yield func(int, T) bool) { c := make(chan bool, 2)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 21:08:03 UTC 2024 - 1.8K bytes - Viewed (0) -
src/internal/goexperiment/flags.go
// For the baseline experimental configuration, see // objabi.experimentBaseline. // // If you change this struct definition, run "go generate". type Flags struct { FieldTrack bool PreemptibleLoops bool StaticLockRanking bool BoringCrypto bool // Regabi is split into several sub-experiments that can be // enabled individually. Not all combinations work. // The "regabi" GOEXPERIMENT is an alias for all "working"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 16:19:47 UTC 2024 - 4.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/analysis/resource_alias_analysis.h
// `UniqueResourceAllocation` trait. This can be utilized for while-loop // parallelization. bool IsUniqueResourceAllocationId(int64_t resource_id) const { return unique_resource_allocation_ids_.contains(resource_id); } private: // Maps resource value to unique ID and vice-versa. Returns true if the // mapping has changed. bool AddValueUniqueIDMapping(Value value, int64_t id) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 15 09:04:13 UTC 2024 - 7.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/analysis/resource_alias_analysis.cc
// Analyzes while loops to compute resourceIDs for the loop results. // // (1) The base case for the analysis is that if the loop body does not execute // at all, the resource IDs for each result is the same as the resource IDs // of the corresponding input. // (2) If the loop does execute one or more times, then we need to account for // data flow through the body of the while loop. If result #r is the same
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 15 09:04:13 UTC 2024 - 28.2K bytes - Viewed (0) -
src/runtime/lock_sema.go
} } } func notetsleep(n *note, ns int64) bool { gp := getg() if gp != gp.m.g0 { throw("notetsleep not on g0") } semacreate(gp.m) return notetsleep_internal(n, ns, nil, 0) } // same as runtime·notetsleep, but called on user g (not g0) // calls only nosplit functions between entersyscallblock/exitsyscall. func notetsleepg(n *note, ns int64) bool { gp := getg() if gp == gp.m.g0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:57:37 UTC 2024 - 6.8K bytes - Viewed (0) -
pkg/kubelet/volumemanager/volume_manager.go
type PodStateProvider interface { ShouldPodContainersBeTerminating(k8stypes.UID) bool ShouldPodRuntimeBeRemoved(k8stypes.UID) bool } // PodManager is the subset of methods the manager needs to observe the actual state of the kubelet. // See pkg/k8s.io/kubernetes/pkg/kubelet/pod.Manager for method godoc. type PodManager interface { GetPodByUID(k8stypes.UID) (*v1.Pod, bool) GetPods() []*v1.Pod }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 21.5K bytes - Viewed (0)