Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 85 for cap (0.11 sec)

  1. src/cmd/compile/internal/test/inl_test.go

    			// Trace-related ones.
    			"traceLocker.ok",
    			"traceEnabled",
    		},
    		"runtime/internal/sys": {},
    		"runtime/internal/math": {
    			"MulUintptr",
    		},
    		"bytes": {
    			"(*Buffer).Bytes",
    			"(*Buffer).Cap",
    			"(*Buffer).Len",
    			"(*Buffer).Grow",
    			"(*Buffer).Next",
    			"(*Buffer).Read",
    			"(*Buffer).ReadByte",
    			"(*Buffer).Reset",
    			"(*Buffer).String",
    			"(*Buffer).UnreadByte",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/sparsemap.go

    }
    
    // newSparseMap returns a sparseMap that can map
    // integers between 0 and n-1 to int32s.
    func newSparseMap(n int) *sparseMap {
    	return &sparseMap{dense: nil, sparse: make([]int32, n)}
    }
    
    func (s *sparseMap) cap() int {
    	return len(s.sparse)
    }
    
    func (s *sparseMap) size() int {
    	return len(s.dense)
    }
    
    func (s *sparseMap) contains(k ID) bool {
    	i := s.sparse[k]
    	return i < int32(len(s.dense)) && s.dense[i].key == k
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 31 21:41:06 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/prove.go

    	//
    	// TODO: Since prove now derives transitive relations, it
    	// should be sufficient to learn that len(w) <= cap(w) at the
    	// beginning of prove where we look for all len/cap ops.
    	if v.Op == OpSliceLen && r&lt == 0 && ft.caps[v.Args[0].ID] != nil {
    		// len(s) > w implies cap(s) > w
    		// len(s) >= w implies cap(s) >= w
    		// len(s) == w implies cap(s) >= w
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:30:21 UTC 2024
    - 48.9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/debug.go

    	if cap(state.valueNames) < f.NumValues() {
    		old := state.valueNames
    		state.valueNames = make([][]SlotID, f.NumValues())
    		copy(state.valueNames, old)
    	}
    	vn := state.valueNames[:f.NumValues()]
    	for i := range vn {
    		vn[i] = vn[i][:0]
    	}
    
    	// Slot and register contents for currentState. Cleared by reset().
    	if cap(state.currentState.slots) < numSlots {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 58.4K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ir/fmt.go

    			fmt.Fprintf(s, "%v", n.ReturnVars[0])
    			return
    		}
    		fmt.Fprintf(s, "(.%v)", n.ReturnVars)
    
    	case OMAKEMAP, OMAKECHAN, OMAKESLICE:
    		n := n.(*MakeExpr)
    		if n.Cap != nil {
    			fmt.Fprintf(s, "make(%v, %v, %v)", n.Type(), n.Len, n.Cap)
    			return
    		}
    		if n.Len != nil && (n.Op() == OMAKESLICE || !n.Len.Type().IsUntyped()) {
    			fmt.Fprintf(s, "make(%v, %v)", n.Type(), n.Len)
    			return
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 15:20:28 UTC 2023
    - 26K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/typecheck/dcl.go

    	defer autotmpnamesmu.Unlock()
    
    	// Grow autotmpnames, if needed.
    	if n >= len(autotmpnames) {
    		autotmpnames = append(autotmpnames, make([]string, n+1-len(autotmpnames))...)
    		autotmpnames = autotmpnames[:cap(autotmpnames)]
    	}
    
    	s := autotmpnames[n]
    	if s == "" {
    		// Give each tmp a different name so that they can be registerized.
    		// Add a preceding . to avoid clashing with legal names.
    		prefix := ".autotmp_%d"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:15:50 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/typecheck/func.go

    	}
    
    	if n.Len == nil {
    		base.Fatalf("missing len argument for OMAKESLICECOPY")
    	}
    
    	if n.Cap == nil {
    		base.Fatalf("missing slice argument to copy for OMAKESLICECOPY")
    	}
    
    	n.Len = Expr(n.Len)
    	n.Cap = Expr(n.Cap)
    
    	n.Len = DefaultLit(n.Len, types.Types[types.TINT])
    
    	if !n.Len.Type().IsInteger() && n.Type().Kind() != types.TIDEAL {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/stackalloc.go

    	}
    
    	return s.live
    }
    
    func (s *stackAllocState) init(f *Func, spillLive [][]ID) {
    	s.f = f
    
    	// Initialize value information.
    	if n := f.NumValues(); cap(s.values) >= n {
    		s.values = s.values[:n]
    	} else {
    		s.values = make([]stackValState, n)
    	}
    	for _, b := range f.Blocks {
    		for _, v := range b.Values {
    			s.values[v.ID].typ = v.Type
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 21:29:41 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/liveness/plive.go

    //
    //	x = x[1:]
    //
    // it is important to generate code like:
    //
    //	base, len, cap = pieces of x[1:]
    //	OpVarDef x
    //	x = {base, len, cap}
    //
    // If instead the generated code looked like:
    //
    //	OpVarDef x
    //	base, len, cap = pieces of x[1:]
    //	x = {base, len, cap}
    //
    // then the liveness analysis would decide the previous value of x was
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 15:22:22 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types/universe.go

    	SliceCapOffset = RoundUp(SliceLenOffset+int64(PtrSize), int64(PtrSize))
    	SliceSize = RoundUp(SliceCapOffset+int64(PtrSize), int64(PtrSize))
    
    	// string is same as slice wo the cap
    	StringSize = RoundUp(SliceLenOffset+int64(PtrSize), int64(PtrSize))
    
    	for et := Kind(0); et < NTYPE; et++ {
    		SimType[et] = et
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 26 21:56:49 UTC 2023
    - 4K bytes
    - Viewed (0)
Back to top