/usr/include/mash/hash.h is in libmash-dev 1.1.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | // Copyright © 2015, Battelle National Biodefense Institute (BNBI);
// all rights reserved. Authored by: Brian Ondov, Todd Treangen,
// Sergey Koren, and Adam Phillippy
//
// See the LICENSE.txt file included with this software for license information.
#ifndef hash_h
#define hash_h
#include <inttypes.h>
static const int seed = 42; // TODO: better seed???
typedef uint32_t hash32_t;
typedef uint64_t hash64_t;
union hash_u
{
hash32_t hash32;
hash64_t hash64;
};
hash_u getHash(const char * seq, int length, bool use64);
bool hashLessThan(hash_u hash1, hash_u hash2, bool use64);
#endif
|