Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for fpmap (0.04 sec)

  1. src/cmd/compile/internal/inline/inlheur/scoring.go

    	// If this is an inlinable function, use the precomputed
    	// call site table for it. If the function wasn't an inline
    	// candidate, collect a callsite table for it now.
    	var cstab CallSiteTab
    	if funcInlHeur, ok := fpmap[fn]; ok {
    		cstab = funcInlHeur.cstab
    	} else {
    		if len(scoreCallsCache.tab) != 0 {
    			panic("missing call to ScoreCallsCleanup")
    		}
    		if scoreCallsCache.tab == nil {
    			scoreCallsCache.tab = make(CallSiteTab)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:42:52 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  2. test/fixedbugs/issue52279.dir/lib.go

    package lib
    
    type FMap[K comparable, V comparable] map[K]V
    
    //go:noinline
    func (m FMap[K, V]) Flip() FMap[V, K] {
    	out := make(FMap[V, K])
    	return out
    }
    
    type MyType uint8
    
    const (
    	FIRST MyType = 0
    )
    
    var typeStrs = FMap[MyType, string]{
    	FIRST: "FIRST",
    }
    
    func (self MyType) String() string {
    	return typeStrs[self]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 19:15:31 UTC 2022
    - 321 bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/outbuf_windows.go

    		Exitf("resize output file failed: %v", err)
    	}
    
    	low, high := uint32(filesize), uint32(filesize>>32)
    	fmap, err := syscall.CreateFileMapping(syscall.Handle(out.f.Fd()), nil, syscall.PAGE_READWRITE, high, low, nil)
    	if err != nil {
    		return err
    	}
    	defer syscall.CloseHandle(fmap)
    
    	ptr, err := syscall.MapViewOfFile(fmap, syscall.FILE_MAP_READ|syscall.FILE_MAP_WRITE, 0, 0, uintptr(filesize))
    	if err != nil {
    		return err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 09 01:59:25 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  4. pkg/proxy/util/utils_test.go

    				otherIPFamily = v1.IPv4Protocol
    			}
    
    			ipMap := MapIPsByIPFamily(testcase.ipString)
    
    			var ipStr []string
    			for _, ip := range ipMap[ipFamily] {
    				ipStr = append(ipStr, ip.String())
    			}
    			if !reflect.DeepEqual(testcase.expectCorrect, ipStr) {
    				t.Errorf("Test %v failed: expected %v, got %v", testcase.desc, testcase.expectCorrect, ipMap[ipFamily])
    			}
    			ipStr = nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 11:57:43 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  5. src/mime/mediatype.go

    		}
    
    		pmap := params
    		if baseName, _, ok := strings.Cut(key, "*"); ok {
    			if continuation == nil {
    				continuation = make(map[string]map[string]string)
    			}
    			var ok bool
    			if pmap, ok = continuation[baseName]; !ok {
    				continuation[baseName] = make(map[string]string)
    				pmap = continuation[baseName]
    			}
    		}
    		if v, exists := pmap[key]; exists && v != value {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  6. pilot/pkg/networking/core/envoyfilter/monitoring.go

    }
    
    func RecordMetrics() {
    	if !features.EnableEnvoyFilterMetrics {
    		return
    	}
    	envoyFilterMutex.RLock()
    	defer envoyFilterMutex.RUnlock()
    	for name, pmap := range envoyFilterStatusMap {
    		for pt, applied := range pmap {
    			if applied {
    				envoyFilterStatus.With(nameType.Value(name)).With(patchType.Value(pt)).
    					With(resultType.Value(string(Applied))).Record(1)
    			} else {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  7. src/testing/quick/quick_test.go

    	reportError("fIntAlias", CheckEqual(fIntAlias, fIntAlias, nil), t)
    	reportError("fInt32", CheckEqual(fInt32, fInt32, nil), t)
    	reportError("fInt32Alias", CheckEqual(fInt32Alias, fInt32Alias, nil), t)
    	reportError("fMap", CheckEqual(fMap, fMap, nil), t)
    	reportError("fMapAlias", CheckEqual(fMapAlias, fMapAlias, nil), t)
    	reportError("fPtr", CheckEqual(fPtr, fPtr, nil), t)
    	reportError("fPtrAlias", CheckEqual(fPtrAlias, fPtrAlias, nil), t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 12:54:00 UTC 2019
    - 9K bytes
    - Viewed (0)
  8. pilot/pkg/serviceregistry/kube/controller/pod.go

    }
    
    func getPortMap(pod *v1.Pod) map[string]uint32 {
    	pmap := map[string]uint32{}
    	for _, c := range pod.Spec.Containers {
    		for _, port := range c.Ports {
    			if port.Name == "" || port.Protocol != v1.ProtocolTCP {
    				continue
    			}
    			// First port wins, per Kubernetes (https://github.com/kubernetes/kubernetes/issues/54213)
    			if _, f := pmap[port.Name]; !f {
    				pmap[port.Name] = uint32(port.ContainerPort)
    			}
    		}
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  9. cmd/site-replication-metrics.go

    		}
    	case st.Failed:
    		srs.Failed.addsize(st.TransferSize, st.Err)
    	case st.Pending:
    	}
    	sr.M[dID] = srs
    }
    
    func (sr *SRStats) get() map[string]SRMetric {
    	epMap := globalBucketTargetSys.healthStats()
    
    	sr.lock.RLock()
    	defer sr.lock.RUnlock()
    	m := make(map[string]SRMetric, len(sr.M))
    	for dID, v := range sr.M {
    		t := newXferStats()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Feb 06 06:00:45 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tfrt/ir/mlrt/tf_ops.td

        TF_Tensor:$tensor
      );
    }
    
    def TFMapFnOp : TensorflowMlrt_Op<"tf_map_fn", [AttrSizedOperandSegments, Pure]> {
      let summary = "The Parallel Map for tf_mlrt dialect";
      let description = [{
        The Pmap executes body function in parallel for all ranges up to $max_iterations.
    
        The pseudo code:
          for(int i = 0; i < $max_iterations; i++) {
            body_fn(MlrtFture($tensor_list_or_flow_in[i]),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 21:35:32 UTC 2024
    - 6.7K bytes
    - Viewed (0)
Back to top