Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for SplitStoredHashIndex (0.33 sec)

  1. src/cmd/vendor/golang.org/x/mod/sumdb/tlog/tile.go

    // tileForIndex returns the tile of height h ≥ 1
    // storing the given hash index, which can be
    // reconstructed using tileHash(data[start:end]).
    func tileForIndex(h int, index int64) (t Tile, start, end int) {
    	level, n := SplitStoredHashIndex(index)
    	t.H = h
    	t.L = level / h
    	level -= t.L * h // now level within tile
    	t.N = n << uint(level) >> uint(t.H)
    	n -= t.N << uint(t.H) >> uint(level) // now n within tile at level
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 13K bytes
    - Viewed (0)
Back to top