Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for alg (0.02 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/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)
  5. src/cmd/link/internal/ld/macho.go

    	if strings.HasPrefix(name, "go:itab.") {
    		return true
    	}
    	if strings.HasPrefix(name, "type:") && !strings.HasPrefix(name, "type:.") {
    		// reduce runtime typemap pressure, but do not
    		// export alg functions (type:.*), as these
    		// appear in pclntable.
    		return true
    	}
    	if strings.HasPrefix(name, "go:link.pkghash") {
    		return true
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:32:53 UTC 2024
    - 43.9K bytes
    - Viewed (0)
Back to top