- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for newBiasedSparseMap (0.22 sec)
-
src/cmd/compile/internal/ssa/biasedsparsemap.go
// biasedSparseMap like a SparseSet. type biasedSparseMap struct { s *sparseMap first int } // newBiasedSparseMap returns a new biasedSparseMap for values between first and last, inclusive. func newBiasedSparseMap(first, last int) *biasedSparseMap { if first > last { return &biasedSparseMap{first: math.MaxInt32, s: nil} }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 31 21:41:06 UTC 2022 - 2.7K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/xposmap.go
func newXposmap(x map[int]lineRange) *xposmap { maps := make(map[int32]*biasedSparseMap) for i, p := range x { maps[int32(i)] = newBiasedSparseMap(int(p.first), int(p.last)) } return &xposmap{maps: maps, lastIndex: -1} // zero for the rest is okay } // clear removes data from the map but leaves the sparse skeleton. func (m *xposmap) clear() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 18:48:16 UTC 2019 - 3.3K bytes - Viewed (0)