Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,602 for ncalls (0.38 sec)

  1. test/range4.go

    			}
    		}
    	}
    }
    
    func testcalls1() {
    	ncalls := 0
    	for k, v := range iter3(1, 2, 3) {
    		_, _ = k, v
    		ncalls++
    	}
    	if ncalls != 3 {
    		println("wrong number of calls:", ncalls, "!= 3")
    		panic("fail")
    	}
    }
    
    func main() {
    	testfunc0()
    	testfunc1()
    	testfunc2()
    	testfunc3()
    	testfunc4()
    	testfunc5()
    	testfunc6()
    	testfunc7()
    	testfunc8()
    	testfunc9()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 08 16:00:53 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  2. test/range.go

    // exactly once per iteration.
    
    var ncalls = 0
    
    func getvar(p *int) *int {
    	ncalls++
    	return p
    }
    
    func testcalls() {
    	var i, v int
    	si := 0
    	sv := 0
    	for *getvar(&i), *getvar(&v) = range [2]int{1, 2} {
    		si += i
    		sv += v
    	}
    	if ncalls != 4 {
    		println("wrong number of calls:", ncalls, "!= 4")
    		panic("fail")
    	}
    	if si != 1 || sv != 3 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 05:50:54 UTC 2017
    - 8.1K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/httpresponse/httpresponse.go

    		if !push {
    			return true
    		}
    		call := n.(*ast.CallExpr)
    		if !isHTTPFuncOrMethodOnClient(pass.TypesInfo, call) {
    			return true // the function call is not related to this check.
    		}
    
    		// Find the innermost containing block, and get the list
    		// of statements starting with the one containing call.
    		stmts, ncalls := restOfBlock(stack)
    		if len(stmts) < 2 {
    			// The call to the http function is the last statement of the block.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 5K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/queueset_test.go

    	finalSeats uint64
    }
    
    func newUniformClient(hash uint64, nThreads, nCalls int, execDuration, thinkDuration time.Duration) uniformClient {
    	return uniformClient{
    		hash:          hash,
    		nThreads:      nThreads,
    		nCalls:        nCalls,
    		execDuration:  execDuration,
    		thinkDuration: thinkDuration,
    		initialSeats:  1,
    		finalSeats:    1,
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 26 12:55:23 UTC 2023
    - 58.4K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/inline/inlheur/testdata/props/calls.go

    		callee(len(s))
    		break
    	}
    }
    
    // calls.go T_calls_on_panic_paths 67 0 1
    // <endpropsdump>
    // {"Flags":0,"ParamFlags":[0,0],"ResultFlags":null}
    // callsite: calls.go:69:9|0 flagstr "CallSiteOnPanicPath" flagval 2 score 42 mask 1 maskstr "panicPathAdj"
    // callsite: calls.go:73:9|1 flagstr "CallSiteOnPanicPath" flagval 2 score 42 mask 1 maskstr "panicPathAdj"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 20:15:25 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  6. docs/features/calls.md

    Calls are executed in one of two ways:
    
     * **Synchronous:** your thread blocks until the response is readable.
     * **Asynchronous:** you enqueue the request on any thread, and get [called back](https://square.github.io/okhttp/4.x/okhttp/okhttp3/-callback/) on another thread when the response is readable.
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/stablehlo/tests/legalize-skip-partitioned-calls.mlir

    // RUN: odml-to-stablehlo-opt %s --tf-stablehlo=skip-partitioned-calls=true | FileCheck %s --check-prefix=CHECK-SKIP
    // RUN: odml-to-stablehlo-opt %s --tf-stablehlo=skip-partitioned-calls=false | FileCheck %s --check-prefix=CHECK-NOSKIP
    
    module {
      func.func @partitioned_call(%arg0: tensor<1x2x2x3xf32>) -> (tensor<1x2x2x3xf32>) {
        %0 = "tf.StatefulPartitionedCall"(%arg0) <{
          config = "", config_proto = "", executor_type = "", f = @some_func
        }> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 08 20:05:12 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/dwarfgen/dwinl.go

    		CallPos:   callPos,
    		AbsFunSym: absFnSym,
    		Root:      parCallIdx == -1,
    	}
    	dwcalls.Calls = append(dwcalls.Calls, ic)
    	callIdx = len(dwcalls.Calls) - 1
    	imap[inlIdx] = callIdx
    
    	if parCallIdx != -1 {
    		// Add this inline to parent's child list
    		dwcalls.Calls[parCallIdx].Children = append(dwcalls.Calls[parCallIdx].Children, callIdx)
    	}
    
    	return callIdx
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:45:07 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  9. pkg/volume/flexvolume/driver-call.go

    		Command: command,
    		Timeout: timeout,
    		plugin:  plugin,
    		args:    []string{command},
    	}
    }
    
    // Append appends arg into driver call argument list
    func (dc *DriverCall) Append(arg string) {
    	dc.args = append(dc.args, arg)
    }
    
    // AppendSpec appends volume spec to driver call argument list
    func (dc *DriverCall) AppendSpec(spec *volume.Spec, host volume.VolumeHost, extraOptions map[string]string) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 25 02:39:55 UTC 2021
    - 7.5K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/call.go

    	} else {
    		if ddd {
    			// standard_func(a, b, c...)
    			//check.errorf(call.Ellipsis, "cannot use ... in call to non-variadic %s", call.Fun)
    			check.errorf(call, NonVariadicDotDotDot, "cannot use ... in call to non-variadic %s", call.Fun)
    			return
    		}
    		// standard_func(a, b, c)
    	}
    
    	// check argument count
    	if nargs != npars {
    		var at poser = call
    		qualifier := "not enough"
    		if nargs > npars {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31.5K bytes
    - Viewed (0)
Back to top