Mercurial > libavcodec.hg
comparison motion-test.c @ 5116:dd5796283029 libavcodec
emms --> emms_c, taken from a patch by Ronald Bultje
author | diego |
---|---|
date | Thu, 07 Jun 2007 21:31:26 +0000 |
parents | bea5fb6c0999 |
children | 71d080656056 |
comparison
equal
deleted
inserted
replaced
5115:8d1a78444f4d | 5116:dd5796283029 |
---|---|
110 printf("error: mmx=%d c=%d\n", d1, d2); | 110 printf("error: mmx=%d c=%d\n", d1, d2); |
111 } | 111 } |
112 } | 112 } |
113 } | 113 } |
114 } | 114 } |
115 emms(); | 115 emms_c(); |
116 | 116 |
117 /* speed test */ | 117 /* speed test */ |
118 ti = gettime(); | 118 ti = gettime(); |
119 d1 = 0; | 119 d1 = 0; |
120 for(it=0;it<NB_ITS;it++) { | 120 for(it=0;it<NB_ITS;it++) { |
123 ptr = img2 + y * WIDTH + x; | 123 ptr = img2 + y * WIDTH + x; |
124 d1 += test_func(img1, ptr, WIDTH); | 124 d1 += test_func(img1, ptr, WIDTH); |
125 } | 125 } |
126 } | 126 } |
127 } | 127 } |
128 emms(); | 128 emms_c(); |
129 dummy = d1; /* avoid optimisation */ | 129 dummy = d1; /* avoid optimisation */ |
130 ti = gettime() - ti; | 130 ti = gettime() - ti; |
131 | 131 |
132 printf(" %0.0f kop/s\n", | 132 printf(" %0.0f kop/s\n", |
133 (double)NB_ITS * (WIDTH - 16) * (HEIGHT - 16) / | 133 (double)NB_ITS * (WIDTH - 16) * (HEIGHT - 16) / |