|
|
1.1 root 1: #include <u.h>
2: #include <libc.h>
3: #include <libg.h>
4: #include "/sys/include/gnot.h"
5:
6: int
7: main(int argc, char *argv[])
8: {
9: GBitmap *b;
10: int h,v,iters,i,op,fac;
11: Rectangle r;
12: Point p;
13:
14: v = h = 100;
15: fac = 1;
16: op = S;
17: if(argc > 1)
18: v = atoi(argv[1]);
19: if(argc > 2)
20: h = atoi(argv[2]);
21: if(argc > 3)
22: op = atoi(argv[3]);
23: if(argc > 4)
24: fac = atoi(argv[4]);
25: b = gballoc(Rect(0,0,1024,1024),0);
26: r = Rect(48,33,48+h,33+v);
27: iters = fac * 100000/(((h+31)/32) * v);
28: print("h=%d v=%d op=%d nblits=%d\n", h, v, op, iters*32);
29: while(--iters >= 0) {
30: p = Pt(31,33);
31: for(i=32; --i>=0;){
32: gbitblt(b, p, b, r, op);
33: p.x--;
34: }
35: }
36: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.