jpayne@69: // Copyright © 2015, Battelle National Biodefense Institute (BNBI); jpayne@69: // all rights reserved. Authored by: Brian Ondov, Todd Treangen, jpayne@69: // Sergey Koren, and Adam Phillippy jpayne@69: // jpayne@69: // See the LICENSE.txt file included with this software for license information. jpayne@69: jpayne@69: #ifndef hash_h jpayne@69: #define hash_h jpayne@69: jpayne@69: #include jpayne@69: jpayne@69: typedef uint32_t hash32_t; jpayne@69: typedef uint64_t hash64_t; jpayne@69: jpayne@69: union hash_u jpayne@69: { jpayne@69: hash32_t hash32; jpayne@69: hash64_t hash64; jpayne@69: }; jpayne@69: jpayne@69: hash_u getHash(const char * seq, int length, uint32_t seed, bool use64); jpayne@69: bool hashLessThan(hash_u hash1, hash_u hash2, bool use64); jpayne@69: jpayne@69: #endif