Home
last modified time | relevance | path

Searched refs:max (Results 1 – 25 of 496) sorted by relevance

12345678910>>...20

/plan9/sys/src/cmd/vnc/
H A Drlist.c56 return r.min.x<=s.max.x && s.min.x<=r.max.x && in rectadjacent()
57 r.min.y<=s.max.y && s.min.y<=r.max.y; in rectadjacent()
68 if(r->min.y==s.min.y && r->max.y==s.max.y){ in rectubr()
70 r->min.x = s.max.x; in rectubr()
71 assert(r->max.x > r->min.x); in rectubr()
74 if(r->max.x == s.max.x){ in rectubr()
75 r->max.x = s.min.x; in rectubr()
76 assert(r->max.x > r->min.x); in rectubr()
80 if(r->min.x==s.min.x && r->max.x==s.max.x){ in rectubr()
82 r->min.y = s.max.y; in rectubr()
[all …]
/plan9/sys/src/libmp/port/
H A Dmpfactorial.c12 int max, mmax; in mpfactorial() local
17 max = mmax = -1; in mpfactorial()
29 s = stk[max]; in mpfactorial()
37 mpmul(stk[max], stk[max-1], r); in mpfactorial()
38 mpassign(r, stk[max-1]); in mpfactorial()
39 max--; in mpfactorial()
42 max++; in mpfactorial()
43 if(max > mmax){ in mpfactorial()
45 if(max >= nelem(stk)) in mpfactorial()
47 stk[max] = mpnew(Dbits); in mpfactorial()
[all …]
/plan9/sys/src/libdraw/
H A Darith.c22 r.max.x = bx; in Rect()
23 r.max.y = by; in Rect()
28 Rpt(Point min, Point max) in Rpt() argument
33 r.max = max; in Rpt()
58 r.max.x -= n; in insetrect()
59 r.max.y -= n; in insetrect()
84 r.max.x -= p.x; in rectsubpt()
85 r.max.y -= p.y; in rectsubpt()
94 r.max.x += p.x; in rectaddpt()
95 r.max.y += p.y; in rectaddpt()
[all …]
H A Drectclip.c12 if((rp->min.x<bp->max.x && bp->min.x<rp->max.x && in rectclip()
13 rp->min.y<bp->max.y && bp->min.y<rp->max.y)==0) in rectclip()
20 if(rp->max.x > bp->max.x) in rectclip()
21 rp->max.x = bp->max.x; in rectclip()
22 if(rp->max.y > bp->max.y) in rectclip()
23 rp->max.y = bp->max.y; in rectclip()
H A Dgetrect.c30 r.max.x = r.min.x+2*W; in brects()
32 r.max.y = r.min.y+2*W; in brects()
33 rp[0] = Rect(r.min.x, r.min.y, r.max.x, r.min.y+W); in brects()
34 rp[1] = Rect(r.min.x, r.max.y-W, r.max.x, r.max.y); in brects()
35 rp[2] = Rect(r.min.x, r.min.y+W, r.min.x+W, r.max.y-W); in brects()
36 rp[3] = Rect(r.max.x-W, r.min.y+W, r.max.x, r.max.y-W); in brects()
54 r.max = mc->xy; in getrect()
60 r.max = mc->xy; in getrect()
66 rc.min.x = rc.max.x = 0; in getrect()
67 rc.min.y = rc.max.y = 0; in getrect()
[all …]
H A Degetrect.c29 r.max.x = r.min.x+2*W; in brects()
31 r.max.y = r.min.y+2*W; in brects()
32 rp[0] = Rect(r.min.x, r.min.y, r.max.x, r.min.y+W); in brects()
33 rp[1] = Rect(r.min.x, r.max.y-W, r.max.x, r.max.y); in brects()
34 rp[2] = Rect(r.min.x, r.min.y+W, r.min.x+W, r.max.y-W); in brects()
35 rp[3] = Rect(r.max.x-W, r.min.y+W, r.max.x, r.max.y-W); in brects()
53 r.max = m->xy; in egetrect()
59 r.max = m->xy; in egetrect()
65 rc.min.x = rc.max.x = 0; in egetrect()
66 rc.min.y = rc.max.y = 0; in egetrect()
H A Dborder.c13 draw(im, Rect(r.min.x, r.min.y, r.max.x, r.min.y+i), in border()
15 draw(im, Rect(r.min.x, r.max.y-i, r.max.x, r.max.y), in border()
17 draw(im, Rect(r.min.x, r.min.y+i, r.min.x+i, r.max.y-i), in border()
19 draw(im, Rect(r.max.x-i, r.min.y+i, r.max.x, r.max.y-i), in border()
/plan9/sys/src/cmd/unix/drawterm/libdraw/
H A Darith.c22 r.max.x = bx; in Rect()
23 r.max.y = by; in Rect()
28 Rpt(Point min, Point max) in Rpt() argument
33 r.max = max; in Rpt()
58 r.max.x -= n; in insetrect()
59 r.max.y -= n; in insetrect()
84 r.max.x -= p.x; in rectsubpt()
85 r.max.y -= p.y; in rectsubpt()
94 r.max.x += p.x; in rectaddpt()
95 r.max.y += p.y; in rectaddpt()
[all …]
H A Drectclip.c12 if((rp->min.x<bp->max.x && bp->min.x<rp->max.x && in rectclip()
13 rp->min.y<bp->max.y && bp->min.y<rp->max.y)==0) in rectclip()
20 if(rp->max.x > bp->max.x) in rectclip()
21 rp->max.x = bp->max.x; in rectclip()
22 if(rp->max.y > bp->max.y) in rectclip()
23 rp->max.y = bp->max.y; in rectclip()
/plan9/sys/src/libmemlayer/
H A Dlayerop.c33 if(fr.max.y < r.max.y){ in _layerop()
34 RECUR(r.min, fr.max, r.max, r.max); in _layerop()
35 r.max.y = fr.max.y; in _layerop()
38 RECUR(r.min, r.min, r.max, fr.min); in _layerop()
41 if(fr.max.x < r.max.x){ in _layerop()
42 RECUR(fr.max, r.min, r.max, r.max); in _layerop()
43 r.max.x = fr.max.x; in _layerop()
46 RECUR(r.min, r.min, fr.min, r.max); in _layerop()
95 fn(l->save, Rect(r.min.x, r.min.y, r.max.x, scr.min.y), clipr, etc, 1); in _memlayerop()
98 if(r.max.y > scr.max.y){ in _memlayerop()
[all …]
/plan9/sys/src/cmd/unix/drawterm/libmemlayer/
H A Dlayerop.c33 if(fr.max.y < r.max.y){ in _layerop()
34 RECUR(r.min, fr.max, r.max, r.max); in _layerop()
35 r.max.y = fr.max.y; in _layerop()
38 RECUR(r.min, r.min, r.max, fr.min); in _layerop()
41 if(fr.max.x < r.max.x){ in _layerop()
42 RECUR(fr.max, r.min, r.max, r.max); in _layerop()
43 r.max.x = fr.max.x; in _layerop()
46 RECUR(r.min, r.min, fr.min, r.max); in _layerop()
95 fn(l->save, Rect(r.min.x, r.min.y, r.max.x, scr.min.y), clipr, etc, 1); in _memlayerop()
98 if(r.max.y > scr.max.y){ in _memlayerop()
[all …]
/plan9/sys/src/cmd/abaco/
H A Dcols.c29 r1.max.y = r1.min.y + font->height; in colinit()
32 r1.min.y = r1.max.y; in colinit()
33 r1.max.y += Border; in colinit()
50 r.min.y = c->tag.r.max.y+Border; in coladd()
58 if(y < v->r.max.y) in coladd()
73 t = c->r.max.y; in coladd()
76 r.max.y = t; in coladd()
79 r1.max.y = min(y, v->page.all.min.y+Dy(v->page.all)); in coladd()
81 r1.max.y = r1.min.y+Border; in coladd()
83 r.min.y = r1.max.y; in coladd()
[all …]
H A Drows.c26 r1.max.y = r1.min.y + font->height; in rowinit()
33 r1.min.y = r1.max.y; in rowinit()
34 r1.max.y += Border; in rowinit()
49 r.min.y = row->tag.r.max.y+Border; in rowadd()
57 if(x < d->r.max.x) in rowadd()
68 r1.max.x = min(x, r.max.x-50); in rowadd()
70 r1.max.x = r1.min.x+50; in rowadd()
72 r1.min.x = r1.max.x; in rowadd()
73 r1.max.x = r1.min.x+Border; in rowadd()
75 r.min.x = r1.max.x; in rowadd()
[all …]
H A Dscrl.c23 vscrtmp = eallocimage(display, Rect(0, 0, 32, screen->r.max.y), screen->chan, 0, DNofill); in scrlresize()
24 hscrtmp = eallocimage(display, Rect(0, 0, screen->r.max.x, 32), screen->chan, 0, DNofill); in scrlresize()
35 h = q.max.y-q.min.y; in scrpos()
46 q.max.y -= h*(tot-p1)/tot; in scrpos()
47 if(q.max.y < q.min.y+2){ in scrpos()
48 if(q.min.y+2 <= r.max.y) in scrpos()
49 q.max.y = q.min.y+2; in scrpos()
51 q.min.y = q.max.y-2; in scrpos()
68 r1.max.x = Dx(r); in textscrdraw()
74 r2.min.x = r2.max.x-1; in textscrdraw()
[all …]
H A Dwind.c27 r1.max.y = r1.min.y + font->height; in wininit()
30 r1.min.y = r1.max.y++; in wininit()
33 br.max.x = br.min.x + Dx(button->r); in wininit()
34 br.max.y = br.min.y + Dy(button->r); in wininit()
36 r1.min.y = r1.max.y; in wininit()
37 r1.max.y += font->height; in wininit()
41 r1.min.y = r1.max.y++; in wininit()
43 r1.min.y = r1.max.y; in wininit()
44 r1.max.y = r.max.y - font->height - 1; in wininit()
48 r1.min.y = r1.max.y++; in wininit()
[all …]
/plan9/sys/src/cmd/acme/
H A Dcols.c28 r1.max.y = r1.min.y + font->height; in colinit()
31 r1.min.y = r1.max.y; in colinit()
32 r1.max.y += Border; in colinit()
49 r.min.y = c->tag.r.max.y+Border; in coladd()
57 if(y < v->r.max.y) in coladd()
72 t = c->r.max.y; in coladd()
75 r.max.y = t; in coladd()
79 r1.max.y = min(y, v->body.r.min.y+v->body.nlines*v->body.font->height); in coladd()
81 r1.max.y = r1.min.y+Border; in coladd()
83 r.min.y = r1.max.y; in coladd()
[all …]
H A Dscrl.c24 h = q.max.y-q.min.y; in scrpos()
35 q.max.y -= h*(tot-p1)/tot; in scrpos()
36 if(q.max.y < q.min.y+2){ in scrpos()
37 if(q.min.y+2 <= r.max.y) in scrpos()
38 q.max.y = q.min.y+2; in scrpos()
40 q.min.y = q.max.y-2; in scrpos()
49 scrtmp = allocimage(display, Rect(0, 0, 32, screen->r.max.y), screen->chan, 0, DNofill); in scrlresize()
68 r1.max.x = Dx(r); in textscrdraw()
74 r2.min.x = r2.max.x-1; in textscrdraw()
114 h = s.max.y-s.min.y; in textscroll()
[all …]
/plan9/sys/src/cmd/venti/srv/
H A Dgraph.c114 int i, nbin, x, lo, hi, min, max, first; in statgraph() local
139 max = g->max; in statgraph()
140 if(min < 0 || max <= min){ in statgraph()
141 min = max = 0; in statgraph()
149 if(first || b->max > max) in statgraph()
150 max = b->max; in statgraph()
173 memimagedraw(m, Rect(r.min.x, r.max.y, r.max.x, r.max.y+1), black, ZP, memopaque, ZP, S); in statgraph()
176 drawlabel(m, r.min, max); in statgraph()
178 drawlabel(m, Pt(r.min.x, r.max.y-smallfont->height), min); in statgraph()
185 lo = scalept(b->min, min, max, r.max.y, r.min.y); in statgraph()
[all …]
/plan9/sys/src/9/port/
H A Dwatermarks.c11 initmark(Watermark *wp, int max, char *name) in initmark() argument
14 wp->max = max; in initmark()
24 else if (val > wp->max) in notemark()
25 val = wp->max; in notemark()
29 if (val == wp->max && wp->curr < val) in notemark()
39 wp->name, wp->highwater, wp->max, wp->curr, wp->hitmax); in seprintmark()
/plan9/sys/src/cmd/
H A Dmug.c77 rramp.max = addpt(rramp.min, Pt(256,256)); in geometry()
79 rbig.min = Pt(rramp.max.x+6, rramp.min.y); in geometry()
80 rbig.max = addpt(rbig.min, Pt(Dx(orig->r), Dy(orig->r))); in geometry()
83 fr[i] = rectaddpt(Rect(0,0,48,48), Pt(rramp.min.x+48+56*(i%3), rramp.max.y+6+56*(i/3))); in geometry()
133 r.max.x = r.min.x + (int)(s->white*255.0); in drawrampbar()
136 r.max.y = r.min.y+1; in drawrampbar()
142 r.max.y += 2; in drawrampbar()
146 r.max.x -= Dx(liner)/3; in drawrampbar()
152 r.max.x = r.min.x+3; in drawrampbar()
158 r.min.x = r.max.x-3; in drawrampbar()
[all …]
/plan9/sys/src/libcontrol/
H A Dgroup.c122 r.max.x = cp->iargs[3]; in groupctl()
123 r.max.y = cp->iargs[4]; in groupctl()
206 r.max = Pt(_Ctlmaxsize, _Ctlmaxsize); in groupctl()
220 r.max.x = cp->iargs[3]; in groupctl()
221 r.max.y = cp->iargs[4]; in groupctl()
226 … if(r.min.x<=0 || r.min.y<=0 || r.max.x<=0 || r.max.y<=0 || r.max.x < r.min.x || r.max.y < r.min.y) in groupctl()
321 p1 = Pt(g->r.max.x, m->xy.y); in groupmouse()
326 p1 = Pt(m->xy.x, g->r.max.y); in groupmouse()
450 if (q->size.min.x == 0 || q->size.min.y == 0 || q->size.max.x == 0 || q->size.max.y == 0) in groupsize()
460 r.max.x += q->size.max.x + g->border; in groupsize()
[all …]
H A Dslider.c20 int max; member
95 if(s->max <= 0) in slidershow()
101 l = muldiv(s->value, d, s->max); in slidershow()
102 h = muldiv(s->value+s->vis, d, s->max); in slidershow()
113 r.max.x = r.min.x+h; in slidershow()
116 r.max.y = r.min.y+h; in slidershow()
183 if(s->max != cp->iargs[1]){ in sliderctl()
184 s->max = cp->iargs[1]; in sliderctl()
204 r.max.x = cp->iargs[3]; in sliderctl()
205 r.max.y = cp->iargs[4]; in sliderctl()
[all …]
/plan9/sys/src/libframe/
H A Dfrinsert.c87 if(pt.y >= f->r.max.y) in chopframe()
144 pt1.x!=pt0.x && pt1.y!=f->r.max.y && n0<f->nbox; b++,n0++,npts++){ in frinsert()
164 if(pt1.y == f->r.max.y) in frinsert()
170 if(pt1.y > f->r.max.y) in frinsert()
172 if(pt1.y==f->r.max.y && n0<f->nbox){ in frinsert()
181 y = f->r.max.y; in frinsert()
190 r.max.y = y; in frinsert()
194 r.max.x = pt1.x+(f->r.max.x-pt0.x); in frinsert()
195 r.max.y = q1; in frinsert()
204 for((y=pt1.y==f->r.max.y?pt1.y:0),b = &f->box[n0-1]; --npts>=0; --b){ in frinsert()
[all …]
/plan9/sys/src/cmd/rio/
H A Dscrl.c44 h = q.max.y-q.min.y; in scrpos()
55 q.max.y -= h*(tot-p1)/tot; in scrpos()
56 if(q.max.y < q.min.y+2){ in scrpos()
57 if(q.min.y+2 <= r.max.y) in scrpos()
58 q.max.y = q.min.y+2; in scrpos()
60 q.min.y = q.max.y-2; in scrpos()
78 r1.max.x = Dx(r); in wscrdraw()
87 r2.min.x = r2.max.x-1; in wscrdraw()
132 h = s.max.y-s.min.y; in wscroll()
133 x = (s.min.x+s.max.x)/2; in wscroll()
[all …]
/plan9/sys/src/cmd/page/
H A Dview.c86 max(int a, int b) in max() function
147 ul.y = screen->r.max.y - Dy(im->r); in showpage()
421 if(screen->r.min.y <= ul.y && ul.y < screen->r.max.y){ in viewer()
443 if(screen->r.min.y <= i && i <= screen->r.max.y){ in viewer()
450 if(i+ul.y+Dy(im->r) <= screen->r.max.y) in viewer()
451 i = screen->r.max.y - Dy(im->r) - ul.y - 1; in viewer()
739 r = Rect(bot.min.x, bot.min.y, top.min.x, bot.max.y); in gendrawdiff()
746 if(bot.max.x > top.max.x){ in gendrawdiff()
747 r = Rect(top.max.x, bot.min.y, bot.max.x, bot.max.y); in gendrawdiff()
750 bot.max.x = top.max.x; in gendrawdiff()
[all …]

12345678910>>...20