Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 52 for ifaceeq (0.27 sec)

  1. src/runtime/alg.go

    }
    func interequal(p, q unsafe.Pointer) bool {
    	x := *(*iface)(p)
    	y := *(*iface)(q)
    	return x.tab == y.tab && ifaceeq(x.tab, x.data, y.data)
    }
    func nilinterequal(p, q unsafe.Pointer) bool {
    	x := *(*eface)(p)
    	y := *(*eface)(q)
    	return x._type == y._type && efaceeq(x._type, x.data, y.data)
    }
    func efaceeq(t *_type, x, y unsafe.Pointer) bool {
    	if t == nil {
    		return true
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/typecheck/_builtin/runtime.go

    func panicdottypeE(have, want, iface *byte)
    func panicdottypeI(have, want, iface *byte)
    func panicnildottype(want *byte)
    func typeAssert(s *byte, typ *byte) *byte
    
    // interface switches
    func interfaceSwitch(s *byte, t *byte) (int, *byte)
    
    // interface equality. Type/itab pointers are already known to be equal, so
    // we only need to pass one.
    func ifaceeq(tab *uintptr, x, y unsafe.Pointer) (ret bool)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/typecheck/builtin.go

    	{"assertE2I2", funcTag, 67},
    	{"panicdottypeE", funcTag, 68},
    	{"panicdottypeI", funcTag, 68},
    	{"panicnildottype", funcTag, 69},
    	{"typeAssert", funcTag, 67},
    	{"interfaceSwitch", funcTag, 70},
    	{"ifaceeq", funcTag, 72},
    	{"efaceeq", funcTag, 72},
    	{"panicrangestate", funcTag, 73},
    	{"deferrangefunc", funcTag, 74},
    	{"rand32", funcTag, 75},
    	{"makemap64", funcTag, 77},
    	{"makemap", funcTag, 78},
    	{"makemap_small", funcTag, 79},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  4. src/runtime/iface.go

    //
    //go:linkname reflect_ifaceE2I reflect.ifaceE2I
    func reflect_ifaceE2I(inter *interfacetype, e eface, dst *iface) {
    	*dst = iface{assertE2I(inter, e._type), e.data}
    }
    
    //go:linkname reflectlite_ifaceE2I internal/reflectlite.ifaceE2I
    func reflectlite_ifaceE2I(inter *interfacetype, e eface, dst *iface) {
    	*dst = iface{assertE2I(inter, e._type), e.data}
    }
    
    func iterate_itabs(fn func(*itab)) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  5. src/go/internal/gcimporter/ureader.go

    	// after we've called SetUnderlying everywhere.
    	//
    	// TODO(mdempsky): After CL 424876 lands, it should be safe to call
    	// iface.Complete() immediately.
    	r.p.ifaces = append(r.p.ifaces, iface)
    
    	return iface
    }
    
    func (r *reader) signature(recv *types.Var, rtparams, tparams []*types.TypeParam) *types.Signature {
    	r.Sync(pkgbits.SyncSignature)
    
    	params := r.params()
    	results := r.params()
    	variadic := r.Bool()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  6. pkg/volume/iscsi/iscsi_util.go

    		if !strings.HasPrefix(line, "iface.") || strings.Contains(line, "<empty>") {
    			continue
    		}
    		iface := strings.Fields(line)
    		if len(iface) != 3 || iface[1] != "=" {
    			return nil, fmt.Errorf("error: invalid iface setting: %v", iface)
    		}
    		// iscsi_ifacename is immutable once the iface is created
    		if iface[0] == "iface.iscsi_ifacename" {
    			continue
    		}
    		params[iface[0]] = iface[2]
    	}
    	return params, nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 22 12:53:01 UTC 2022
    - 34.1K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/testplugin/plugin_test.go

    	globalSkip(t)
    	run(t, "./host.exe")
    }
    
    func TestUniqueTypesAndItabs(t *testing.T) {
    	globalSkip(t)
    	goCmd(t, "build", "-buildmode=plugin", "./iface_a")
    	goCmd(t, "build", "-buildmode=plugin", "./iface_b")
    	goCmd(t, "build", "-o", "iface.exe", "./iface")
    	run(t, "./iface.exe")
    }
    
    func TestIssue18676(t *testing.T) {
    	// make sure we don't add the same itab twice.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:32:53 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  8. src/runtime/hash_test.go

    }
    func (k *EfaceKey) name() string {
    	return "Eface"
    }
    
    type IfaceKey struct {
    	i interface {
    		F()
    	}
    }
    type fInter uint64
    
    func (x fInter) F() {
    }
    
    func (k *IfaceKey) clear() {
    	k.i = nil
    }
    func (k *IfaceKey) random(r *rand.Rand) {
    	k.i = fInter(r.Int63())
    }
    func (k *IfaceKey) bits() int {
    	// use 64 bits. This tests inlined interfaces
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 17:50:18 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  9. pkg/volume/iscsi/iscsi_util_test.go

    	fakeIscsiadmOutput1 := "# BEGIN RECORD 2.0-873\n" +
    		"iface.iscsi_ifacename = default\n" +
    		"iface.transport_name = tcp\n" +
    		"iface.initiatorname = <empty>\n" +
    		"iface.mtu = 0\n" +
    		"# END RECORD"
    
    	fakeIscsiadmOutput2 := "# BEGIN RECORD 2.0-873\n" +
    		"iface.iscsi_ifacename = default\n" +
    		"iface.transport_name = cxgb4i\n" +
    		"iface.initiatorname = <empty>\n" +
    		"iface.mtu = 0\n" +
    		"# END RECORD"
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 18 09:43:07 UTC 2022
    - 14.5K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/subst.go

    		embeddeds, ecopied := subst.typeList(t.embeddeds)
    		if mcopied || ecopied {
    			iface := subst.check.newInterface()
    			iface.embeddeds = embeddeds
    			iface.embedPos = t.embedPos
    			iface.implicit = t.implicit
    			assert(t.complete) // otherwise we are copying incomplete data
    			iface.complete = t.complete
    			// If we've changed the interface type, we may need to replace its
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11K bytes
    - Viewed (0)
Back to top