pub unsafe extern "C" fn libsais_omp(
T: *const u8,
SA: *mut i32,
n: i32,
fs: i32,
freq: *mut i32,
threads: i32,
) -> i32Expand description
Constructs the suffix array of a given string in parallel using OpenMP.
§Arguments
T- [0..n-1] The input string.SA- [0..n-1+fs] The output array of suffixes.n- The length of the given string.fs- The extra space available at the end of SA array (0 should be enough for most cases).freq- [0..255] The output symbol frequency table (can be NULL).threads- The number of OpenMP threads to use (can be 0 for OpenMP default).
§Returns
0 if no error occurred, -1 or -2 otherwise.