Home
last modified time | relevance | path

Searched refs:found_key_ids (Results 1 – 4 of 4) sorted by relevance

/external/marisa-trie/tests/
Dc-test.c98 marisa_uint32 found_key_ids[8]; in TestTrie() local
172 found_key_ids, found_key_lengths, 8, &num_found_keys) == MARISA_OK); in TestTrie()
176 found_key_ids, found_key_lengths, 8, &num_found_keys) == MARISA_OK); in TestTrie()
178 ASSERT(found_key_ids[0] == key_ids[4]); in TestTrie()
180 ASSERT(found_key_ids[1] == key_ids[0]); in TestTrie()
189 found_key_ids, 8, &num_found_keys) == MARISA_OK); in TestTrie()
191 ASSERT(found_key_ids[0] == key_ids[4]); in TestTrie()
192 ASSERT(found_key_ids[1] == key_ids[1]); in TestTrie()
193 ASSERT(found_key_ids[2] == key_ids[0]); in TestTrie()
/external/marisa-trie/v0_1_5/tests/
Dc-test.c103 marisa_alpha_uint32 found_key_ids[8]; in TestTrie() local
182 found_key_ids, found_key_lengths, 8, &num_found_keys) == in TestTrie()
187 found_key_ids, found_key_lengths, 8, &num_found_keys) == in TestTrie()
190 ASSERT(found_key_ids[0] == key_ids[4]); in TestTrie()
192 ASSERT(found_key_ids[1] == key_ids[0]); in TestTrie()
202 found_key_ids, 8, &num_found_keys) == MARISA_ALPHA_OK); in TestTrie()
204 ASSERT(found_key_ids[0] == key_ids[4]); in TestTrie()
205 ASSERT(found_key_ids[1] == key_ids[1]); in TestTrie()
206 ASSERT(found_key_ids[2] == key_ids[0]); in TestTrie()
/external/marisa-trie/tools/
Dmarisa-benchmark.cc217 std::vector<marisa::UInt32> found_key_ids; in benchmark_find() local
219 found_key_ids.clear(); in benchmark_find()
220 const std::size_t num_keys = trie.find(keys[i].first, &found_key_ids); in benchmark_find()
221 if ((num_keys == 0) || (found_key_ids.back() != key_ids[i])) { in benchmark_find()
233 std::vector<marisa::UInt32> found_key_ids; in benchmark_predict_breadth_first() local
238 found_key_ids.clear(); in benchmark_predict_breadth_first()
241 keys[i].first, &found_key_ids, found_keys_ref); in benchmark_predict_breadth_first()
242 if ((num_keys == 0) || (found_key_ids.front() != key_ids[i])) { in benchmark_predict_breadth_first()
254 std::vector<marisa::UInt32> found_key_ids; in benchmark_predict_depth_first() local
259 found_key_ids.clear(); in benchmark_predict_depth_first()
[all …]
/external/marisa-trie/v0_1_5/tools/
Dmarisa_alpha-benchmark.cc217 std::vector<marisa_alpha::UInt32> found_key_ids; in benchmark_find() local
219 found_key_ids.clear(); in benchmark_find()
220 const std::size_t num_keys = trie.find(keys[i].first, &found_key_ids); in benchmark_find()
221 if ((num_keys == 0) || (found_key_ids.back() != key_ids[i])) { in benchmark_find()
233 std::vector<marisa_alpha::UInt32> found_key_ids; in benchmark_predict_breadth_first() local
238 found_key_ids.clear(); in benchmark_predict_breadth_first()
241 keys[i].first, &found_key_ids, found_keys_ref); in benchmark_predict_breadth_first()
242 if ((num_keys == 0) || (found_key_ids.front() != key_ids[i])) { in benchmark_predict_breadth_first()
254 std::vector<marisa_alpha::UInt32> found_key_ids; in benchmark_predict_depth_first() local
259 found_key_ids.clear(); in benchmark_predict_depth_first()
[all …]