libsais64_long_omp

Function libsais64_long_omp 

Source
pub unsafe extern "C" fn libsais64_long_omp(
    T: *mut i64,
    SA: *mut i64,
    n: i64,
    k: i64,
    fs: i64,
    threads: i64,
) -> i64
Expand description

Constructs the suffix array of a given integer array in parallel using OpenMP.Note, during construction input array will be modified, but restored at the end if no errors occurred.

§Arguments

  • T - [0..n-1] The input integer array.
  • SA - [0..n-1+fs] The output array of suffixes.
  • n - The length of the integer array.
  • k - The alphabet size of the input integer array.
  • fs - Extra space available at the end of SA array (can be 0, but 4k or better 6k is recommended for optimal performance).
  • threads - The number of OpenMP threads to use (can be 0 for OpenMP default).

§Returns

0 if no error occurred, -1 or -2 otherwise.