Skip to content

Commit

Permalink
Cosmetic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
felipelouza committed Jun 4, 2018
1 parent b4de8e6 commit ff13338
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 34 deletions.
32 changes: 16 additions & 16 deletions gsacak.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,39 +34,39 @@
#define max(a,b) ((a) > (b) ? (a) : (b))

#ifndef DEBUG
#define DEBUG 0
#define DEBUG 0
#endif

#ifndef M64
#define M64 0
#define M64 0
#endif

#if M64
typedef int64_t int_t;
typedef int64_t int_t;
typedef uint64_t uint_t;
#define PRIdN PRId64
#define U_MAX UINT64_MAX
#define I_MAX INT64_MAX
#define I_MIN INT64_MIN
#define PRIdN PRId64
#define U_MAX UINT64_MAX
#define I_MAX INT64_MAX
#define I_MIN INT64_MIN
#else
typedef int32_t int_t;
typedef int32_t int_t;
typedef uint32_t uint_t;
#define PRIdN PRId32
#define U_MAX UINT32_MAX
#define I_MAX INT32_MAX
#define I_MIN INT32_MIN
#define PRIdN PRId32
#define U_MAX UINT32_MAX
#define I_MAX INT32_MAX
#define I_MIN INT32_MIN
#endif

#ifndef LARGE_ALPHABET
#define LARGE_ALPHABET 0
#endif

#if M64 && LARGE_ALPHABET //8N bytes for s[0..n-1]
typedef int64_t int_text;
#define PRIdT PRId64
typedef int64_t int_text;
#define PRIdT PRId64
#else //4N bytes for s[0..n-1]
typedef int32_t int_text;
#define PRIdT PRId32
typedef int32_t int_text;
#define PRIdT PRId32
#endif

/** @brief computes the suffix array of string s[0..n-1]
Expand Down
36 changes: 18 additions & 18 deletions gsais.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,39 +34,39 @@
#define max(a,b) ((a) > (b) ? (a) : (b))

#ifndef DEBUG
#define DEBUG 0
#define DEBUG 0
#endif

#ifndef M64
#define M64 0
#define M64 0
#endif

#if M64
typedef int64_t int_t;
typedef uint64_t uint_t;
#define PRIdN PRId64
#define U_MAX UINT64_MAX
#define I_MAX INT64_MAX
#define I_MIN INT64_MIN
typedef int64_t int_t;
typedef uint64_t uint_t;
#define PRIdN PRId64
#define U_MAX UINT64_MAX
#define I_MAX INT64_MAX
#define I_MIN INT64_MIN
#else
typedef int32_t int_t;
typedef uint32_t uint_t;
#define PRIdN PRId32
#define U_MAX UINT32_MAX
#define I_MAX INT32_MAX
#define I_MIN INT32_MIN
typedef int32_t int_t;
typedef uint32_t uint_t;
#define PRIdN PRId32
#define U_MAX UINT32_MAX
#define I_MAX INT32_MAX
#define I_MIN INT32_MIN
#endif

#ifndef LARGE_ALPHABET
#define LARGE_ALPHABET 0
#endif

#if M64 && LARGE_ALPHABET //8N bytes for s[0..n-1]
typedef int64_t int_text;
#define PRIdT PRId64
typedef int64_t int_text;
#define PRIdT PRId64
#else //4N bytes for s[0..n-1]
typedef int32_t int_text;
#define PRIdT PRId32
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 ff13338

Please sign in to comment.