/freebsd-10.0-release/contrib/gcclibs/libgomp/ |
H A D | ordered.c | 46 if (team == NULL || team->nthreads == 1) 50 if (index >= team->nthreads) 51 index -= team->nthreads; 77 if (team == NULL || team->nthreads == 1) 87 if (next == team->nthreads) 112 if (team == NULL || team->nthreads == 1) 130 if (ws->ordered_num_used < team->nthreads) 133 if (index >= team->nthreads) 134 index -= team->nthreads; 139 if (index == team->nthreads) [all...] |
H A D | team.c | 137 new_team (unsigned nthreads, struct gomp_work_share *work_share) argument 142 size = sizeof (*team) + nthreads * sizeof (team->ordered_release[0]); 152 team->nthreads = nthreads; 153 gomp_barrier_init (&team->barrier, nthreads); 178 gomp_team_start (void (*fn) (void *), void *data, unsigned nthreads, argument 190 team = new_team (nthreads, work_share); 203 if (nthreads == 1) 217 if (nthreads <= old_threads_used) 218 n = nthreads; [all...] |
H A D | iter.c | 46 unsigned long nthreads = team ? team->nthreads : 1; local 52 if (nthreads == 1) 79 q = n / nthreads; 80 q += (q * nthreads != n); 115 /* Initial guess is a C sized chunk positioned nthreads iterations 117 s0 = (thr->ts.static_trip * nthreads + i) * c; 238 unsigned long nthreads = team ? team->nthreads : 1; local 246 q = (n + nthreads 272 unsigned long nthreads = team ? team->nthreads : 1; local [all...] |
H A D | parallel.c | 88 return team ? team->nthreads : 1; 116 if (team->nthreads > 1)
|
H A D | work.c | 39 gomp_new_work_share (bool ordered, unsigned nthreads) argument 46 size += nthreads * sizeof (ws->ordered_team_ids[0]); 130 ws = gomp_new_work_share (ordered, team->nthreads); 208 if (completed == team->nthreads)
|
H A D | libgomp.h | 185 unsigned nthreads; member in struct:gomp_team
|
/freebsd-10.0-release/cddl/contrib/opensolaris/tools/ctf/cvt/ |
H A D | barrier.c | 49 barrier_init(barrier_t *bar, int nthreads) argument 59 bar->bar_nthr = nthreads;
|
/freebsd-10.0-release/cddl/contrib/opensolaris/lib/libzpool/common/ |
H A D | taskq.c | 191 taskq_create(const char *name, int nthreads, pri_t pri, argument 199 ASSERT3S(nthreads, >=, 0); 200 ASSERT3S(nthreads, <=, 100); 201 pct = MIN(nthreads, 100); 204 nthreads = (sysconf(_SC_NPROCESSORS_ONLN) * pct) / 100; 205 nthreads = MAX(nthreads, 1); /* need at least 1 thread */ 207 ASSERT3S(nthreads, >=, 1); 216 tq->tq_active = nthreads; 217 tq->tq_nthreads = nthreads; 242 int nthreads = tq->tq_nthreads; local [all...] |
/freebsd-10.0-release/tools/tools/netrate/netreceive/ |
H A D | netreceive.c | 72 fprintf(stderr, "netreceive port [nthreads]\n"); 127 make_threads(int *s, int nsock, int nthreads) argument 129 int i, si, nt = nsock * nthreads; 159 main_thread(struct td_desc **tp, int nsock, int nthreads) argument 168 int i, nt = nsock * nthreads; 201 int error, v, nthreads = 1; local 219 nthreads = strtoul(argv[2], &dummy, 10); 220 if (nthreads < 1 || nthreads > 64) 267 nsock, nthreads, (u_shor [all...] |
/freebsd-10.0-release/sys/cddl/compat/opensolaris/kern/ |
H A D | opensolaris_taskq.c | 65 taskq_create(const char *name, int nthreads, pri_t pri, int minalloc __unused, argument 71 nthreads = MAX((mp_ncpus * nthreads) / 100, 1); 76 (void) taskqueue_start_threads(&tq->tq_queue, nthreads, pri, "%s", name); 82 taskq_create_proc(const char *name, int nthreads, pri_t pri, int minalloc, argument 86 return (taskq_create(name, nthreads, pri, minalloc, maxalloc, flags));
|
/freebsd-10.0-release/tools/regression/lib/libc/resolv/ |
H A D | resolv.c | 75 "Usage: %s [-AdHIr] [-h <nhosts>] [-n <nthreads>] <file> ...\n", 247 int nthreads = NTHREADS; local 272 nthreads = atoi(optarg); 287 if ((nleft = malloc(nthreads * sizeof(int))) == NULL) 295 for (i = 0; i < nthreads; i++) { 302 for (i = 0; i < nthreads; i++) {
|
/freebsd-10.0-release/usr.bin/sort/ |
H A D | sort.h | 58 extern size_t nthreads;
|
H A D | radixsort.c | 140 if (nthreads > 1) 148 if (nthreads > 1) 599 if (nthreads < 2) { 606 for(i = 0; i < nthreads; ++i) { 629 for(i = 0; i < nthreads; ++i) 641 size_t nthreads_save = nthreads; 643 nthreads = 1; 645 if (nthreads > 1) { 677 if (nthreads > 1) { 682 nthreads [all...] |
H A D | file.c | 1546 if (nthreads < 2 || list->count < MT_SORT_THRESHOLD) { 1547 size_t nthreads_save = nthreads; 1548 nthreads = 1; 1556 nthreads = nthreads_save; 1563 parts = sort_malloc(sizeof(struct sort_list*) * nthreads); 1565 avgsize = list->count / nthreads; 1571 for (i = 0; i < nthreads; ++i) { 1579 sz = (i == nthreads - 1) ? list->count - cstart : 1593 for (i = 0; i < nthreads; ++i) { 1617 for (i = 0; i < nthreads; [all...] |
H A D | sort.c | 107 size_t nthreads = 1; variable 293 nthreads = ncpu; 1104 nthreads = (size_t)(atoi(optarg)); 1105 if (nthreads < 1) 1106 nthreads = 1; 1107 if (nthreads > 1024) 1108 nthreads = 1024; 1213 nthreads = 1; 1255 nthreads = 1;
|
/freebsd-10.0-release/sys/mips/rmi/ |
H A D | fmn.c | 87 int nthreads; /* number of threads started */ member in struct:msgring_thread 301 if(nt >= mthd->nthreads) { 352 ++mthd->nthreads; /* Active thread count */ 359 msgrng_setconfig(mthd->running, mthd->nthreads); 368 msgrng_setconfig(mthd->running, mthd->nthreads); 397 mthd->running = mthd->nthreads = 0;
|
/freebsd-10.0-release/contrib/jemalloc/include/jemalloc/internal/ |
H A D | ctl.h | 35 unsigned nthreads; member in struct:ctl_arena_stats_s
|
H A D | arena.h | 317 unsigned nthreads; member in struct:arena_s 322 * 1) Thread asssignment (modifies nthreads) is protected by
|
/freebsd-10.0-release/tools/tools/netmap/ |
H A D | pkt-gen.c | 83 int nthreads; member in struct:glob_arg 531 if (targ->g->nthreads > 1) { 626 if (targ->g->nthreads > 1) { 769 int i, n = targ->g->npackets / targ->g->nthreads, sent = 0; 1089 targs = calloc(g->nthreads, sizeof(*targs)); 1094 for (i = 0; i < g->nthreads; i++) { 1114 tifreq.nr_ringid = (g->nthreads > 1) ? (i | NETMAP_HW_RING) : 0; 1132 targs[i].qfirst = (g->nthreads > 1) ? i : 0; 1133 targs[i].qlast = (g->nthreads > 1) ? i+1 : 1181 for (i = 0; i < g->nthreads; [all...] |
/freebsd-10.0-release/contrib/jemalloc/src/ |
H A D | ctl.c | 376 {NAME("nthreads"), CTL(stats_arenas_i_nthreads)}, 532 sstats->nthreads += astats->nthreads; 631 ctl_stats.arenas[ctl_stats.narenas].nthreads = 0; 638 ctl_stats.arenas[i].nthreads = arenas[i]->nthreads; 640 ctl_stats.arenas[i].nthreads = 0; 1199 arenas[oldind]->nthreads--; 1200 arenas[newind]->nthreads++; 1640 CTL_RO_GEN(stats_arenas_i_nthreads, ctl_stats.arenas[mib[2]].nthreads, unsigne [all...] |
H A D | stats.c | 208 unsigned nthreads; local 219 CTL_I_GET("stats.arenas.0.nthreads", &nthreads, unsigned); 221 "assigned threads: %u\n", nthreads);
|
H A D | jemalloc.c | 170 if (arenas[i]->nthreads < 171 arenas[choose]->nthreads) 187 if (arenas[choose]->nthreads == 0 198 ret->nthreads++; 203 ret->nthreads++; 285 arena->nthreads--;
|
/freebsd-10.0-release/contrib/gdb/gdb/ |
H A D | gdb_thread_db.h | 238 int nthreads; /* Total number of threads in use. */ member in struct:td_ta_stats
|
H A D | procfs.c | 3030 int nthreads = 0; local 3032 if (ioctl (pi->ctl_fd, PIOCNTHR, &nthreads) < 0) 3035 return nthreads; 3275 int nthreads, i; local 3290 nthreads = proc_get_nthreads (pi); 3291 if (nthreads < 2) 3294 threads = xmalloc (nthreads * sizeof (tid_t)); 3299 for (i = 0; i < nthreads; i++)
|
/freebsd-10.0-release/contrib/gcc/ |
H A D | omp-low.c | 2768 q = n / nthreads; 2769 q += (q * nthreads != n); 2787 tree l0, l1, l2, n, q, s0, e0, e, t, nthreads, threadid; 2812 nthreads = get_formal_tmp_var (t, &list); 2842 t = build2 (TRUNC_DIV_EXPR, type, n, nthreads); 2845 t = build2 (MULT_EXPR, type, q, nthreads); 2939 s0 = (trip * nthreads + threadid) * CHUNK; 2959 tree trip, nthreads, threadid; 2989 nthreads = get_formal_tmp_var (t, &list); 3034 t = build2 (MULT_EXPR, type, trip, nthreads); 2786 tree l0, l1, l2, n, q, s0, e0, e, t, nthreads, threadid; local 2958 tree trip, nthreads, threadid; local [all...] |