Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for alg (0.17 sec)

  1. src/cmd/compile/internal/types/alg.go

    // priority to the current algorithm type.
    func (t *Type) setAlg(a AlgKind) {
    	if t.alg == AUNK {
    		base.Fatalf("setAlg(%v,%s) starting with unknown priority", t, a)
    	}
    	if algPriority[a] > algPriority[t.alg] {
    		t.alg = a
    	} else if a != t.alg && algPriority[a] == algPriority[t.alg] {
    		base.Fatalf("ambiguous priority %s and %s", a, t.alg)
    	}
    }
    
    // AlgType returns the AlgKind used for comparing and hashing Type t.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 18 15:30:00 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types/algkind_string.go

    // Code generated by "stringer -type AlgKind -trimprefix A alg.go"; DO NOT EDIT.
    
    package types
    
    import "strconv"
    
    func _() {
    	// An "invalid array index" compiler error signifies that the constant values have changed.
    	// Re-run the stringer command to generate them again.
    	var x [1]struct{}
    	_ = x[AUNK-0]
    	_ = x[ANOEQ-1]
    	_ = x[ANOALG-2]
    	_ = x[AMEM-3]
    	_ = x[AMEM0-4]
    	_ = x[AMEM8-5]
    	_ = x[AMEM16-6]
    	_ = x[AMEM32-7]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 18 15:30:00 UTC 2024
    - 1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types/size.go

    	t.floatRegs = uint8(floatRegs)
    
    	// Compute eq/hash algorithm type.
    	t.alg = AMEM // default
    	if t.Noalg() {
    		t.setAlg(ANOALG)
    	}
    	if len(fields) == 1 && !fields[0].Sym.IsBlank() {
    		// One-field struct is same as that one field alone.
    		t.setAlg(fields[0].Type.alg)
    	} else {
    		for i, f := range fields {
    			a := f.Type.alg
    			switch a {
    			case ANOEQ, ANOALG:
    			case AMEM:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 15K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/walk/order.go

    	if ir.HasUniquePos(n) {
    		pos = n.Pos()
    	}
    	// Most map calls need to take the address of the key.
    	// Exception: map*_fast* calls. See golang.org/issue/19015.
    	alg := mapfast(t)
    	if alg == mapslow {
    		return o.addrTemp(n)
    	}
    	var kt *types.Type
    	switch alg {
    	case mapfast32:
    		kt = types.Types[types.TUINT32]
    	case mapfast64:
    		kt = types.Types[types.TUINT64]
    	case mapfast32ptr, mapfast64ptr:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 02:00:33 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/walk/compare.go

    		return finishCompare(n, expr, init)
    	}
    
    	// Must be comparison of array or struct.
    	// Otherwise back end handles it.
    	// While we're here, decide whether to
    	// inline or call an eq alg.
    	t := n.X.Type()
    	var inline bool
    
    	maxcmpsize := int64(4)
    	unalignedLoad := ssagen.Arch.LinkArch.CanMergeLoads
    	if unalignedLoad {
    		// Keep this low enough to generate less code than a function call.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 21:55:14 UTC 2023
    - 16.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types/type.go

    	t.width = int64(PtrSize)
    	t.align = uint8(PtrSize)
    	t.intRegs = 1
    	if NewPtrCacheEnabled {
    		elem.cache.ptr = t
    	}
    	if elem.HasShape() {
    		t.SetHasShape(true)
    	}
    	t.alg = AMEM
    	if elem.Noalg() {
    		t.SetNoalg(true)
    		t.alg = ANOALG
    	}
    	// Note: we can't check elem.NotInHeap here because it might
    	// not be set yet. See size.go:PtrDataSize.
    	t.ptrBytes = int64(PtrSize)
    	return t
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 49.5K bytes
    - Viewed (0)
Back to top