Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 42 for varType (0.27 sec)

  1. test/typeparam/issue47710.go

    // license that can be found in the LICENSE file.
    
    package p
    
    type FooType[t any] interface {
    	Foo(BarType[t])
    }
    type BarType[t any] interface {
    	Int(IntType[t]) FooType[int]
    }
    
    type IntType[t any] int
    
    func (n IntType[t]) Foo(BarType[t]) {}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 398 bytes
    - Viewed (0)
  2. src/internal/syscall/windows/registry/export_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build windows
    
    package registry
    
    func (k Key) SetValue(name string, valtype uint32, data []byte) error {
    	return k.setValue(name, valtype, data)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 22:38:00 UTC 2021
    - 312 bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/transforms/fold_broadcast_pass.cc

        auto signedLhs = addSign(splatLhs.getSplatValue<ValType>(), etype);
        auto signedRhs = addSign(splatRhs.getSplatValue<ValType>(), etype);
        FailureOr<decltype(signedLhs)> result(Convert()(signedLhs, signedRhs));
        return succeeded(result) ? SplatElementsAttr::get(type, *result)
                                 : Attribute();
      }
    
      SmallVector<ValType, 6> values;
      values.reserve(lhs.getNumElements());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssagen/phi.go

    				}
    			}
    
    			if _, ok := s.varnum[var_]; ok {
    				continue
    			}
    			s.varnum[var_] = int32(len(vartypes))
    			if debugPhi {
    				fmt.Printf("var%d = %v\n", len(vartypes), var_)
    			}
    			vars = append(vars, var_)
    			vartypes = append(vartypes, v.Type)
    		}
    	}
    
    	if len(vartypes) == 0 {
    		return
    	}
    
    	// Find all definitions of the variables we need to process.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 17:59:44 UTC 2022
    - 15.2K bytes
    - Viewed (0)
  5. src/internal/syscall/windows/registry/syscall.go

    //sys	regEnumValue(key syscall.Handle, index uint32, name *uint16, nameLen *uint32, reserved *uint32, valtype *uint32, buf *byte, buflen *uint32) (regerrno error) = advapi32.RegEnumValueW
    //sys	regDeleteValue(key syscall.Handle, name *uint16) (regerrno error) = advapi32.RegDeleteValueW
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 07:20:34 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  6. src/internal/syscall/windows/registry/zsyscall_windows.go

    func regEnumValue(key syscall.Handle, index uint32, name *uint16, nameLen *uint32, reserved *uint32, valtype *uint32, buf *byte, buflen *uint32) (regerrno error) {
    	r0, _, _ := syscall.Syscall9(procRegEnumValueW.Addr(), 8, uintptr(key), uintptr(index), uintptr(unsafe.Pointer(name)), uintptr(unsafe.Pointer(nameLen)), uintptr(unsafe.Pointer(reserved)), uintptr(unsafe.Pointer(valtype)), uintptr(unsafe.Pointer(buf)), uintptr(unsafe.Pointer(buflen)), 0)
    	if r0 != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 02 15:41:00 UTC 2020
    - 4K bytes
    - Viewed (0)
  7. pkg/kubelet/stats/helper.go

    // converted from the container info from cadvisor.
    func cadvisorInfoToUserDefinedMetrics(info *cadvisorapiv2.ContainerInfo) []statsapi.UserDefinedMetric {
    	type specVal struct {
    		ref     statsapi.UserDefinedMetricDescriptor
    		valType cadvisorapiv1.DataType
    		time    time.Time
    		value   float64
    	}
    	udmMap := map[string]*specVal{}
    	for _, spec := range info.Spec.CustomMetrics {
    		udmMap[spec.Name] = &specVal{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 17 23:40:02 UTC 2023
    - 14.8K bytes
    - Viewed (0)
  8. src/internal/syscall/windows/registry/registry_test.go

    	}
    
    	for _, test := range tests {
    		switch test.Type {
    		case registry.DWORD, registry.QWORD:
    			value, valType, err := k.GetIntegerValue(test.Name)
    			if err == nil {
    				t.Errorf("GetIntegerValue(%q) succeeded. Returns type=%d value=%v", test.Name, valType, value)
    			}
    		case registry.MULTI_SZ:
    			value, valType, err := k.GetStringsValue(test.Name)
    			if err == nil {
    				if len(value) != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 19:19:00 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/assignments.go

    func operandTypes(list []*operand) (res []Type) {
    	for _, x := range list {
    		res = append(res, x.typ)
    	}
    	return res
    }
    
    // varTypes returns the list of types for the given variables.
    func varTypes(list []*Var) (res []Type) {
    	for _, x := range list {
    		res = append(res, x.typ)
    	}
    	return res
    }
    
    // typesSummary returns a string of the form "(t1, t2, ...)" where the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 23 21:21:43 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  10. src/go/types/assignments.go

    func operandTypes(list []*operand) (res []Type) {
    	for _, x := range list {
    		res = append(res, x.typ)
    	}
    	return res
    }
    
    // varTypes returns the list of types for the given variables.
    func varTypes(list []*Var) (res []Type) {
    	for _, x := range list {
    		res = append(res, x.typ)
    	}
    	return res
    }
    
    // typesSummary returns a string of the form "(t1, t2, ...)" where the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 16.4K bytes
    - Viewed (0)
Back to top