Home
last modified time | relevance | path

Searched refs:p2 (Results 1 – 25 of 296) sorted by relevance

12345678910>>...12

/illumos-gate/usr/src/cmd/eqn/
H A Dsqrt.c20 sqrt(int p2) in sqrt() argument
25 nps = EFFPS(((eht[p2]*9)/10+(resolution/POINT-1))/(resolution/POINT)); in sqrt()
27 yyval = p2; in sqrt()
32 yyval, p2, ebase[yyval], eht[yyval]); in sqrt()
36 nrwid(p2, ps, p2); in sqrt()
39 "(rn'\\v'.2m'\\s%d", yyval, ebase[p2], nps, p2, ps); in sqrt()
40 printf("\\v'%du'\\h'-\\n(%du'\\*(%d\n", -ebase[p2], p2, p2); in sqrt()
44 p2, ebase[p2], -eht[p2], p2); in sqrt()
45 printf("\\v'%du'\\h'-\\n(%du'\\*(%d\n", eht[p2]-ebase[p2], p2, p2); in sqrt()
46 eht[p2] += VERT(1); in sqrt()
[all …]
H A Dover.c20 boverb(int p1, int p2) in boverb() argument
28 h = eht[p1] + eht[p2] + d; in boverb()
31 h = eht[p1] + eht[p2]; in boverb()
33 b = eht[p2] - d; in boverb()
36 yyval, p1, p2, b, h); in boverb()
38 nrwid(p2, ps, p2); in boverb()
40 printf(".if \\n(%d>\\n(%d .nr %d \\n(%d\n", p2, treg, treg, p2); in boverb()
45 yyval, eht[p2]-ebase[p2]-d, treg, p2, p2); in boverb()
48 p2, p1, -(eht[p2]-ebase[p2]+d+ebase[p1]), p1); in boverb()
53 p2, p1, -eht[p2]+ebase[p2]-ebase[p1], p1); in boverb()
[all …]
H A Dfromto.c20 fromto(int p1, int p2, int p3) in fromto() argument
32 if (p2 > 0) { in fromto()
33 nrwid(p2, pss, p2); in fromto()
35 p2, yyval, yyval, p2); in fromto()
36 eht[yyval] += eht[p2]; in fromto()
37 b = eht[p2]; in fromto()
46 if (p2 > 0) { in fromto()
48 eht[p2]-ebase[p2]+b1, yyval, p2, pss, p2, EFFPS(ps)); in fromto()
50 yyval, p2, -(eht[p2]-ebase[p2]+b1)); in fromto()
69 yyval, p1, p2, p3, eht[yyval], ebase[yyval]); in fromto()
[all …]
H A Dshift.c32 h2 = eht[p2]; in bshiftb()
33 b2 = ebase[p2]; in bshiftb()
55 if (rfont[p2] == ITAL) in bshiftb()
92 if (rfont[p2] == ITAL) in bshiftb()
100 ofree(p2); in bshiftb()
129 h2 = eht[p2]; b2 = ebase[p2]; in shift2()
158 printf(".ds %d \\|\\*(%d\n", p2, p2); in shift2()
162 nrwid(p2, effps, p2); in shift2()
171 printf(".if \\n(%d>\\n(%d .nr %d \\n(%d\n", p2, treg, treg, p2); in shift2()
174 p1, subsh, effps, p2, p2, -subsh+supsh); in shift2()
[all …]
H A Deqnbox.c20 eqnbox(int p1, int p2, int lu) in eqnbox() argument
26 b = max(ebase[p1], ebase[p2]); in eqnbox()
27 eht[yyval] = h = b + max(eht[p1]-ebase[p1], eht[p2]-ebase[p2]); in eqnbox()
31 yyval, p1, p2, b, h); in eqnbox()
32 if (rfont[p1] == ITAL && lfont[p2] == ROM) in eqnbox()
40 printf(".as %d \"%s\\*(%d\n", yyval, sh, p2); in eqnbox()
41 rfont[p1] = rfont[p2]; in eqnbox()
42 ofree(p2); in eqnbox()
H A Dintegral.c21 integral(int p, int p1, int p2) in integral() argument
26 if (p2 != 0) in integral()
27 printf(".ds %d \\v'-0.3m'\\*(%d\\v'0.3m'\n", p2, p2); in integral()
29 if (p1 != 0 && p2 != 0) in integral()
30 shift2(p, p1, p2); in integral()
33 else if (p2 != 0) in integral()
34 bshiftb(p, SUP, p2); in integral()
H A Dpile.c20 lpile(int type, int p1, int p2) in lpile() argument
30 nlist = p2 - p1; in lpile()
34 for (i = p1; i < p2; i++) in lpile()
38 for (i = p2-1; i > mid; i--) in lpile()
49 for (i = p1; i < p2; i++) in lpile()
55 for (i = p1+1; i < p2; i++) { in lpile()
62 for (i = p2-1; i >= p1; i--) { in lpile()
86 for (i = p1; i < p2; i++) in lpile()
/illumos-gate/usr/src/ucbcmd/sed/
H A Dsed1.c105 char *p1, *p2; in execute() local
178 if(p2) in execute()
181 if(p2) in execute()
378 p2 = holdsp; in command()
441 p2--; in command()
486 p2--; in command()
489 *p2 = 0; in command()
608 p2 = cbp;
619 p2 = ibuf;
638 p2 = ibuf;
[all …]
/illumos-gate/usr/src/cmd/csh/
H A Dsh.parse.c68 while (p1 != p2) in asyntax()
75 asyn0(p1, p2); in asyntax()
118 asyn3(p1, p2); in asyn0()
131 if (p1 == p2) in asyn3()
134 for (p2 = p2->prev; p2->word[0] != ')'; p2 = p2->prev) in asyn3()
135 if (p2 == p1) in asyn3()
146 alhistt = p2; in asyn3()
186 retp->next = p2; in freenod()
187 p2->prev = retp; in freenod()
208 while (p1 != p2) in syntax()
[all …]
H A Dsh.exp.c121 int p2; in exp0() local
145 int p2; in exp1() local
169 int p2; in exp2() local
193 int p2; in exp2a() local
217 int p2; in exp2b() local
233 tchar *p2; in exp2c() local
279 tchar *p1, *p2; in exp3() local
355 tchar *p1, *p2; in exp4() local
391 tchar *p1, *p2; in exp5() local
415 i = egetn(p2); in exp5()
[all …]
/illumos-gate/usr/src/cmd/sh/
H A Dtest.c82 unsigned char *p2; in exp() local
85 p2 = nxtarg(1); in exp()
86 if (p2 != 0) in exp()
105 p2 = nxtarg(1); in e1()
107 if ((p2 != 0) && eq(p2, "-a")) in e1()
138 p2 = nxtarg(1); in e3()
140 if ((p2 == 0) || (!eq(p2, "=") && !eq(p2, "!="))) in e3()
193 p2 = nxtarg(1); in e3()
194 if (p2 == 0) in e3()
196 if (eq(p2, "-a") || eq(p2, "-o")) in e3()
[all …]
/illumos-gate/usr/src/ucbcmd/test/
H A Dtest.c82 char *p2; in exp() local
85 p2 = nxtarg(1); in exp()
86 if (p2 != 0) { in exp()
100 char *p2; in e1() local
103 p2 = nxtarg(1); in e1()
104 if ((p2 != 0) && EQ(p2, "-a")) in e1()
124 char *p2; in e3() local
133 p2 = nxtarg(1); in e3()
135 if ((p2 == 0) || (!EQ(p2, "=") && !EQ(p2, "!="))) { in e3()
199 if (p2 == 0) in e3()
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/isc/
H A Dtree.c257 *ppr = p2; in sprout()
314 *ppr = p2; in sprout()
413 tree *p1, *p2; in bal_L() local
450 p2 = p1->left; in bal_L()
451 b2 = p2->bal; in bal_L()
464 *ppr_p = p2; in bal_L()
465 p2->bal = 0; in bal_L()
473 tree *p1, *p2; in bal_R() local
510 b2 = p2->bal; in bal_R()
523 *ppr_p = p2; in bal_R()
[all …]
/illumos-gate/usr/src/lib/libc/port/i18n/
H A Dwsprintf.c53 char *p2; in wsprintf() local
68 p2 = malloc(len); in wsprintf()
69 if (p2 == NULL) in wsprintf()
73 p2 = tempstring; in wsprintf()
74 (void) strcpy(p2, p1); in wsprintf()
76 if (mbstowcs(wstring, p2, len) == (size_t)-1) { in wsprintf()
78 if ((retcode = mbtowc(wstring, p2, MB_CUR_MAX)) == -1) { in wsprintf()
79 *wstring = (wchar_t)*p2 & 0xff; in wsprintf()
80 p2++; in wsprintf()
82 p2 += retcode; in wsprintf()
[all …]
/illumos-gate/usr/src/test/libc-tests/tests/qsort/
H A Dmerge.c125 for (tp2 = p2 = list2; p2 != last; p1 = EVAL(l2)) { in mergesort()
126 p2 = *EVAL(p2); in mergesort()
129 if (p2 != last) in mergesort()
130 p2 = *EVAL(p2); in mergesort()
131 l2 = list1 + (p2 - list2); in mergesort()
273 p2 = list2; in setup()
286 p2 = *EVAL(p2) = f1 + size2 - list1 + list2; in setup()
294 p2 = *EVAL(p2) = f2 - list1 + list2; in setup()
304 p2 = *EVAL(p2) = f2 - list1 + list2; in setup()
306 p2 = *EVAL(p2) = list2 + n*size; in setup()
[all …]
/illumos-gate/usr/src/cmd/fm/modules/common/eversholt/
H A Devnv.c67 nvpair_t *p2 = NULL; in evnv_cmpnvl() local
75 p2 = nvlist_next_nvpair(nvl2, p2); in evnv_cmpnvl()
76 if (p1 == NULL && p2 == NULL) { in evnv_cmpnvl()
83 if (p2 == NULL) in evnv_cmpnvl()
86 s2 = nvpair_name(p2); in evnv_cmpnvl()
92 t2 = nvpair_type(p2); in evnv_cmpnvl()
103 (void) nvpair_value_nvlist(p2, &l2); in evnv_cmpnvl()
125 (void) nvpair_value_string(p2, &s2); in evnv_cmpnvl()
140 (void) nvpair_value_uint64(p2, &lv2); in evnv_cmpnvl()
151 (void) nvpair_value_int64(p2, (int64_t *)&lv2); in evnv_cmpnvl()
[all …]
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/
H A Dnfs_subr.c130 char *p1, *p2; in convert_special() local
169 p2 = host; in convert_special()
188 if (*p2 == '\0') { in convert_special()
192 *p1 = *p2; in convert_special()
194 p2++; in convert_special()
206 p2 = newpath; in convert_special()
214 if (*p2 == '\0') { in convert_special()
217 *p1 = *p2; in convert_special()
219 p2++; in convert_special()
237 *p1 = *p2; in convert_special()
[all …]
/illumos-gate/usr/src/cmd/acct/
H A Dacctcms.c541 p1->tcm_pc += p2->tcm_pc; in tcmadd()
545 p1->tcm_io += p2->tcm_io; in tcmadd()
546 p1->tcm_rw += p2->tcm_rw; in tcmadd()
613 if (p1->tcm_cpu == p2->tcm_cpu) in tccmp()
619 ccmp(struct pcms *p1, struct pcms *p2) in ccmp() argument
624 if (p1->pcm_cpu[PRIME] + p1->pcm_cpu[NONPRIME] == p2->pcm_cpu[PRIME] + p2->pcm_cpu[NONPRIME]) in ccmp()
637 if (p1->tcm_kcore == p2->tcm_kcore) in tkcmp()
648 …if (p1->pcm_kcore[PRIME] + p1->pcm_kcore[NONPRIME] == p2->pcm_kcore[PRIME] + p2->pcm_kcore[NONPRIM… in kcmp()
661 if (p1->tcm_pc == p2->tcm_pc) in tncmp()
672 if (p1->pcm_pc[PRIME] + p1->pcm_pc[NONPRIME] == p2->pcm_pc[PRIME] + p2->pcm_pc[NONPRIME]) in ncmp()
[all …]
/illumos-gate/usr/src/lib/libslp/clib/
H A Dslp_utf8.c125 char *p1, *p2; in slp_strcasecmp() local
129 p1 = p2 = NULL; wcs1 = wcs2 = NULL; in slp_strcasecmp()
137 p2 = slp_fold_space(s2); in slp_strcasecmp()
138 if (!p1 || !p2) in slp_strcasecmp()
141 if ((diff = strcasecmp(p1, p2)) == 0) in slp_strcasecmp()
156 if ((wcslen2 = mbstowcs(NULL, p2, 0)) == (size_t)-1) in slp_strcasecmp()
165 if (mbstowcs(wcs2, p2, wcslen2 + 1) == (size_t)-1) in slp_strcasecmp()
172 if (p2) free(p2); in slp_strcasecmp()
/illumos-gate/usr/src/cmd/sendmail/db/btree/
H A Dbt_compare.c150 u_int8_t *p1, *p2; local
165 for (p1 = a->data, p2 = b->data; len--; ++p1, ++p2)
166 if (*p1 != *p2)
167 return ((long)*p1 - (long)*p2);
182 u_int8_t *p1, *p2; local
186 for (p1 = a->data, p2 = b->data; len--; ++p1, ++p2, ++cnt)
187 if (*p1 != *p2)
/illumos-gate/usr/src/lib/libgen/common/
H A Dreg_step.c170 if (*p2++) { in step()
176 if (*p2 == CCHR) { in step()
178 c = p2[1]; in step()
533 char *p1, *p2; in _advance() local
536 p2 = lp - eucw3; in _advance()
546 lp = p2; in _advance()
560 char *p1, *p2; in _advance() local
562 p2 = curlp; in _advance()
564 p1 = p2; in _advance()
566 p2 = p1 + 1; in _advance()
[all …]
/illumos-gate/usr/src/lib/pam_modules/dial_auth/
H A Ddial_auth.c61 char *p1 = NULL, *p2 = NULL; in pam_sm_authenticate() local
134 p2 = p1; in pam_sm_authenticate()
142 SCPYN(defpass, p2); in pam_sm_authenticate()
143 p2 = NULL; in pam_sm_authenticate()
149 if (p2 == NULL) in pam_sm_authenticate()
150 p2 = defpass; in pam_sm_authenticate()
152 if (*p2 != '\0') { in pam_sm_authenticate()
160 if (strcmp(crypt(password, p2), p2) != 0) { in pam_sm_authenticate()
/illumos-gate/usr/src/cmd/expand/
H A Dexpand.c75 char *p1, *p2; local
137 p1 = p2 = ibuf;
139 if (p1 >= p2) {
143 p2 = p1 + len;
199 if ((len = (p2 - p1)) <
204 p2 = p1 + n;
205 if ((len = fread(p2, 1, BUFSIZ - n,
207 p2 += len;
209 if ((len = (p2 - p1)) >
/illumos-gate/usr/src/lib/iconv_modules/common/
H A Ducs2.h37 #define room_for_ucs2_cnv(p1,p2) (((p1)+sizeof(ucs2_t))<=(p2)) argument
38 #define no_room_for_ucs2_cnv(p1,p2) (((p1)+sizeof(ucs2_t))>(p2)) argument
39 #define incomplete_ucs2_seq(p1,p2) (((p1)+sizeof(ucs2_t))>(p2)) argument
/illumos-gate/usr/src/tools/cscope-fast/
H A Dmouse.c158 int p1, p2; in drawscrollbar() local
163 p2 = 16 + (bot - 1) * 100 / total; in drawscrollbar()
164 if (p2 > 116) { in drawscrollbar()
165 p2 = 116; in drawscrollbar()
177 if (p2 == ctrl('Q') || p2 == ctrl('S')) { in drawscrollbar()
178 ++p2; in drawscrollbar()
181 p1 = p2 = 16; in drawscrollbar()
183 (void) printf("\033W%c%c", p1, p2); in drawscrollbar()

12345678910>>...12