more unused code

This commit is contained in:
Heng Li
2020-03-26 17:57:39 -04:00
parent 814a3705e2
commit 4aa4ebaf96
7 changed files with 25 additions and 60 deletions
+4
View File
@@ -20,6 +20,10 @@
#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)