r181: limit the max number of chains

This commit is contained in:
Heng Li
2020-04-02 21:55:00 -04:00
parent 3838482851
commit 968b4caef9
9 changed files with 65 additions and 34 deletions
-4
View File
@@ -20,10 +20,6 @@
#define YAK_MAGIC "YAK\2"
#ifndef kroundup32
#define kroundup32(x) (--(x), (x)|=(x)>>1, (x)|=(x)>>2, (x)|=(x)>>4, (x)|=(x)>>8, (x)|=(x)>>16, ++(x))
#endif
#define yak_ch_eq(a, b) ((a)>>YAK_COUNTER_BITS == (b)>>YAK_COUNTER_BITS) // lower 8 bits for counts; higher bits for k-mer
#define yak_ch_hash(a) ((a)>>YAK_COUNTER_BITS)
KHASHL_SET_INIT(static klib_unused, yak_ht_t, yak_ht, uint64_t, yak_ch_hash, yak_ch_eq)