Home
last modified time | relevance | path

Searched refs:ws (Results 1 – 25 of 419) sorted by relevance

12345678910>>...17

/netbsd-src/external/gpl3/gcc.old/dist/libgomp/
H A Dwork.c41 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 …]
H A Diter_ull.c44 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 …]
H A Diter.c43 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 …]
H A Dordered.c43 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 …]
H A Dsections.c37 gomp_sections_init (struct gomp_work_share *ws, unsigned count) in ialias_redirect()
39 ws->sched = GFS_DYNAMIC; in ialias_redirect()
40 ws->chunk_size = 1; in ialias_redirect()
41 ws->end = count + 1L; in ialias_redirect()
42 ws->incr = 1; in ialias_redirect()
43 ws->next = 1; in ialias_redirect()
47 ws->mode = 1; in ialias_redirect()
54 ws->mode = ((nthreads | ws->end) in ialias_redirect()
58 ws->mode = 0; in ialias_redirect()
/netbsd-src/external/gpl3/gcc/dist/libgomp/
H A Dwork.c41 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 …]
H A Diter_ull.c44 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 …]
H A Diter.c43 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 …]
H A Dordered.c43 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 …]
/netbsd-src/sbin/routed/
H A Doutput.c72 } ws; variable
333 naddr_ntoa(ws.to.sin_addr.s_addr)); in supply_write()
338 if (ws.a != 0 && ws.a->type == RIP_AUTH_MD5) in supply_write()
339 end_md5_auth(wb,ws.a); in supply_write()
340 if (output(wb->type, &ws.to, ws.ifp, wb->buf, in supply_write()
342 && ws.ifp != 0) in supply_write()
343 if_sick(ws.ifp); in supply_write()
344 ws.npackets++; in supply_write()
348 clr_ws_buf(wb,ws.a); in supply_write()
366 && (ws.state & WS_ST_FLASH)) in supply_out()
[all …]
/netbsd-src/external/lgpl3/gmp/dist/mpn/generic/
H A Dtoom_eval_pm2rexp.c41 #define DO_mpn_addlsh_n(dst,src,n,s,ws) mpn_addlsh_n(dst,dst,src,n,s) argument
44 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
50 __cy = mpn_lshift(ws,src,n,s); in DO_mpn_addlsh_n()
51 return __cy + mpn_add_n(dst,dst,ws,n); in DO_mpn_addlsh_n()
60 unsigned int s, mp_ptr ws) in mpn_toom_eval_pm2rexp() argument
70 ws[n] = mpn_lshift(ws, ap+n, n, s*(q-1)); in mpn_toom_eval_pm2rexp()
72 ASSERT_NOCARRY(mpn_add(ws,ws,n+1,ap+n*q,t)); in mpn_toom_eval_pm2rexp()
81 ws[n] += DO_mpn_addlsh_n(ws, ap+n*i, n, s*(q-i), rm); in mpn_toom_eval_pm2rexp()
84 neg = (mpn_cmp (rp, ws, n + 1) < 0) ? ~0 : 0; in mpn_toom_eval_pm2rexp()
88 mpn_add_n_sub_n (rp, rm, ws, rp, n + 1); in mpn_toom_eval_pm2rexp()
[all …]
H A Dsqr.c52 mp_limb_t ws[mpn_toom2_sqr_itch (SQR_TOOM3_THRESHOLD_LIMIT-1)]; in mpn_sqr() local
54 mpn_toom2_sqr (p, a, n, ws); in mpn_sqr()
58 mp_ptr ws; in mpn_sqr() local
61 ws = TMP_SALLOC_LIMBS (mpn_toom3_sqr_itch (n)); in mpn_sqr()
62 mpn_toom3_sqr (p, a, n, ws); in mpn_sqr()
67 mp_ptr ws; in mpn_sqr() local
70 ws = TMP_SALLOC_LIMBS (mpn_toom4_sqr_itch (n)); in mpn_sqr()
71 mpn_toom4_sqr (p, a, n, ws); in mpn_sqr()
76 mp_ptr ws; in mpn_sqr() local
79 ws = TMP_SALLOC_LIMBS (mpn_toom6_sqr_itch (n)); in mpn_sqr()
[all …]
H A Dmul_n.c49 mp_limb_t ws[mpn_toom22_mul_itch (MUL_TOOM33_THRESHOLD_LIMIT-1, in mpn_mul_n() local
52 mpn_toom22_mul (p, a, n, b, n, ws); in mpn_mul_n()
56 mp_ptr ws; in mpn_mul_n() local
59 ws = TMP_SALLOC_LIMBS (mpn_toom33_mul_itch (n, n)); in mpn_mul_n()
60 mpn_toom33_mul (p, a, n, b, n, ws); in mpn_mul_n()
65 mp_ptr ws; in mpn_mul_n() local
68 ws = TMP_SALLOC_LIMBS (mpn_toom44_mul_itch (n, n)); in mpn_mul_n()
69 mpn_toom44_mul (p, a, n, b, n, ws); in mpn_mul_n()
74 mp_ptr ws; in mpn_mul_n() local
77 ws = TMP_SALLOC_LIMBS (mpn_toom6_mul_n_itch (n)); in mpn_mul_n()
[all …]
H A Dmul.c226 mp_ptr ws; in mpn_mul() local
229 ws = TMP_SALLOC_LIMBS (4 * vn); in mpn_mul()
238 mpn_toom42_mul (ws, up, 2 * vn, vp, vn, scratch); in mpn_mul()
241 cy = mpn_add_n (prodp, prodp, ws, vn); in mpn_mul()
242 MPN_COPY (prodp + vn, ws + vn, 2 * vn); in mpn_mul()
250 mpn_toom22_mul (ws, up, un, vp, vn, scratch); in mpn_mul()
252 mpn_toom32_mul (ws, up, un, vp, vn, scratch); in mpn_mul()
254 mpn_toom42_mul (ws, up, un, vp, vn, scratch); in mpn_mul()
256 cy = mpn_add_n (prodp, prodp, ws, vn); in mpn_mul()
257 MPN_COPY (prodp + vn, ws + vn, un); in mpn_mul()
[all …]
H A Dtoom63_mul.c87 #define TOOM_63_MUL_N_REC(p, a, b, n, ws) \ argument
91 #define TOOM_63_MUL_REC(p, a, na, b, nb, ws) \ argument
133 #define ws (scratch + 6 * n + 2) /* ??? */ in mpn_toom63_mul() macro
150 TOOM_63_MUL_N_REC(pp, v0, v1, n + 1, ws); /* A(-4)*B(-4) */ in mpn_toom63_mul()
151 TOOM_63_MUL_N_REC(r3, v2, v3, n + 1, ws); /* A(+4)*B(+4) */ in mpn_toom63_mul()
157 cy = mpn_add (ws, b0, n, b2, t); in mpn_toom63_mul()
159 if (cy == 0 && mpn_cmp (ws, b1, n) < 0) in mpn_toom63_mul()
161 cy = mpn_add_n_sub_n (v3, v1, b1, ws, n); in mpn_toom63_mul()
169 cy2 = mpn_add_n_sub_n (v3, v1, ws, b1, n); in mpn_toom63_mul()
174 v3[n] = cy + mpn_add_n (v3, ws, b1, n); in mpn_toom63_mul()
[all …]
H A Dtoom54_mul.c50 #define TOOM_54_MUL_N_REC(p, a, b, n, ws) \ argument
54 #define TOOM_54_MUL_REC(p, a, na, b, nb, ws) \ argument
92 #define ws (scratch + 6 * n + 2) /* ??? */ in mpn_toom54_mul() macro
100 TOOM_54_MUL_N_REC(pp, v0, v1, n + 1, ws); /* A(-4)*B(-4) */ in mpn_toom54_mul()
101 TOOM_54_MUL_N_REC(r3, v2, v3, n + 1, ws); /* A(+4)*B(+4) */ in mpn_toom54_mul()
107 TOOM_54_MUL_N_REC(pp, v0, v1, n + 1, ws); /* A(-1)*B(-1) */ in mpn_toom54_mul()
108 TOOM_54_MUL_N_REC(r7, v2, v3, n + 1, ws); /* A(1)*B(1) */ in mpn_toom54_mul()
114 TOOM_54_MUL_N_REC(pp, v0, v1, n + 1, ws); /* A(-2)*B(-2) */ in mpn_toom54_mul()
115 TOOM_54_MUL_N_REC(r5, v2, v3, n + 1, ws); /* A(+2)*B(+2) */ in mpn_toom54_mul()
119 TOOM_54_MUL_N_REC(pp, ap, bp, n, ws); in mpn_toom54_mul()
[all …]
H A Dtoom_interpolate_8pts.c68 #define DO_mpn_sublsh2_n(dst,src,n,ws) mpn_sublsh2_n_ip1(dst,src,n) argument
70 #define DO_mpn_sublsh2_n(dst,src,n,ws) DO_mpn_sublsh_n(dst,src,n,2,ws) argument
74 #define DO_mpn_sublsh_n(dst,src,n,s,ws) mpn_sublsh_n (dst,dst,src,n,s) argument
77 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
83 __cy = mpn_lshift (ws,src,n,s); in DO_mpn_sublsh_n()
84 return __cy + mpn_sub_n (dst,dst,ws,n); in DO_mpn_sublsh_n()
91 #define DO_mpn_subrsh(dst,nd,src,ns,s,ws) mpn_subrsh (dst,nd,src,ns,s) argument
94 #define DO_mpn_subrsh(dst,nd,src,ns,s,ws) \ argument
98 __cy = DO_mpn_sublsh_n (dst, src + 1, ns - 1, GMP_NUMB_BITS - s, ws); \
133 mp_size_t spt, mp_ptr ws) in mpn_toom_interpolate_8pts() argument
[all …]
/netbsd-src/external/bsd/libarchive/dist/libarchive/test/
H A Dtest_acl_text.c237 wchar_t *ws = NULL; in convert_s_to_ws() local
241 ws = malloc(len * sizeof(wchar_t)); in convert_s_to_ws()
242 assert(mbstowcs(ws, s, len) != (size_t)-1); in convert_s_to_ws()
245 return (ws); in convert_s_to_ws()
253 wchar_t *ws; in compare_acl_text() local
256 ws = convert_s_to_ws(s); in compare_acl_text()
263 assertEqualWString(wtext, ws); in compare_acl_text()
269 free(ws); in compare_acl_text()
275 wchar_t *ws = NULL; in DEFINE_TEST() local
300 ws = convert_s_to_ws(acltext[5]); in DEFINE_TEST()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Mips/
H A DMipsMSAInstrFormats.td31 bits<5> ws;
38 let Inst{15-11} = ws;
44 bits<5> ws;
51 let Inst{15-11} = ws;
57 bits<5> ws;
64 let Inst{15-11} = ws;
70 bits<5> ws;
77 let Inst{15-11} = ws;
105 bits<5> ws;
110 let Inst{15-11} = ws;
[all …]
/netbsd-src/external/bsd/flex/dist/examples/fastwc/
H A Dwc4.l3 ws [ \t]
5 word {ws}*{nonws}+
6 words {word}{ws}+
12 {word}{ws}* ++wc; cc += yyleng;
13 {word}{ws}*\n ++wc; cc += yyleng; ++lc;
14 {words}{word}{ws}* wc += 2; cc += yyleng;
15 {words}{word}{ws}*\n wc += 2; cc += yyleng; ++lc;
16 {words}{2}{word}{ws}* wc += 3; cc += yyleng;
17 {words}{2}{word}{ws}*\n wc += 3; cc += yyleng; ++lc;
18 {words}{3}{word}{ws}* wc += 4; cc += yyleng;
[all …]
H A Dwc3.l3 ws [ \t]
5 word {ws}*{nonws}+
6 words {word}{ws}+
12 {word}{ws}* cc += yyleng; ++wc;
13 {word}{ws}*\n cc += yyleng; ++wc; ++lc;
14 {words}{word}{ws}* cc += yyleng; wc += 2;
15 {words}{2}{word}{ws}* cc += yyleng; wc += 3;
16 {words}{3}{word}{ws}* cc += yyleng; wc += 4;
18 {ws}+ cc += yyleng;
H A Dwc5.l3 ws [ \t]
5 word {ws}*{nonws}+
6 words {word}{ws}+
12 {word}{ws}* cc += yyleng; ++wc;
13 {word}{ws}*\n cc += yyleng; ++wc; ++lc;
15 {words}{2}{word}{ws}* cc += yyleng; wc += 3;
16 {words}{3}{word}{ws}* cc += yyleng; wc += 4;
18 {ws}+ cc += yyleng;
/netbsd-src/usr.bin/resize/
H A Dresize.h59 #define TTYSIZE_ROWS(ws) (ws).ws_row argument
60 #define TTYSIZE_COLS(ws) (ws).ws_col argument
61 #define SET_TTYSIZE(fd, ws) ioctl((fd), TIOCSWINSZ, &(ws)) argument
81 #define setup_winsize(ws, row, col, xpixel, ypixel) \ argument
82 (void)((ws).ws_row = row, \
83 (ws).ws_col = col, \
84 (ws).ws_xpixel = xpixel, \
85 (ws).ws_ypixel = ypixel)
/netbsd-src/external/bsd/libarchive/dist/libarchive/
H A Darchive_windows.c124 wchar_t *ws; in __la_win_permissive_name() local
137 ws = __la_win_permissive_name_w(wn); in __la_win_permissive_name()
139 return (ws); in __la_win_permissive_name()
146 wchar_t *ws, *wsp; in __la_win_permissive_name_w() local
203 ws = wsp = malloc(slen * sizeof(wchar_t)); in __la_win_permissive_name_w()
204 if (ws == NULL) { in __la_win_permissive_name_w()
221 return (ws); in __la_win_permissive_name_w()
309 wchar_t *ws; in __la_open() local
316 ws = NULL; in __la_open()
327 ws = __la_win_permissive_name(path); in __la_open()
[all …]
/netbsd-src/sys/kern/
H A Dcore_elf32.c119 struct writesegs_state ws; in ELFNAMEEND() local
225 ws.secoff = notestart + notesize; in ELFNAMEEND()
226 ws.psections = psections; in ELFNAMEEND()
227 ws.npsections = npsections - 1; in ELFNAMEEND()
228 ws.p = l->l_proc; in ELFNAMEEND()
230 (l->l_proc, ELFNAMEEND(coredump_getseghdrs), &ws), ENOSYS, error); in ELFNAMEEND()
233 if (ws.npsections != 0) { in ELFNAMEEND()
240 ws.psections->p_type = PT_NOTE; in ELFNAMEEND()
241 ws.psections->p_offset = notestart; in ELFNAMEEND()
242 ws.psections->p_vaddr = 0; in ELFNAMEEND()
[all …]

12345678910>>...17