diff options
author | Paul Masurel <paul.masurel@gmail.com> | 2016-02-28 12:47:28 +0900 |
---|---|---|
committer | Paul Masurel <paul.masurel@gmail.com> | 2016-02-28 12:47:28 +0900 |
commit | 7af27bd927382a156f2bd7700c21fdb7ed501b4d (patch) | |
tree | eca5a8e72925c4f49fe96a2ba2aa7d511f3465d3 /cpp | |
parent | 2876afd8f899a905798cefe17cf35df1dd041b87 (diff) |
blop
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/encode.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/cpp/encode.cpp b/cpp/encode.cpp index 9bf0ad7..c2a4201 100644 --- a/cpp/encode.cpp +++ b/cpp/encode.cpp @@ -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); + } + } |