| /dragonfly/contrib/zstd/lib/compress/ |
| HD | zstd_cwksp.h | 160 MEM_STATIC size_t ZSTD_cwksp_available_space(ZSTD_cwksp* ws); 162 MEM_STATIC void ZSTD_cwksp_assert_internal_consistency(ZSTD_cwksp* ws) { in ZSTD_cwksp_assert_internal_consistency() argument 163 (void)ws; in ZSTD_cwksp_assert_internal_consistency() 164 assert(ws->workspace <= ws->objectEnd); in ZSTD_cwksp_assert_internal_consistency() 165 assert(ws->objectEnd <= ws->tableEnd); in ZSTD_cwksp_assert_internal_consistency() 166 assert(ws->objectEnd <= ws->tableValidEnd); in ZSTD_cwksp_assert_internal_consistency() 167 assert(ws->tableEnd <= ws->allocStart); in ZSTD_cwksp_assert_internal_consistency() 168 assert(ws->tableValidEnd <= ws->allocStart); in ZSTD_cwksp_assert_internal_consistency() 169 assert(ws->allocStart <= ws->workspaceEnd); in ZSTD_cwksp_assert_internal_consistency() 202 ZSTD_cwksp* ws, ZSTD_cwksp_alloc_phase_e phase) { in ZSTD_cwksp_internal_advance_phase() argument [all …]
|
| /dragonfly/contrib/gcc-4.7/libgomp/ |
| HD | work.c | 40 struct gomp_work_share *ws; in alloc_work_share() local 46 ws = team->work_share_list_alloc; in alloc_work_share() 47 team->work_share_list_alloc = ws->next_free; in alloc_work_share() 48 return ws; in alloc_work_share() 52 ws = team->work_share_list_free; in alloc_work_share() 55 __asm ("" : "+r" (ws)); in alloc_work_share() 57 if (ws && ws->next_free) in alloc_work_share() 59 struct gomp_work_share *next = ws->next_free; in alloc_work_share() 60 ws->next_free = NULL; in alloc_work_share() 66 ws = team->work_share_list_free; in alloc_work_share() [all …]
|
| HD | iter_ull.c | 43 struct gomp_work_share *ws = thr->ts.work_share; in gomp_iter_ull_static_next() local 52 *pstart = ws->next_ull; in gomp_iter_ull_static_next() 53 *pend = ws->end_ull; in gomp_iter_ull_static_next() 55 return ws->next_ull == ws->end_ull; in gomp_iter_ull_static_next() 61 if (ws->chunk_size_ull == 0) in gomp_iter_ull_static_next() 69 if (__builtin_expect (ws->mode, 0) == 0) in gomp_iter_ull_static_next() 70 n = (ws->end_ull - ws->next_ull + ws->incr_ull - 1) / ws->incr_ull; in gomp_iter_ull_static_next() 72 n = (ws->next_ull - ws->end_ull - ws->incr_ull - 1) / -ws->incr_ull; in gomp_iter_ull_static_next() 95 s = s0 * ws->incr_ull + ws->next_ull; in gomp_iter_ull_static_next() 96 e = e0 * ws->incr_ull + ws->next_ull; in gomp_iter_ull_static_next() [all …]
|
| HD | iter.c | 42 struct gomp_work_share *ws = thr->ts.work_share; in gomp_iter_static_next() local 51 *pstart = ws->next; in gomp_iter_static_next() 52 *pend = ws->end; in gomp_iter_static_next() 54 return ws->next == ws->end; in gomp_iter_static_next() 60 if (ws->chunk_size == 0) in gomp_iter_static_next() 70 s = ws->incr + (ws->incr > 0 ? -1 : 1); in gomp_iter_static_next() 71 n = (ws->end - ws->next + s) / ws->incr; in gomp_iter_static_next() 94 s = (long)s0 * ws->incr + ws->next; in gomp_iter_static_next() 95 e = (long)e0 * ws->incr + ws->next; in gomp_iter_static_next() 110 s = ws->incr + (ws->incr > 0 ? -1 : 1); in gomp_iter_static_next() [all …]
|
| HD | ordered.c | 39 struct gomp_work_share *ws = thr->ts.work_share; in gomp_ordered_first() local 46 index = ws->ordered_cur + ws->ordered_num_used; in gomp_ordered_first() 49 ws->ordered_team_ids[index] = thr->ts.team_id; in gomp_ordered_first() 54 if (ws->ordered_num_used++ == 0) in gomp_ordered_first() 70 struct gomp_work_share *ws = thr->ts.work_share; in gomp_ordered_last() local 78 ws->ordered_owner = -1; in gomp_ordered_last() 81 if (--ws->ordered_num_used > 0) in gomp_ordered_last() 83 unsigned next = ws->ordered_cur + 1; in gomp_ordered_last() 86 ws->ordered_cur = next; in gomp_ordered_last() 88 next_id = ws->ordered_team_ids[next]; in gomp_ordered_last() [all …]
|
| HD | sections.c | 33 gomp_sections_init (struct gomp_work_share *ws, unsigned count) in gomp_sections_init() argument 35 ws->sched = GFS_DYNAMIC; in gomp_sections_init() 36 ws->chunk_size = 1; in gomp_sections_init() 37 ws->end = count + 1L; in gomp_sections_init() 38 ws->incr = 1; in gomp_sections_init() 39 ws->next = 1; in gomp_sections_init() 43 ws->mode = 1; in gomp_sections_init() 50 ws->mode = ((nthreads | ws->end) in gomp_sections_init() 54 ws->mode = 0; in gomp_sections_init()
|
| HD | loop.c | 35 gomp_loop_init (struct gomp_work_share *ws, long start, long end, long incr, in gomp_loop_init() argument 38 ws->sched = sched; in gomp_loop_init() 39 ws->chunk_size = chunk_size; in gomp_loop_init() 41 ws->end = ((incr > 0 && start > end) || (incr < 0 && start < end)) in gomp_loop_init() 43 ws->incr = incr; in gomp_loop_init() 44 ws->next = start; in gomp_loop_init() 47 ws->chunk_size *= incr; in gomp_loop_init() 60 if (__builtin_expect ((nthreads | ws->chunk_size) in gomp_loop_init() 63 ws->mode = 0; in gomp_loop_init() 65 ws->mode = ws->end < (LONG_MAX in gomp_loop_init() [all …]
|
| HD | loop_ull.c | 36 gomp_loop_ull_init (struct gomp_work_share *ws, bool up, gomp_ull start, in gomp_loop_ull_init() argument 40 ws->sched = sched; in gomp_loop_ull_init() 41 ws->chunk_size_ull = chunk_size; in gomp_loop_ull_init() 43 ws->end_ull = ((up && start > end) || (!up && start < end)) in gomp_loop_ull_init() 45 ws->incr_ull = incr; in gomp_loop_ull_init() 46 ws->next_ull = start; in gomp_loop_ull_init() 47 ws->mode = 0; in gomp_loop_ull_init() 50 ws->chunk_size_ull *= incr; in gomp_loop_ull_init() 63 if (__builtin_expect ((nthreads | ws->chunk_size_ull) in gomp_loop_ull_init() 66 ws->mode = ws->end_ull < (__LONG_LONG_MAX__ * 2ULL + 1 in gomp_loop_ull_init() [all …]
|
| /dragonfly/contrib/gcc-8.0/libgomp/ |
| HD | work.c | 41 struct gomp_work_share *ws; in alloc_work_share() local 47 ws = team->work_share_list_alloc; in alloc_work_share() 48 team->work_share_list_alloc = ws->next_free; in alloc_work_share() 49 return ws; in alloc_work_share() 53 ws = team->work_share_list_free; in alloc_work_share() 56 __asm ("" : "+r" (ws)); in alloc_work_share() 58 if (ws && ws->next_free) in alloc_work_share() 60 struct gomp_work_share *next = ws->next_free; in alloc_work_share() 61 ws->next_free = NULL; in alloc_work_share() 67 ws = team->work_share_list_free; in alloc_work_share() [all …]
|
| HD | iter_ull.c | 44 struct gomp_work_share *ws = thr->ts.work_share; in gomp_iter_ull_static_next() local 53 *pstart = ws->next_ull; in gomp_iter_ull_static_next() 54 *pend = ws->end_ull; in gomp_iter_ull_static_next() 56 return ws->next_ull == ws->end_ull; in gomp_iter_ull_static_next() 62 if (ws->chunk_size_ull == 0) in gomp_iter_ull_static_next() 70 if (__builtin_expect (ws->mode, 0) == 0) in gomp_iter_ull_static_next() 71 n = (ws->end_ull - ws->next_ull + ws->incr_ull - 1) / ws->incr_ull; in gomp_iter_ull_static_next() 73 n = (ws->next_ull - ws->end_ull - ws->incr_ull - 1) / -ws->incr_ull; in gomp_iter_ull_static_next() 96 s = s0 * ws->incr_ull + ws->next_ull; in gomp_iter_ull_static_next() 97 e = e0 * ws->incr_ull + ws->next_ull; in gomp_iter_ull_static_next() [all …]
|
| HD | iter.c | 43 struct gomp_work_share *ws = thr->ts.work_share; in gomp_iter_static_next() local 52 *pstart = ws->next; in gomp_iter_static_next() 53 *pend = ws->end; in gomp_iter_static_next() 55 return ws->next == ws->end; in gomp_iter_static_next() 61 if (ws->chunk_size == 0) in gomp_iter_static_next() 71 s = ws->incr + (ws->incr > 0 ? -1 : 1); in gomp_iter_static_next() 72 n = (ws->end - ws->next + s) / ws->incr; in gomp_iter_static_next() 95 s = (long)s0 * ws->incr + ws->next; in gomp_iter_static_next() 96 e = (long)e0 * ws->incr + ws->next; in gomp_iter_static_next() 111 s = ws->incr + (ws->incr > 0 ? -1 : 1); in gomp_iter_static_next() [all …]
|
| HD | ordered.c | 43 struct gomp_work_share *ws = thr->ts.work_share; in gomp_ordered_first() local 50 index = ws->ordered_cur + ws->ordered_num_used; in gomp_ordered_first() 53 ws->ordered_team_ids[index] = thr->ts.team_id; in gomp_ordered_first() 58 if (ws->ordered_num_used++ == 0) in gomp_ordered_first() 74 struct gomp_work_share *ws = thr->ts.work_share; in gomp_ordered_last() local 82 ws->ordered_owner = -1; in gomp_ordered_last() 85 if (--ws->ordered_num_used > 0) in gomp_ordered_last() 87 unsigned next = ws->ordered_cur + 1; in gomp_ordered_last() 90 ws->ordered_cur = next; in gomp_ordered_last() 92 next_id = ws->ordered_team_ids[next]; in gomp_ordered_last() [all …]
|
| HD | sections.c | 34 gomp_sections_init (struct gomp_work_share *ws, unsigned count) in gomp_sections_init() argument 36 ws->sched = GFS_DYNAMIC; in gomp_sections_init() 37 ws->chunk_size = 1; in gomp_sections_init() 38 ws->end = count + 1L; in gomp_sections_init() 39 ws->incr = 1; in gomp_sections_init() 40 ws->next = 1; in gomp_sections_init() 44 ws->mode = 1; in gomp_sections_init() 51 ws->mode = ((nthreads | ws->end) in gomp_sections_init() 55 ws->mode = 0; in gomp_sections_init()
|
| /dragonfly/sbin/routed/ |
| HD | output.c | 59 } ws; variable 312 naddr_ntoa(ws.to.sin_addr.s_addr)); in supply_write() 317 if (ws.a != NULL && ws.a->type == RIP_AUTH_MD5) in supply_write() 318 end_md5_auth(wb,ws.a); in supply_write() 319 if (output(wb->type, &ws.to, ws.ifp, wb->buf, in supply_write() 321 && ws.ifp != NULL) in supply_write() 322 if_sick(ws.ifp); in supply_write() 323 ws.npackets++; in supply_write() 327 clr_ws_buf(wb,ws.a); in supply_write() 345 && (ws.state & WS_ST_FLASH)) in supply_out() [all …]
|
| /dragonfly/contrib/gmp/mpn/generic/ |
| HD | toom_eval_pm2rexp.c | 31 #define DO_mpn_addlsh_n(dst,src,n,s,ws) mpn_addlsh_n(dst,dst,src,n,s) argument 34 DO_mpn_addlsh_n(mp_ptr dst, mp_srcptr src, mp_size_t n, unsigned int s, mp_ptr ws) in DO_mpn_addlsh_n() argument 40 __cy = mpn_lshift(ws,src,n,s); in DO_mpn_addlsh_n() 41 return __cy + mpn_add_n(dst,dst,ws,n); in DO_mpn_addlsh_n() 50 unsigned int s, mp_ptr ws) in mpn_toom_eval_pm2rexp() argument 60 ws[n] = mpn_lshift(ws, ap+n, n, s*(q-1)); in mpn_toom_eval_pm2rexp() 62 ASSERT_NOCARRY(mpn_add(ws,ws,n+1,ap+n*q,t)); in mpn_toom_eval_pm2rexp() 71 ws[n] += DO_mpn_addlsh_n(ws, ap+n*i, n, s*(q-i), rm); in mpn_toom_eval_pm2rexp() 74 neg = (mpn_cmp (rp, ws, n + 1) < 0) ? ~0 : 0; in mpn_toom_eval_pm2rexp() 78 mpn_add_n_sub_n (rp, rm, ws, rp, n + 1); in mpn_toom_eval_pm2rexp() [all …]
|
| HD | sqr.c | 42 mp_limb_t ws[mpn_toom2_sqr_itch (SQR_TOOM3_THRESHOLD_LIMIT-1)]; in mpn_sqr() local 44 mpn_toom2_sqr (p, a, n, ws); in mpn_sqr() 48 mp_ptr ws; in mpn_sqr() local 51 ws = TMP_SALLOC_LIMBS (mpn_toom3_sqr_itch (n)); in mpn_sqr() 52 mpn_toom3_sqr (p, a, n, ws); in mpn_sqr() 57 mp_ptr ws; in mpn_sqr() local 60 ws = TMP_SALLOC_LIMBS (mpn_toom4_sqr_itch (n)); in mpn_sqr() 61 mpn_toom4_sqr (p, a, n, ws); in mpn_sqr() 66 mp_ptr ws; in mpn_sqr() local 69 ws = TMP_SALLOC_LIMBS (mpn_toom6_sqr_itch (n)); in mpn_sqr() [all …]
|
| HD | mul_n.c | 39 mp_limb_t ws[mpn_toom22_mul_itch (MUL_TOOM33_THRESHOLD_LIMIT-1, in mpn_mul_n() local 42 mpn_toom22_mul (p, a, n, b, n, ws); in mpn_mul_n() 46 mp_ptr ws; in mpn_mul_n() local 49 ws = TMP_SALLOC_LIMBS (mpn_toom33_mul_itch (n, n)); in mpn_mul_n() 50 mpn_toom33_mul (p, a, n, b, n, ws); in mpn_mul_n() 55 mp_ptr ws; in mpn_mul_n() local 58 ws = TMP_SALLOC_LIMBS (mpn_toom44_mul_itch (n, n)); in mpn_mul_n() 59 mpn_toom44_mul (p, a, n, b, n, ws); in mpn_mul_n() 64 mp_ptr ws; in mpn_mul_n() local 67 ws = TMP_SALLOC_LIMBS (mpn_toom6_mul_n_itch (n)); in mpn_mul_n() [all …]
|
| HD | mul.c | 177 mp_ptr ws; in mpn_mul() local 180 ws = TMP_SALLOC_LIMBS (4 * vn); in mpn_mul() 189 mpn_toom42_mul (ws, up, 2 * vn, vp, vn, scratch); in mpn_mul() 192 cy = mpn_add_n (prodp, prodp, ws, vn); in mpn_mul() 193 MPN_COPY (prodp + vn, ws + vn, 2 * vn); in mpn_mul() 201 mpn_toom22_mul (ws, up, un, vp, vn, scratch); in mpn_mul() 203 mpn_toom32_mul (ws, up, un, vp, vn, scratch); in mpn_mul() 205 mpn_toom42_mul (ws, up, un, vp, vn, scratch); in mpn_mul() 207 cy = mpn_add_n (prodp, prodp, ws, vn); in mpn_mul() 208 MPN_COPY (prodp + vn, ws + vn, un); in mpn_mul() [all …]
|
| HD | toom63_mul.c | 77 #define TOOM_63_MUL_N_REC(p, a, b, n, ws) \ argument 81 #define TOOM_63_MUL_REC(p, a, na, b, nb, ws) \ argument 123 #define ws (scratch + 6 * n + 2) /* ??? */ in mpn_toom63_mul() macro 140 TOOM_63_MUL_N_REC(pp, v0, v1, n + 1, ws); /* A(-4)*B(-4) */ in mpn_toom63_mul() 141 TOOM_63_MUL_N_REC(r3, v2, v3, n + 1, ws); /* A(+4)*B(+4) */ in mpn_toom63_mul() 147 cy = mpn_add (ws, b0, n, b2, t); in mpn_toom63_mul() 149 if (cy == 0 && mpn_cmp (ws, b1, n) < 0) in mpn_toom63_mul() 151 cy = mpn_add_n_sub_n (v3, v1, b1, ws, n); in mpn_toom63_mul() 159 cy2 = mpn_add_n_sub_n (v3, v1, ws, b1, n); in mpn_toom63_mul() 164 v3[n] = cy + mpn_add_n (v3, ws, b1, n); in mpn_toom63_mul() [all …]
|
| HD | toom_interpolate_8pts.c | 58 #define DO_mpn_sublsh_n(dst,src,n,s,ws) mpn_sublsh_n (dst,src,n,s) argument 61 DO_mpn_sublsh_n (mp_ptr dst, mp_srcptr src, mp_size_t n, unsigned int s, mp_ptr ws) in DO_mpn_sublsh_n() argument 67 __cy = mpn_lshift (ws,src,n,s); in DO_mpn_sublsh_n() 68 return __cy + mpn_sub_n (dst,dst,ws,n); in DO_mpn_sublsh_n() 75 #define DO_mpn_subrsh(dst,nd,src,ns,s,ws) mpn_subrsh (dst,nd,src,ns,s) argument 78 #define DO_mpn_subrsh(dst,nd,src,ns,s,ws) \ argument 82 __cy = DO_mpn_sublsh_n (dst, src + 1, ns - 1, GMP_NUMB_BITS - s, ws); \ 117 mp_size_t spt, mp_ptr ws) in mpn_toom_interpolate_8pts() argument 126 DO_mpn_subrsh(r3+n, 2 * n + 1, pp, 2 * n, 4, ws); in mpn_toom_interpolate_8pts() 127 cy = DO_mpn_sublsh_n (r3, r1, spt, 12, ws); in mpn_toom_interpolate_8pts() [all …]
|
| /dragonfly/lib/libc/net/ |
| HD | nscache.c | 331 cached_mp_write_session ws; in __nss_mp_cache_write() local 344 ws = cache_info->get_mp_ws_func(); in __nss_mp_cache_write() 345 if (ws == INVALID_CACHED_MP_WRITE_SESSION) { in __nss_mp_cache_write() 349 ws = __open_cached_mp_write_session(¶ms, in __nss_mp_cache_write() 351 if (ws == INVALID_CACHED_MP_WRITE_SESSION) in __nss_mp_cache_write() 354 cache_info->set_mp_ws_func(ws); in __nss_mp_cache_write() 385 res = __cached_mp_write(ws, buffer, buffer_size); in __nss_mp_cache_write() 395 cached_mp_write_session ws; in __nss_mp_cache_write_submit() local 403 ws = cache_info->get_mp_ws_func(); in __nss_mp_cache_write_submit() 404 if (ws != INVALID_CACHED_MP_WRITE_SESSION) { in __nss_mp_cache_write_submit() [all …]
|
| /dragonfly/usr.sbin/nscd/ |
| HD | cachelib.c | 183 destroy_cache_mp_write_session(struct cache_mp_write_session_ *ws) in destroy_cache_mp_write_session() argument 189 assert(ws != NULL); in destroy_cache_mp_write_session() 190 while (!TAILQ_EMPTY(&ws->items)) { in destroy_cache_mp_write_session() 191 data_item = TAILQ_FIRST(&ws->items); in destroy_cache_mp_write_session() 192 TAILQ_REMOVE(&ws->items, data_item, entries); in destroy_cache_mp_write_session() 197 free(ws); in destroy_cache_mp_write_session() 217 struct cache_mp_write_session_ *ws; in destroy_cache_entry() local 255 ws = TAILQ_FIRST(&mp_entry->ws_head); in destroy_cache_entry() 256 TAILQ_REMOVE(&mp_entry->ws_head, ws, entries); in destroy_cache_entry() 257 destroy_cache_mp_write_session(ws); in destroy_cache_entry() [all …]
|
| /dragonfly/contrib/gdb-7/gdb/ |
| HD | fork-child.c | 436 struct target_waitstatus ws; in startup_inferior() local 437 memset (&ws, 0, sizeof (ws)); in startup_inferior() 438 event_ptid = target_wait (resume_ptid, &ws, 0); in startup_inferior() 440 if (ws.kind == TARGET_WAITKIND_IGNORE) in startup_inferior() 444 switch (ws.kind) in startup_inferior() 460 gdb_signal_to_name (ws.value.sig), in startup_inferior() 461 gdb_signal_to_string (ws.value.sig)); in startup_inferior() 467 if (ws.value.integer) in startup_inferior() 469 ws.value.integer); in startup_inferior() 476 xfree (ws.value.execd_pathname); in startup_inferior() [all …]
|
| /dragonfly/libexec/telnetd/ |
| HD | termstat.c | 514 struct winsize ws; in clientstat() local 531 ws.ws_col = parm1; in clientstat() 532 ws.ws_row = parm2; in clientstat() 533 (void) ioctl(pty, TIOCSWINSZ, (char *)&ws); in clientstat() 596 struct winsize ws; in defer_terminit() local 598 memset((char *)&ws, 0, sizeof(ws)); in defer_terminit() 599 ws.ws_col = def_col; in defer_terminit() 600 ws.ws_row = def_row; in defer_terminit() 601 (void) ioctl(pty, TIOCSWINSZ, (char *)&ws); in defer_terminit()
|
| /dragonfly/usr.bin/mail/ |
| HD | main.c | 324 struct winsize ws; in setscreensize() local 327 if (ioctl(1, TIOCGWINSZ, (char *)&ws) < 0) in setscreensize() 328 ws.ws_col = ws.ws_row = 0; in setscreensize() 337 else if (ws.ws_row != 0) in setscreensize() 338 screenheight = ws.ws_row; in setscreensize() 341 if ((realscreenheight = ws.ws_row) == 0) in setscreensize() 343 if ((screenwidth = ws.ws_col) == 0) in setscreensize()
|