Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for isfat (0.04 sec)

  1. src/cmd/compile/internal/walk/walk.go

    		return typecheck.LookupRuntime(name, t.Elem(), t.Elem())
    	}
    	base.Fatalf("chanfn %d", n)
    	return nil
    }
    
    func mapfn(name string, t *types.Type, isfat bool) ir.Node {
    	if !t.IsMap() {
    		base.Fatalf("mapfn %v", t)
    	}
    	if mapfast(t) == mapslow || isfat {
    		return typecheck.LookupRuntime(name, t.Key(), t.Elem(), t.Key(), t.Elem())
    	}
    	return typecheck.LookupRuntime(name, t.Key(), t.Elem(), t.Elem())
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 20:56:00 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/liveness/plive.go

    		}
    	}
    
    	return x
    }
    
    // isfat reports whether a variable of type t needs multiple assignments to initialize.
    // For example:
    //
    //	type T struct { x, y int }
    //	x := T{x: 0, y: 1}
    //
    // Then we need:
    //
    //	var t T
    //	t.x = 0
    //	t.y = 1
    //
    // to fully initialize t.
    func isfat(t *types.Type) bool {
    	if t != nil {
    		switch t.Kind() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 15:22:22 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  3. src/net/interface_windows.go

    				}
    				switch sa := sa.(type) {
    				case *syscall.SockaddrInet4:
    					ifat = append(ifat, &IPAddr{IP: IPv4(sa.Addr[0], sa.Addr[1], sa.Addr[2], sa.Addr[3])})
    				case *syscall.SockaddrInet6:
    					ifa := &IPAddr{IP: make(IP, IPv6len)}
    					copy(ifa.IP, sa.Addr[:])
    					ifat = append(ifat, ifa)
    				}
    			}
    		}
    	}
    	return ifat, nil
    }
    
    // interfaceMulticastAddrTable returns addresses for a specific
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 10:25:02 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  4. pkg/kubelet/stats/cri_stats_provider_windows.go

    		Time:       metav1.NewTime(timestamp),
    		Interfaces: make([]statsapi.InterfaceStats, 0),
    	}
    
    	iStat := hcsStatToInterfaceStat(hcsStats, endpointName)
    
    	// TODO: add support of multiple interfaces for getting default interface.
    	result.Interfaces = append(result.Interfaces, iStat)
    	result.InterfaceStats = iStat
    
    	return result
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Feb 18 07:03:11 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  5. src/net/interface.go

    	if ifi == nil {
    		return nil, &OpError{Op: "route", Net: "ip+net", Source: nil, Addr: nil, Err: errInvalidInterface}
    	}
    	ifat, err := interfaceAddrTable(ifi)
    	if err != nil {
    		err = &OpError{Op: "route", Net: "ip+net", Source: nil, Addr: nil, Err: err}
    	}
    	return ifat, err
    }
    
    // MulticastAddrs returns a list of multicast, joined group addresses
    // for a specific interface.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  6. src/vendor/golang.org/x/net/nettest/nettest.go

    			continue
    		}
    		return &ifi, nil
    	}
    	return nil, errNoAvailableInterface
    }
    
    func hasRoutableIP(network string, ifi *net.Interface) (net.IP, bool) {
    	ifat, err := ifi.Addrs()
    	if err != nil {
    		return nil, false
    	}
    	for _, ifa := range ifat {
    		switch ifa := ifa.(type) {
    		case *net.IPAddr:
    			if ip, ok := routableIP(network, ifa.IP); ok {
    				return ip, true
    			}
    		case *net.IPNet:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/plugins/noderesources/fit.go

    	return framework.QueueSkip, nil
    }
    
    // isFit checks if the pod fits the node. If the node is nil, it returns false.
    // It constructs a fake NodeInfo object for the node and checks if the pod fits the node.
    func isFit(pod *v1.Pod, node *v1.Node) bool {
    	if node == nil {
    		return false
    	}
    	nodeInfo := framework.NewNodeInfo()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 20.2K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/RepositoryChainComponentMetaDataResolver.java

                    MetadataFetchingCost fetchingCost = localAccess.estimateMetadataFetchingCost((ModuleComponentIdentifier) identifier);
                    if (fetchingCost.isFast()) {
                        return true;
                    } else if (fetchingCost.isExpensive()) {
                        return false;
                    }
                }
            }
            return true;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 08:26:24 UTC 2024
    - 10K bytes
    - Viewed (0)
  9. pkg/scheduler/framework/plugins/noderesources/fit_test.go

    			node:     st.MakeNode().Capacity(map[v1.ResourceName]string{v1.ResourceCPU: "2"}).Obj(),
    			expected: true,
    		},
    	}
    
    	for name, tc := range testCases {
    		t.Run(name, func(t *testing.T) {
    			if got := isFit(tc.pod, tc.node); got != tc.expected {
    				t.Errorf("expected: %v, got: %v", tc.expected, got)
    			}
    		})
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 57.4K bytes
    - Viewed (0)
Back to top