| 109 | }; |
| 110 | |
| 111 | void Duplicate::seq2intvector(const char* data, int len, uint64* output, int posOffset) { |
| 112 | for(int p=0; p<len; p++) { |
| 113 | uint64 base = SEQ_HASH_VAL[static_cast<unsigned char>(data[p])]; |
| 114 | for(int i=0; i<mBufNum; i++) { |
| 115 | int offset = (p+posOffset)*mBufNum + i; |
| 116 | offset &= mOffsetMask; |
| 117 | output[i] += mPrimeArrays[offset] * (base + (p+posOffset)); |
| 118 | } |
| 119 | } |
| 120 | } |
| 121 | |
| 122 | bool Duplicate::checkRead(Read* r) { |
| 123 | // max mBufNum is 8 (accuracy level 6), stack-allocate to avoid heap alloc per read |
nothing calls this directly
no outgoing calls
no test coverage detected