mirror of
https://github.com/quickwit-oss/tantivy.git
synced 2026-01-13 04:22:54 +00:00
blop
This commit is contained in:
@@ -8,8 +8,10 @@ using namespace SIMDCompressionLib;
|
||||
|
||||
static shared_ptr<IntegerCODEC> codec = CODECFactory::getFromName("s4-bp128-dm");
|
||||
|
||||
|
||||
extern "C" {
|
||||
|
||||
|
||||
|
||||
size_t encode_native(
|
||||
uint32_t* begin,
|
||||
const size_t num_els,
|
||||
@@ -32,4 +34,14 @@ extern "C" {
|
||||
codec -> decodeArray(compressed_data, compressed_size, uncompressed, num_ints);
|
||||
return num_ints;
|
||||
}
|
||||
|
||||
size_t intersection_native(
|
||||
const uint32_t* left,
|
||||
const size_t left_size,
|
||||
const uint32_t* right,
|
||||
const size_t right_size,
|
||||
uint32_t* output) {
|
||||
return IntersectionFactory::getFromName("simd")(left, left_size, right, right_size, output);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user