Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for NumBlocks (0.35 sec)

  1. src/cmd/compile/internal/ssa/likelyadjust.go

    	// is less likely. It's possible to assign a negative
    	// unlikeliness (though not currently the case).
    	certain := f.Cache.allocInt8Slice(f.NumBlocks()) // In the long run, all outcomes are at least this bad. Mainly for Exit
    	defer f.Cache.freeInt8Slice(certain)
    	local := f.Cache.allocInt8Slice(f.NumBlocks()) // for our immediate predecessors.
    	defer f.Cache.freeInt8Slice(local)
    
    	po := f.postorder()
    	nest := f.loopnest()
    	b2l := nest.b2l
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 31 21:41:20 UTC 2022
    - 15.4K bytes
    - Viewed (0)
  2. src/vendor/golang.org/x/crypto/chacha20/chacha_generic.go

    	// not to generate any more output after the buffer is drained.
    	numBlocks := (uint64(len(src)) + blockSize - 1) / blockSize
    	if s.overflow || uint64(s.counter)+numBlocks > 1<<32 {
    		panic("chacha20: counter overflow")
    	} else if uint64(s.counter)+numBlocks == 1<<32 {
    		s.overflow = true
    	}
    
    	// xorKeyStreamBlocks implementations expect input lengths that are a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 26 00:11:50 UTC 2022
    - 13.9K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssagen/phi.go

    				break levels
    			}
    		}
    	}
    
    	// Allocate scratch locations.
    	s.priq.level = s.level
    	s.q = make([]*ssa.Block, 0, s.f.NumBlocks())
    	s.queued = newSparseSet(s.f.NumBlocks())
    	s.hasPhi = newSparseSet(s.f.NumBlocks())
    	s.hasDef = newSparseSet(s.f.NumBlocks())
    	s.placeholder = s.s.entryNewValue0(ssa.OpUnknown, types.TypeInvalid)
    
    	// Generate phi ops for each variable.
    	for n := range vartypes {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 17:59:44 UTC 2022
    - 15.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/loopreschedchecks.go

    	if lastMems[f.Entry.ID] == nil {
    		lastMems[f.Entry.ID] = f.Entry.NewValue0(f.Entry.Pos, OpInitMem, types.TypeMem)
    	}
    
    	memDefsAtBlockEnds := f.Cache.allocValueSlice(f.NumBlocks()) // For each block, the mem def seen at its bottom. Could be from earlier block.
    	defer f.Cache.freeValueSlice(memDefsAtBlockEnds)
    
    	// Propagate last mem definitions forward through successor blocks.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 21:17:10 UTC 2023
    - 16K bytes
    - Viewed (0)
  5. src/archive/tar/reader_test.go

    		{"22 GNU.sparse.size=10\n26 GNU.sparse.numblocks=2\n" +
    			"23 GNU.sparse.offset=1\n25 GNU.sparse.numbytes=2\n" +
    			"23 GNU.sparse.offset=3\n25 GNU.sparse.numbytes=4\n",
    			map[string]string{paxGNUSparseSize: "10", paxGNUSparseNumBlocks: "2", paxGNUSparseMap: "1,2,3,4"}, true},
    		{"22 GNU.sparse.size=10\n26 GNU.sparse.numblocks=1\n" +
    			"25 GNU.sparse.numbytes=2\n23 GNU.sparse.offset=1\n",
    			nil, false},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 21 21:14:38 UTC 2022
    - 47.1K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/html.go

    	}
    	indexOf := make([]int, f.NumBlocks())
    	for i, b := range f.Blocks {
    		indexOf[b.ID] = i
    	}
    	layoutDrawn := make([]bool, f.NumBlocks())
    
    	ponums := make([]int32, f.NumBlocks())
    	_ = postorderWithNumbering(f, ponums)
    	isBackEdge := func(from, to ID) bool {
    		return ponums[from] <= ponums[to]
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 04 15:11:40 UTC 2023
    - 34.8K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/check.go

    package ssa
    
    import (
    	"cmd/compile/internal/ir"
    	"cmd/internal/obj/s390x"
    	"math"
    	"math/bits"
    )
    
    // checkFunc checks invariants of f.
    func checkFunc(f *Func) {
    	blockMark := make([]bool, f.NumBlocks())
    	valueMark := make([]bool, f.NumValues())
    
    	for _, b := range f.Blocks {
    		if blockMark[b.ID] {
    			f.Fatalf("block %s appears twice in %s!", b, f.Name)
    		}
    		blockMark[b.ID] = true
    		if b.Func != f {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 16:41:23 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/liveness/plive.go

    	if lc, _ := f.Cache.Liveness.(*livenessFuncCache); lc == nil {
    		// Prep the cache so liveness can fill it later.
    		f.Cache.Liveness = new(livenessFuncCache)
    	} else {
    		if cap(lc.be) >= f.NumBlocks() {
    			lv.be = lc.be[:f.NumBlocks()]
    		}
    		lv.livenessMap = Map{
    			Vals:         lc.livenessMap.Vals,
    			UnsafeVals:   lc.livenessMap.UnsafeVals,
    			UnsafeBlocks: lc.livenessMap.UnsafeBlocks,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 15:22:22 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/func.go

    		CanonicalLocalSlots:  make(map[LocalSlot]*LocalSlot),
    		CanonicalLocalSplits: make(map[LocalSlotSplitKey]*LocalSlot),
    	}
    }
    
    // NumBlocks returns an integer larger than the id of any Block in the Func.
    func (f *Func) NumBlocks() int {
    	return f.bid.num()
    }
    
    // NumValues returns an integer larger than the id of any Value in the Func.
    func (f *Func) NumValues() int {
    	return f.vid.num()
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  10. src/internal/coverage/defs.go

    // object we associated with instrumented function can be thought of
    // as a struct of the following form:
    //
    // struct {
    //     numCtrs uint32
    //     pkgid uint32
    //     funcid uint32
    //     counterArray [numBlocks]uint32
    // }
    //
    // where "numCtrs" is the number of blocks / coverable units within the
    // function, "pkgid" is the unique index assigned to this package by
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 14 12:51:16 UTC 2023
    - 11.9K bytes
    - Viewed (0)
Back to top