]> git.sesse.net Git - plocate/commitdiff
Turn off the SIMD temporarily.
authorSteinar H. Gunderson <steinar+git@gunderson.no>
Sun, 4 Oct 2020 21:42:59 +0000 (23:42 +0200)
committerSteinar H. Gunderson <steinar+git@gunderson.no>
Sun, 4 Oct 2020 21:42:59 +0000 (23:42 +0200)
plocate-build.cpp
plocate.cpp

index 0a19c1fbab84da487a020bd372c189163ae63ff8..d8594303ad5a4341ec551fbe9db67e3ba2815fd0 100644 (file)
@@ -130,14 +130,14 @@ void PostingListBuilder::append_block()
 {
        unsigned char buf[P4NENC_BOUND(128)];
        assert(pending_docids.size() == 128);
-       unsigned char *end = p4d1enc128v32(pending_docids.data(), 128, buf, last_block_end);
+       unsigned char *end = p4d1enc32(pending_docids.data(), 128, buf, last_block_end);
        encoded.append(reinterpret_cast<char *>(buf), reinterpret_cast<char *>(end));
 }
 
 void PostingListBuilder::write_header(uint32_t docid)
 {
        unsigned char buf[P4NENC_BOUND(1)];
-       size_t bytes = p4nd1enc128v32(&docid, 1, buf);
+       size_t bytes = p4nd1enc32(&docid, 1, buf);
        encoded.append(reinterpret_cast<char *>(buf), bytes);
 }
 
index fc8c4becdbde9f77f8490eef8a8e953426206b9b..dc64b384b330052e6fd23b53498a839b7f7b28e4 100644 (file)
@@ -388,7 +388,7 @@ void do_search_file(const vector<string> &needles, const char *filename)
                        unsigned char *pldata = reinterpret_cast<unsigned char *>(s.data());
                        if (in1.empty()) {
                                in1.resize(num + 128);
-                               p4nd1dec128v32(pldata, num, &in1[0]);
+                               p4nd1dec32(pldata, num, &in1[0]);
                                in1.resize(num);
                                dprintf("trigram '%c%c%c' (%zu bytes) decoded to %zu entries\n", trgm & 0xff,
                                        (trgm >> 8) & 0xff, (trgm >> 16) & 0xff, len, num);
@@ -396,7 +396,7 @@ void do_search_file(const vector<string> &needles, const char *filename)
                                if (in2.size() < num + 128) {
                                        in2.resize(num + 128);
                                }
-                               p4nd1dec128v32(pldata, num, &in2[0]);
+                               p4nd1dec32(pldata, num, &in2[0]);
 
                                out.clear();
                                set_intersection(in1.begin(), in1.end(), in2.begin(), in2.begin() + num,