<>
classLargeInt<1>
33 intsizeKmer = kmer.size();
34 for(
int i= 0;
i< sizeKmer;
i++) {
40 template<
typenameT>
42 for(
T i=
a;
i<
b; ++
i) {
50 static const char*
getName() {
return "LargeInt<1>"; }
52 static const size_t getSize() {
return8*
sizeof(u_int64_t); }
62u_int32_t
operator%(
constu_int32_t& divisor)
const{
return value[0] % divisor; }
77 LargeInt<1>& operator<<= (
const int& coeff) {
value[0] <<= coeff;
return*
this; }
78 LargeInt<1>& operator>>= (
const int& coeff) {
value[0] >>= coeff;
return*
this; }
80u_int8_t operator[] (
size_tidx)
const{
return(
value[0] >> (2*idx)) & 3; }
85s <<
std::hex<<
l.value[0] << std::dec;
returns;
95u_int64_t temp =
value[0];
98 for(
i=sizeKmer-1;
i>=0;
i--)
112 inline staticu_int64_t
revcomp64(
constu_int64_t& x,
size_tsizeKmer)
121res = ((res>> 2 & 0x3333333333333333) | (res & 0x3333333333333333) << 2);
122res = ((res>> 4 & 0x0F0F0F0F0F0F0F0F) | (res & 0x0F0F0F0F0F0F0F0F) << 4);
123res = ((res>> 8 & 0x00FF00FF00FF00FF) | (res & 0x00FF00FF00FF00FF) << 8);
124res = ((res>>16 & 0x0000FFFF0000FFFF) | (res & 0x0000FFFF0000FFFF) << 16);
125res = ((res>>32 & 0x00000000FFFFFFFF) | (res & 0x00000000FFFFFFFF) << 32);
126res = res ^ 0xAAAAAAAAAAAAAAAA;
128 return(res >> (2*(32-sizeKmer))) ;
132 template<
typenameMap>
LargeInt< 1 > revcomp(const LargeInt< 1 > &x, size_t sizeKmer)
std::array< const char, 4 > bin2NT
static u_int64_t revcomp64(const u_int64_t &x, size_t sizeKmer)
static const size_t getSize()
static const char * getName()
friend std::ostream & operator<<(std::ostream &s, const LargeInt< 1 > &l)
u_int64_t toInt() const
Returns lower 64 bits.
std::string toString(size_t sizeKmer) const
Print corresponding kmer in ASCII.
static LargeInt< 1 > polynom(const char *data, size_t size, Map fct)
bool operator<(const CEquivRange &A, const CEquivRange &B)
bool operator==(const CEquivRange &A, const CEquivRange &B)
CNcbiOstream & operator<<(CNcbiOstream &out, const CEquivRange &range)
CNcbiIstream & operator>>(CNcbiIstream &s, const getcontig &c)
CRange< Position > Map(const CRange< Position > &target, const CRange< Position > &range)
CSafeFlags< E > operator&(E a, CSafeFlags< E > b)
CSafeFlags< E > operator^(E a, CSafeFlags< E > b)
string operator+(const CCgiEntry &e, const string &s)
CVect2< T > operator-(const CVect2< T > &v)
CVect2< NCBI_PROMOTE(T, U) > operator/(const CVect2< T > &v1, U v2)
CVect2< NCBI_PROMOTE(int,U) > operator*(int v1, const CVect2< U > &v2)
CFields operator|(CFields, CFields)
CExpression operator<=(time_point, CREATED)
bool operator!=(const CNCBI_IPAddr &lhs, unsigned int rhs)
CNcbiMatrix< T > & operator+=(CNcbiMatrix< T > &, const CNcbiMatrix< U > &)
global addition: matrix += matrix
static void hex(unsigned char c)
static u_int64_t oahash64(u_int64_t elem)
const struct ncbi::grid::netcache::search::fields::SIZE size
CObject operator%(const CObject &a, const CObject &b)
const GenericPointer< typename T::ValueType > T2 value
static SLJIT_INLINE sljit_ins l(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4