From 62ed33e80cd0dbf32988cd225e50306e0f1593fd Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Thu, 10 Oct 2013 19:42:00 -0400 Subject: don't depend on math.h's POW by using a bitshift instead: --- kmer_total_count.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kmer_total_count.c') diff --git a/kmer_total_count.c b/kmer_total_count.c index 113c979..345bceb 100644 --- a/kmer_total_count.c +++ b/kmer_total_count.c @@ -43,7 +43,7 @@ int main(int argc, char **argv) { const unsigned int kmer = atoi(argv[2]); // width is 4^kmer - const unsigned long width = pow(4, kmer); + const unsigned long width = (unsigned long)1 << (kmer * 2); // malloc our counts matrix unsigned long long * const counts = malloc((width+ 1) * sizeof(unsigned long long)); -- cgit v1.2.1