Difference between revisions of "830 - BestAlignment::IterateCache()"
From Genome Analysis Wiki
Jump to navigationJump to search (Created page with "<source lang="cpp"> unsigned int BestAlignment::IterateCache(unsigned int key) { int h = (key * PRIME) % cacheSize; while (cache[h] != -1 && cache[h] ...") |
(No difference)
|
Latest revision as of 13:58, 28 October 2013
unsigned int BestAlignment::IterateCache(unsigned int key)
{
int h = (key * PRIME) % cacheSize;
while (cache[h] != -1 && cache[h] != key)
h = h + 1 >= cacheSize ? 0 : h + 1;
return h;
}