Lines Matching refs:total
263 TextIdx total = 0; in durchschlag_prepare() local
270 TextIdx next_total = total + delta; in durchschlag_prepare()
271 if (next_total <= total) fatal("corpus is too large"); in durchschlag_prepare()
272 total = next_total; in durchschlag_prepare()
273 offsets.push_back(total); in durchschlag_prepare()
276 if (total < sliceLen) fatal("slice_len is larger than corpus size"); in durchschlag_prepare()
277 TextIdx end = total - static_cast<TextIdx>(sliceLen) + 1; in durchschlag_prepare()
330 return {total, sliceLen, static_cast<TextIdx>(map.size()), in durchschlag_prepare()
343 TextIdx total = 0; in durchschlag_prepare() local
350 TextIdx next_total = total + delta; in durchschlag_prepare()
351 if (next_total <= total) fatal("corpus is too large"); in durchschlag_prepare()
352 total = next_total; in durchschlag_prepare()
353 offsets.push_back(total); in durchschlag_prepare()
356 if (total < sliceLen) fatal("slice_len is larger than corpus size"); in durchschlag_prepare()
358 TextIdx end = total - sliceLen + 1; in durchschlag_prepare()
359 std::vector<TextIdx> sliceMap(total); in durchschlag_prepare()
362 while (current <= total) { in durchschlag_prepare()
386 return {total, sliceLen, counter, std::move(offsets), std::move(sliceMap)}; in durchschlag_prepare()
390 TextIdx total = static_cast<TextIdx>(data.size()); in durchschlag_index() local
391 if (total != data.size()) fatal("corpus is too large"); in durchschlag_index()
392 saidx_t saTotal = static_cast<saidx_t>(total); in durchschlag_index()
394 if (static_cast<TextIdx>(saTotal) != total) fatal("corpus is too large"); in durchschlag_index()
395 std::vector<TextIdx> sa(total); in durchschlag_index()
401 std::vector<TextIdx> isa(total); in durchschlag_index()
402 for (TextIdx i = 0; i < total; ++i) isa[sa[i]] = i; in durchschlag_index()
405 std::vector<TextIdx> lcp(total); in durchschlag_index()
407 lcp[total - 1] = 0; in durchschlag_index()
408 for (TextIdx i = 0; i < total; ++i) { in durchschlag_index()
410 if (current == total - 1) { in durchschlag_index()
415 while ((i + k < total) && (j + k < total) && (data[i + k] == data[j + k])) { in durchschlag_index()
453 TextIdx total = context.dataSize; in durchschlagGenerateExclusive() local
469 if (targetSize < blockLen || total < blockLen) { in durchschlagGenerateExclusive()
473 TextIdx end = total - sliceLen + 1; in durchschlagGenerateExclusive()
559 TextIdx total = context.dataSize; in durchschlagGenerateCollaborative() local
575 if (targetSize < blockLen || total < blockLen) { in durchschlagGenerateCollaborative()
579 TextIdx end = total - sliceLen + 1; in durchschlagGenerateCollaborative()
667 TextIdx total = context.dataSize; in durchschlag_distill() local
668 TextIdx end = total - sliceLen + 1; in durchschlag_distill()
709 TextIdx total = context.dataSize; in durchschlag_purify() local
710 TextIdx end = total - sliceLen + 1; in durchschlag_purify()
715 for (TextIdx readPos = 0; readPos < total; ++readPos) { in durchschlag_purify()