Home
last modified time | relevance | path

Searched refs:num_nodes (Results 1 – 25 of 72) sorted by relevance

123

/third_party/skia/third_party/externals/abseil-cpp/absl/synchronization/internal/
Dgraphcycles_benchmark.cc27 const int num_nodes = state.range(0); in BM_StressTest() local
28 while (state.KeepRunningBatch(num_nodes)) { in BM_StressTest()
30 std::vector<absl::synchronization_internal::GraphId> nodes(num_nodes); in BM_StressTest()
31 for (int i = 0; i < num_nodes; i++) { in BM_StressTest()
34 for (int i = 0; i < num_nodes; i++) { in BM_StressTest()
35 int end = std::min(num_nodes, i + 5); in BM_StressTest()
/third_party/abseil-cpp/absl/synchronization/internal/
Dgraphcycles_benchmark.cc27 const int num_nodes = state.range(0); in BM_StressTest() local
28 while (state.KeepRunningBatch(num_nodes)) { in BM_StressTest()
30 std::vector<absl::synchronization_internal::GraphId> nodes(num_nodes); in BM_StressTest()
31 for (int i = 0; i < num_nodes; i++) { in BM_StressTest()
34 for (int i = 0; i < num_nodes; i++) { in BM_StressTest()
35 int end = std::min(num_nodes, i + 5); in BM_StressTest()
/third_party/ltp/testcases/kernel/lib/
Dnuma_helper.c152 int get_allowed_nodes_arr(int flag, int *num_nodes, int **nodes) in get_allowed_nodes_arr() argument
159 *num_nodes = 0; in get_allowed_nodes_arr()
195 (*nodes)[*num_nodes] = i; in get_allowed_nodes_arr()
196 (*num_nodes)++; in get_allowed_nodes_arr()
220 int num_nodes = 0; in get_allowed_nodes() local
223 ret = get_allowed_nodes_arr(flag, &num_nodes, &nodes); in get_allowed_nodes()
230 if (i < num_nodes) { in get_allowed_nodes()
247 int i, ret, num_nodes; in print_node_info() local
249 ret = get_allowed_nodes_arr(flag, &num_nodes, &allowed_nodes); in print_node_info()
252 for (i = 0; i < num_nodes; i++) in print_node_info()
/third_party/openssl/crypto/lhash/
Dlh_stats.c65 BIO_printf(out, "num_nodes = %u\n", lh->num_nodes); in OPENSSL_LH_stats_bio()
87 for (i = 0; i < lh->num_nodes; i++) { in OPENSSL_LH_node_stats_bio()
101 for (i = 0; i < lh->num_nodes; i++) { in OPENSSL_LH_node_usage_stats_bio()
109 BIO_printf(out, "%lu nodes used out of %u\n", n_used, lh->num_nodes); in OPENSSL_LH_node_usage_stats_bio()
114 (int)(total / lh->num_nodes), in OPENSSL_LH_node_usage_stats_bio()
115 (int)((total % lh->num_nodes) * 100 / lh->num_nodes), in OPENSSL_LH_node_usage_stats_bio()
Dlhash.c63 ret->num_nodes = MIN_NODES / 2; in OPENSSL_LH_new()
84 for (i = 0; i < lh->num_nodes; i++) { in OPENSSL_LH_free()
103 if ((lh->up_load <= (lh->num_items * LH_LOAD_MULT / lh->num_nodes)) && !expand(lh)) in OPENSSL_LH_insert()
149 if ((lh->num_nodes > MIN_NODES) && in OPENSSL_LH_delete()
150 (lh->down_load >= (lh->num_items * LH_LOAD_MULT / lh->num_nodes))) in OPENSSL_LH_delete()
191 for (i = lh->num_nodes - 1; i >= 0; i--) { in doall_util_fn()
240 lh->num_nodes++; in expand()
282 lh->num_nodes--; in contract()
/third_party/ltp/testcases/kernel/mem/lib/
Dmem.c174 int num_nodes, *nodes; in set_global_mempolicy() local
178 ret = get_allowed_nodes_arr(NH_MEMS|NH_CPUS, &num_nodes, &nodes); in set_global_mempolicy()
181 if (num_nodes < 2) { in set_global_mempolicy()
193 if (num_nodes == 2) { in set_global_mempolicy()
526 int num_nodes, *nodes; in test_ksm_merge_across_nodes() local
534 ret = get_allowed_nodes_arr(NH_MEMS, &num_nodes, &nodes); in test_ksm_merge_across_nodes()
537 if (num_nodes < 2) { in test_ksm_merge_across_nodes()
546 memory = SAFE_MALLOC(num_nodes * sizeof(char *)); in test_ksm_merge_across_nodes()
547 for (i = 0; i < num_nodes; i++) { in test_ksm_merge_across_nodes()
572 nr_pages * num_nodes); in test_ksm_merge_across_nodes()
[all …]
/third_party/mesa3d/src/util/tests/
Ddag_test.cpp69 init_nodes(struct dag *dag, struct node *nodes, unsigned num_nodes) in init_nodes() argument
71 for (unsigned i = 0; i < num_nodes; i++) { in init_nodes()
77 #define INIT_NODES(num_nodes) \ argument
78 typedef struct { int order[num_nodes]; } result_type; \
79 struct node node[(num_nodes)]; \
80 init_nodes(dag, node, (num_nodes))
/third_party/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_compiler_nir_ra.c140 unsigned num_nodes = etna_live_defs(impl, defs, live_map); in etna_ra_assign() local
141 struct ra_graph *g = ra_alloc_interference_graph(regs, num_nodes); in etna_ra_assign()
144 for (unsigned i = 0; i < num_nodes; i++) { in etna_ra_assign()
224 for (unsigned i = 0; i < num_nodes; i++) { in etna_ra_assign()
241 c->num_nodes = num_nodes; in etna_ra_assign()
249 for (unsigned i = 0; i < c->num_nodes; i++) { in etna_ra_finish()
/third_party/boost/boost/graph/detail/
Dconnected_components.hpp108 Parent p, OutputIterator header, Integer num_nodes) in build_components_header() argument
112 for (Integer v = 0; v != num_nodes; ++v) in build_components_header()
133 void link_components(Parent1 component, Parent2 header, Integer num_nodes, in link_components() argument
138 for (Integer v = 0; v != num_nodes; ++v) in link_components()
143 std::fill_n(header, num_components, num_nodes); in link_components()
147 for (Integer k = 0; k != num_nodes; ++k) in link_components()
/third_party/grpc/test/core/iomgr/
Dmpmcqueue_test.cc131 GPR_ASSERT(queue.num_nodes() == queue.init_num_nodes()); in test_space_efficiency()
136 GPR_ASSERT(queue.num_nodes() == queue.init_num_nodes()); in test_space_efficiency()
142 GPR_ASSERT(queue.num_nodes() == queue.init_num_nodes()); in test_space_efficiency()
150 GPR_ASSERT(queue.num_nodes() == queue.init_num_nodes() * 2); in test_space_efficiency()
157 GPR_ASSERT(queue.num_nodes() == queue.init_num_nodes() * 2); in test_space_efficiency()
163 GPR_ASSERT(queue.num_nodes() == queue.init_num_nodes() * 4); in test_space_efficiency()
169 GPR_ASSERT(queue.num_nodes() == queue.init_num_nodes() * 4); in test_space_efficiency()
/third_party/freetype/src/cache/
Dftcglyph.c36 family->num_nodes++; in FTC_GNode_Init()
48 if ( family && --family->num_nodes == 0 ) in FTC_GNode_UnselectFamily()
112 family->num_nodes = 0; in FTC_Family_Init()
205 family->num_nodes++; in FTC_GCache_Lookup()
209 if ( --family->num_nodes == 0 ) in FTC_GCache_Lookup()
Dftcmru.c174 list->num_nodes = 0; in FTC_MruList_Init()
189 FT_ASSERT( list->num_nodes == 0 ); in FTC_MruList_Reset()
244 if ( list->num_nodes >= list->max_nodes && list->max_nodes > 0 ) in FTC_MruList_New()
260 list->num_nodes--; in FTC_MruList_New()
273 list->num_nodes++; in FTC_MruList_New()
311 list->num_nodes--; in FTC_MruList_Remove()
/third_party/flutter/skia/third_party/externals/freetype/src/cache/
Dftcglyph.c37 family->num_nodes++; in FTC_GNode_Init()
49 if ( family && --family->num_nodes == 0 ) in FTC_GNode_UnselectFamily()
113 family->num_nodes = 0; in FTC_Family_Init()
206 family->num_nodes++; in FTC_GCache_Lookup()
210 if ( --family->num_nodes == 0 ) in FTC_GCache_Lookup()
Dftcmru.c175 list->num_nodes = 0; in FTC_MruList_Init()
190 FT_ASSERT( list->num_nodes == 0 ); in FTC_MruList_Reset()
245 if ( list->num_nodes >= list->max_nodes && list->max_nodes > 0 ) in FTC_MruList_New()
261 list->num_nodes--; in FTC_MruList_New()
274 list->num_nodes++; in FTC_MruList_New()
312 list->num_nodes--; in FTC_MruList_Remove()
/third_party/skia/third_party/externals/freetype/src/cache/
Dftcglyph.c36 family->num_nodes++; in FTC_GNode_Init()
48 if ( family && --family->num_nodes == 0 ) in FTC_GNode_UnselectFamily()
112 family->num_nodes = 0; in FTC_Family_Init()
205 family->num_nodes++; in FTC_GCache_Lookup()
209 if ( --family->num_nodes == 0 ) in FTC_GCache_Lookup()
Dftcmru.c174 list->num_nodes = 0; in FTC_MruList_Init()
189 FT_ASSERT( list->num_nodes == 0 ); in FTC_MruList_Reset()
244 if ( list->num_nodes >= list->max_nodes && list->max_nodes > 0 ) in FTC_MruList_New()
260 list->num_nodes--; in FTC_MruList_New()
273 list->num_nodes++; in FTC_MruList_New()
311 list->num_nodes--; in FTC_MruList_Remove()
/third_party/boost/libs/graph/example/
Dmin_max_paths.cpp54 const int num_nodes = 6; in main() local
61 Graph G(num_nodes); in main()
71 Graph G(edges, edges + n_edges, weights, num_nodes); in main()
97 adjacency_list<> tree(num_nodes); in main()
Dprim-example.cpp20 const int num_nodes = 5; in main() local
25 Graph g(num_nodes); in main()
35 Graph g(edges, edges + sizeof(edges) / sizeof(E), weights, num_nodes); in main()
/third_party/skia/third_party/externals/imgui/
Dimstb_rectpack.h130 …tbrp_init_target (stbrp_context *context, int width, int height, stbrp_node *nodes, int num_nodes);
188 int num_nodes; member
258 context->align = (context->width + context->num_nodes-1) / context->num_nodes; in stbrp_setup_allow_out_of_mem()
262 … stbrp_init_target(stbrp_context *context, int width, int height, stbrp_node *nodes, int num_nodes) in stbrp_init_target() argument
269 for (i=0; i < num_nodes-1; ++i) in stbrp_init_target()
278 context->num_nodes = num_nodes; in stbrp_init_target()
525 STBRP_ASSERT(count == context->num_nodes+2); in stbrp__skyline_pack_rectangle()
/third_party/mesa3d/src/imgui/
Dimstb_rectpack.h128 …tbrp_init_target (stbrp_context *context, int width, int height, stbrp_node *nodes, int num_nodes);
186 int num_nodes; member
256 context->align = (context->width + context->num_nodes-1) / context->num_nodes; in stbrp_setup_allow_out_of_mem()
260 … stbrp_init_target(stbrp_context *context, int width, int height, stbrp_node *nodes, int num_nodes) in stbrp_init_target() argument
267 for (i=0; i < num_nodes-1; ++i) in stbrp_init_target()
276 context->num_nodes = num_nodes; in stbrp_init_target()
516 STBRP_ASSERT(count == context->num_nodes+2); in stbrp__skyline_pack_rectangle()
/third_party/flutter/skia/third_party/externals/imgui/
Dimstb_rectpack.h121 …tbrp_init_target (stbrp_context *context, int width, int height, stbrp_node *nodes, int num_nodes);
179 int num_nodes; member
248 context->align = (context->width + context->num_nodes-1) / context->num_nodes; in stbrp_setup_allow_out_of_mem()
252 … stbrp_init_target(stbrp_context *context, int width, int height, stbrp_node *nodes, int num_nodes) in stbrp_init_target() argument
259 for (i=0; i < num_nodes-1; ++i) in stbrp_init_target()
268 context->num_nodes = num_nodes; in stbrp_init_target()
508 STBRP_ASSERT(count == context->num_nodes+2); in stbrp__skyline_pack_rectangle()
/third_party/boost/libs/graph/test/
Dcore_numbers_test.cpp80 int num_nodes = 3; in test_2() local
87 graph_t G(edge_array, edge_array + num_arcs, weights, num_nodes); in test_2()
114 int num_nodes = 5; in test_3() local
121 graph_t G(edge_array, edge_array + num_arcs, num_nodes); in test_3()
/third_party/ltp/testcases/kernel/syscalls/migrate_pages/
Dmigrate_pages02.c45 static int num_nodes; variable
84 for (i = 0; i < num_nodes; i++) in migrate_to_node()
269 ret = get_allowed_nodes_arr(NH_MEMS, &num_nodes, &nodes); in setup()
273 if (num_nodes < 2) in setup()
290 for (i = 0; i < num_nodes; i++) { in setup()
/third_party/mindspore/tests/st/gnn/
Dgat.py66 num_nodes, argument
76 self.num_nodes = Validator.check_positive_int(num_nodes)
/third_party/gstreamer/gstplugins_good/ext/raw1394/
Dgst1394probe.c38 int num_nodes = 0;
51 num_nodes = raw1394_get_nodecount (handle);
52 for (node = 0; node < num_nodes; node++) {

123