/usr/include/kmer/eliasDeltaEncoding.h is in libmeryl-dev 0~20150903+r2013-1.
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 27 28 29 30 31 32 33 | #ifndef ELIAS_DELTA_ENCODING_H
#define ELIAS_DELTA_ENCODING_H
#include "bitPacking.h"
inline
void
setEliasDeltaEncodedNumber(uint64 *ptr,
uint64 pos,
uint64 *siz,
uint64 val) {
uint64 b = logBaseTwo64(val);
setEliasGammaEncodedNumber(ptr, pos, siz, b);
pos += *siz;
setDecodedValue(ptr, pos, b-1, val);
*siz += b-1;
}
inline
uint64
getEliasDeltaEncodedNumber(uint64 *ptr,
uint64 pos,
uint64 *siz) {
uint64 b = getEliasGammaEncodedNumber(ptr, pos, siz) - 1;
pos += *siz;
*siz += b;
return(uint64ONE << b | getDecodedValue(ptr, pos, b));
}
#endif // ELIAS_DELTA_ENCODING_H
|