Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 49 for rp (0.16 sec)

  1. src/cmd/go/internal/modindex/read.go

    // Import is the equivalent of build.Import given the information in Module.
    func (rp *IndexPackage) Import(bctxt build.Context, mode build.ImportMode) (p *build.Package, err error) {
    	defer unprotect(protect(), &err)
    
    	ctxt := (*Context)(&bctxt)
    
    	p = &build.Package{}
    
    	p.ImportPath = "."
    	p.Dir = filepath.Join(rp.modroot, rp.dir)
    
    	var pkgerr error
    	switch ctxt.Compiler {
    	case "gccgo", "gc":
    	default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  2. cmd/perf-tests.go

    	cli, err := globalSiteReplicationSys.getAdminClient(ctx, deploymentID)
    	if err != nil {
    		result.Error = err.Error()
    		return
    	}
    	rp := cli.GetEndpointURL()
    	reqURL := &url.URL{
    		Scheme: rp.Scheme,
    		Host:   rp.Host,
    		Path:   reqPath,
    	}
    	result.Endpoint = rp.String()
    	req, err := http.NewRequestWithContext(ctx, http.MethodPost, reqURL.String(), reader)
    	if err != nil {
    		result.Error = err.Error()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  3. src/crypto/internal/boring/build-goboring.sh

    typedef unsigned int u128 __attribute__((mode(TI)));
    
    static u128 div(u128 x, u128 y, u128 *rp) {
    	int n = 0;
    	while((y>>(128-1)) != 1 && y < x) {
    		y<<=1;
    		n++;
    	}
    	u128 q = 0;
    	for(;; n--, y>>=1, q<<=1) {
    		if(x>=y) {
    			x -= y;
    			q |= 1;
    		}
    		if(n == 0)
    			break;
    	}
    	if(rp)
    		*rp = x;
    	return q;
    }
    
    u128 __umodti3(u128 x, u128 y) {
    	u128 r;
    	div(x, y, &r);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 26 22:52:27 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  4. src/runtime/print.go

    // The compiler knows that a print of a value of this type
    // should use printhex instead of printuint (decimal).
    type hex uint64
    
    func bytes(s string) (ret []byte) {
    	rp := (*slice)(unsafe.Pointer(&ret))
    	sp := stringStructOf(&s)
    	rp.array = sp.str
    	rp.len = sp.len
    	rp.cap = sp.len
    	return
    }
    
    var (
    	// printBacklog is a circular buffer of messages written with the builtin
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 20 03:27:26 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/apis/example/fuzzer/fuzzer.go

    			statuses := []example.PodPhase{"Pending", "Running", "Succeeded", "Failed", "Unknown"}
    			*j = statuses[c.Rand.Intn(len(statuses))]
    		},
    		func(rp *example.RestartPolicy, c fuzz.Continue) {
    			policies := []example.RestartPolicy{"Always", "Never", "OnFailure"}
    			*rp = policies[c.Rand.Intn(len(policies))]
    		},
    	}
    }
    
    // Funcs returns the fuzzer functions for the example api group.
    var Funcs = fuzzer.MergeFuzzerFuncs(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 01 19:31:12 UTC 2018
    - 3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/apis/testapigroup/fuzzer/fuzzer.go

    			statuses := []testapigroup.CarpPhase{"Pending", "Running", "Succeeded", "Failed", "Unknown"}
    			*j = statuses[c.Rand.Intn(len(statuses))]
    		},
    		func(rp *testapigroup.RestartPolicy, c fuzz.Continue) {
    			policies := []testapigroup.RestartPolicy{"Always", "Never", "OnFailure"}
    			*rp = policies[c.Rand.Intn(len(policies))]
    		},
    	}
    }
    
    // Funcs returns the fuzzer functions for the testapigroup.
    var Funcs = fuzzer.MergeFuzzerFuncs(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 01 19:31:12 UTC 2018
    - 3.1K bytes
    - Viewed (0)
  7. src/encoding/gob/timing_test.go

    	rt := ra.Type()
    	b.ResetTimer()
    
    	b.ReportAllocs()
    	b.RunParallel(func(pb *testing.PB) {
    		// TODO(#19025): Move per-thread allocation before ResetTimer.
    		rp := reflect.New(rt)
    		rp.Elem().Set(reflect.MakeSlice(rt, ra.Len(), ra.Cap()))
    		p := rp.Interface()
    
    		bbuf := benchmarkBuf{data: buf.Bytes()}
    
    		for pb.Next() {
    			bbuf.reset()
    			dec := NewDecoder(&bbuf)
    			err := dec.Decode(p)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 04 07:16:59 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  8. src/runtime/crash_unix_test.go

    	cmd.Stderr = &outbuf
    
    	rp, wp, err := os.Pipe()
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer rp.Close()
    
    	cmd.ExtraFiles = []*os.File{wp}
    
    	if err := cmd.Start(); err != nil {
    		wp.Close()
    		t.Fatalf("starting program: %v", err)
    	}
    
    	if err := wp.Close(); err != nil {
    		t.Logf("closing write pipe: %v", err)
    	}
    	if _, err := rp.Read(make([]byte, 1)); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 20:11:47 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  9. tools/docker-copy.sh

      fi
    
      # For arch specific, will put an arch named sub dir like
      #   arm64/
      #   amd64/
      dst="${DOCKER_WORKING_DIR}"
      if [[ "${arch}" != "" ]]; then
        dst+="/${arch}/"
      fi
      mkdir -p "${dst}"
      cp -rp "${FILE}" "${dst}"
    
      # Based on type, explicit set permissions. These may differ on host machine due to umask, so always override.
      out="${dst}/$(basename "${FILE}")"
      if [[ -d "${out}" ]]; then
        chmod -R a+r "${out}"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Aug 04 03:06:26 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  10. src/net/http/httputil/reverseproxy_test.go

    		mu.Lock()
    		defer mu.Unlock()
    		log = append(log, event)
    	}
    	rp := NewSingleHostReverseProxy(backendURL)
    	const size = 1234
    	rp.BufferPool = bufferPool{
    		get: func() []byte {
    			addLog("getBuf")
    			return make([]byte, size)
    		},
    		put: func(p []byte) {
    			addLog("putBuf-" + strconv.Itoa(len(p)))
    		},
    	}
    	frontend := httptest.NewServer(rp)
    	defer frontend.Close()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 54.6K bytes
    - Viewed (0)
Back to top