Skip to content

Commit

Permalink
Set 4N bytes as default for integer alphabets
Browse files Browse the repository at this point in the history
  • Loading branch information
felipelouza committed Jun 4, 2018
1 parent 97cf6d3 commit 971c28f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions experiments/lib/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@
#if M64 && LARGE_ALPHABET //8N bytes for s[0..n-1]
typedef int64_t int_text;
#define PRIdT PRId64
#else //2N bytes for s[0..n-1]
typedef int16_t int_text;
#define PRIdT PRId16
#else //4N bytes for s[0..n-1]
typedef int32_t int_text;
#define PRIdT PRId32
#endif

/**********************************************************************/
Expand Down
6 changes: 3 additions & 3 deletions gsacak.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@
#if M64 && LARGE_ALPHABET //8N bytes for s[0..n-1]
typedef int64_t int_text;
#define PRIdT PRId64
#else //2N bytes for s[0..n-1]
typedef int16_t int_text;
#define PRIdT PRId16
#else //4N bytes for s[0..n-1]
typedef int32_t int_text;
#define PRIdT PRId32
#endif

/** @brief computes the suffix array of string s[0..n-1]
Expand Down
6 changes: 3 additions & 3 deletions gsais.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@
#if M64 && LARGE_ALPHABET //8N bytes for s[0..n-1]
typedef int64_t int_text;
#define PRIdT PRId64
#else //2N bytes for s[0..n-1]
typedef int16_t int_text;
#define PRIdT PRId16
#else //4N bytes for s[0..n-1]
typedef int32_t int_text;
#define PRIdT PRId32
#endif

/** @brief computes the suffix array of string s[0..n-1]
Expand Down

0 comments on commit 971c28f

Please sign in to comment.