Mercurial > repos > rliterman > csp2
annotate CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/include/mash/hash.h @ 69:33d812a61356
planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author | jpayne |
---|---|
date | Tue, 18 Mar 2025 17:55:14 -0400 |
parents | |
children |
rev | line source |
---|---|
jpayne@69 | 1 // Copyright © 2015, Battelle National Biodefense Institute (BNBI); |
jpayne@69 | 2 // all rights reserved. Authored by: Brian Ondov, Todd Treangen, |
jpayne@69 | 3 // Sergey Koren, and Adam Phillippy |
jpayne@69 | 4 // |
jpayne@69 | 5 // See the LICENSE.txt file included with this software for license information. |
jpayne@69 | 6 |
jpayne@69 | 7 #ifndef hash_h |
jpayne@69 | 8 #define hash_h |
jpayne@69 | 9 |
jpayne@69 | 10 #include <inttypes.h> |
jpayne@69 | 11 |
jpayne@69 | 12 typedef uint32_t hash32_t; |
jpayne@69 | 13 typedef uint64_t hash64_t; |
jpayne@69 | 14 |
jpayne@69 | 15 union hash_u |
jpayne@69 | 16 { |
jpayne@69 | 17 hash32_t hash32; |
jpayne@69 | 18 hash64_t hash64; |
jpayne@69 | 19 }; |
jpayne@69 | 20 |
jpayne@69 | 21 hash_u getHash(const char * seq, int length, uint32_t seed, bool use64); |
jpayne@69 | 22 bool hashLessThan(hash_u hash1, hash_u hash2, bool use64); |
jpayne@69 | 23 |
jpayne@69 | 24 #endif |