Buckets:

soixantesept's picture
download
raw
407 Bytes
#include "Ilog.hpp"
int Ilog::log(uint16_t x) const { return static_cast<int>(t[x]); }
Ilog& Ilog::getInstance() {
static Ilog instance;
return instance;
}
Ilog *ilog = &Ilog::getInstance();
int llog(uint32_t x) {
if( x >= 0x1000000 ) {
return 256 + ilog->log(uint16_t(x >> 16));
}
if( x >= 0x10000 ) {
return 128 + ilog->log(uint16_t(x >> 8));
}
return ilog->log(uint16_t(x));
}

Xet Storage Details

Size:
407 Bytes
·
Xet hash:
b261914638664581d0d37c0325d729292e368355807abab28a49dd8f6d6c932a

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.