Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for sais_64 (0.09 sec)

  1. src/index/suffixarray/sais2.go

    	if int(int64(len(text))) != len(text) || len(text) != len(sa) {
    		panic("suffixarray: misuse of text_64")
    	}
    	sais_8_64(text, 256, sa, make([]int64, 2*256))
    }
    
    func sais_8_64(text []byte, textMax int, sa, tmp []int64) {
    	if len(sa) != len(text) || len(tmp) < textMax {
    		panic("suffixarray: misuse of sais_8_64")
    	}
    
    	// Trivial base cases. Sorting 0 or 1 things is easy.
    	if len(text) == 0 {
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 18 23:57:18 UTC 2024
    - 52.3K bytes
    - Viewed (0)
  2. src/index/suffixarray/sais.go

    		n := maxID
    		if n < numLMS/2 {
    			n = numLMS / 2
    		}
    		tmp = make([]int32, n)
    	}
    
    	// sais_32 requires that the caller arrange to clear dst,
    	// because in general the caller may know dst is
    	// freshly-allocated and already cleared. But this one is not.
    	clear(dst)
    	sais_32(text, maxID, dst, tmp)
    }
    
    // unmap_8_32 unmaps the subproblem back to the original.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 18 23:57:18 UTC 2024
    - 32.4K bytes
    - Viewed (0)
Back to top