From cfb0a5c8ec817a8ad61182167c90cd964a9d8cdc Mon Sep 17 00:00:00 2001 From: Heng Li Date: Mon, 23 Mar 2020 09:54:42 -0400 Subject: [PATCH] reduced the position to 32 bits --- Hash_Table.h | 6 +++--- Overlaps.cpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Hash_Table.h b/Hash_Table.h index f1b997f..29f8827 100644 --- a/Hash_Table.h +++ b/Hash_Table.h @@ -55,8 +55,8 @@ typedef struct typedef struct { - uint64_t offset; - uint64_t readID; + uint32_t offset:31, rev:1; + uint32_t readID; } k_mer_pos; typedef struct @@ -551,4 +551,4 @@ void destory_window_list_alloc(window_list_alloc* x); void resize_window_list_alloc(window_list_alloc* x, long long size); -#endif \ No newline at end of file +#endif diff --git a/Overlaps.cpp b/Overlaps.cpp index c2deb22..72ab35e 100644 --- a/Overlaps.cpp +++ b/Overlaps.cpp @@ -11446,7 +11446,7 @@ void print_untig(ma_ug_t *g, uint32_t uId, const char* info, uint32_t is_print_r for (k = 0; k < u->n; k++) { fprintf(stderr, "%s: rId>>1: %lu, dir: %lu, name: %.*s\n", - info, u->a[k]>>33, (u->a[k]>>32)&1, + info, (unsigned long)(u->a[k]>>33), (unsigned long)((u->a[k]>>32)&1), (int)Get_NAME_LENGTH((R_INF), (u->a[k]>>33)), Get_NAME((R_INF), (u->a[k]>>33))); } } @@ -24753,7 +24753,7 @@ void fix_binned_reads(ma_hit_t_alloc* paf, uint64_t n_read, ma_sub_t* coverage_c } fprintf(stderr, "n_read: %lu, binned_reads: %lu, binned_error_reads: %lu\n", - n_read, binned_reads, binned_error_reads); + (unsigned long)n_read, (unsigned long)binned_reads, (unsigned long)binned_error_reads); }