annotate liba52/test.c @ 3535:975672407ef6

Removed functions prototypes for streaming that don't need to be here.
author bertrand
date Sun, 16 Dec 2001 21:41:43 +0000
parents 70a686041bbe
children 7f7991864b96
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3396
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
1
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
2 // liba52 sample by A'rpi/ESP-team
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
3 // reads ac3 stream form stdin, decodes and downmix to s16 stereo pcm and
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
4 // writes it to stdout. resulting stream playbackable with sox:
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
5 // play -c 2 -r 48000 out.sw
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
6
3507
a57fce4ac936 benchmarking code (#define TIMING)
michael
parents: 3396
diff changeset
7 //#define TIMING //needs Pentium or newer
a57fce4ac936 benchmarking code (#define TIMING)
michael
parents: 3396
diff changeset
8
3396
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
9 #include <stdio.h>
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
10 #include <stdlib.h>
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
11 #include <inttypes.h>
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
12
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
13 #include "a52.h"
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
14
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
15 static sample_t * samples;
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
16 static a52_state_t state;
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
17 static uint8_t buf[3840];
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
18 static int buf_size=0;
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
19
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
20 static int16_t out_buf[6*256*6];
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
21
3507
a57fce4ac936 benchmarking code (#define TIMING)
michael
parents: 3396
diff changeset
22 #ifdef TIMING
a57fce4ac936 benchmarking code (#define TIMING)
michael
parents: 3396
diff changeset
23 static inline long long rdtsc()
a57fce4ac936 benchmarking code (#define TIMING)
michael
parents: 3396
diff changeset
24 {
a57fce4ac936 benchmarking code (#define TIMING)
michael
parents: 3396
diff changeset
25 long long l;
a57fce4ac936 benchmarking code (#define TIMING)
michael
parents: 3396
diff changeset
26 asm volatile( "rdtsc\n\t"
a57fce4ac936 benchmarking code (#define TIMING)
michael
parents: 3396
diff changeset
27 : "=A" (l)
a57fce4ac936 benchmarking code (#define TIMING)
michael
parents: 3396
diff changeset
28 );
a57fce4ac936 benchmarking code (#define TIMING)
michael
parents: 3396
diff changeset
29 // printf("%d\n", int(l/1000));
a57fce4ac936 benchmarking code (#define TIMING)
michael
parents: 3396
diff changeset
30 return l;
a57fce4ac936 benchmarking code (#define TIMING)
michael
parents: 3396
diff changeset
31 }
a57fce4ac936 benchmarking code (#define TIMING)
michael
parents: 3396
diff changeset
32
a57fce4ac936 benchmarking code (#define TIMING)
michael
parents: 3396
diff changeset
33 #define STARTTIMING t=rdtsc();
a57fce4ac936 benchmarking code (#define TIMING)
michael
parents: 3396
diff changeset
34 #define ENDTIMING sum+=rdtsc()-t; t=rdtsc();
a57fce4ac936 benchmarking code (#define TIMING)
michael
parents: 3396
diff changeset
35 #else
a57fce4ac936 benchmarking code (#define TIMING)
michael
parents: 3396
diff changeset
36 #define STARTTIMING ;
a57fce4ac936 benchmarking code (#define TIMING)
michael
parents: 3396
diff changeset
37 #define ENDTIMING ;
a57fce4ac936 benchmarking code (#define TIMING)
michael
parents: 3396
diff changeset
38 #endif
a57fce4ac936 benchmarking code (#define TIMING)
michael
parents: 3396
diff changeset
39
a57fce4ac936 benchmarking code (#define TIMING)
michael
parents: 3396
diff changeset
40
3396
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
41 static inline int16_t convert (int32_t i)
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
42 {
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
43 if (i > 0x43c07fff)
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
44 return 32767;
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
45 else if (i < 0x43bf8000)
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
46 return -32768;
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
47 else
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
48 return i - 0x43c00000;
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
49 }
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
50
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
51 static inline void float_to_int (float * _f, int16_t * s16, int flags)
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
52 {
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
53 int i;
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
54 int32_t * f = (int32_t *) _f;
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
55
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
56 switch (flags) {
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
57 case A52_MONO:
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
58 for (i = 0; i < 256; i++) {
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
59 s16[5*i] = s16[5*i+1] = s16[5*i+2] = s16[5*i+3] = 0;
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
60 s16[5*i+4] = convert (f[i]);
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
61 }
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
62 break;
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
63 case A52_CHANNEL:
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
64 case A52_STEREO:
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
65 case A52_DOLBY:
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
66 for (i = 0; i < 256; i++) {
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
67 s16[2*i] = convert (f[i]);
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
68 s16[2*i+1] = convert (f[i+256]);
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
69 }
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
70 break;
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
71 case A52_3F:
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
72 for (i = 0; i < 256; i++) {
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
73 s16[5*i] = convert (f[i]);
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
74 s16[5*i+1] = convert (f[i+512]);
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
75 s16[5*i+2] = s16[5*i+3] = 0;
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
76 s16[5*i+4] = convert (f[i+256]);
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
77 }
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
78 break;
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
79 case A52_2F2R:
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
80 for (i = 0; i < 256; i++) {
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
81 s16[4*i] = convert (f[i]);
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
82 s16[4*i+1] = convert (f[i+256]);
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
83 s16[4*i+2] = convert (f[i+512]);
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
84 s16[4*i+3] = convert (f[i+768]);
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
85 }
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
86 break;
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
87 case A52_3F2R:
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
88 for (i = 0; i < 256; i++) {
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
89 s16[5*i] = convert (f[i]);
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
90 s16[5*i+1] = convert (f[i+512]);
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
91 s16[5*i+2] = convert (f[i+768]);
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
92 s16[5*i+3] = convert (f[i+1024]);
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
93 s16[5*i+4] = convert (f[i+256]);
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
94 }
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
95 break;
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
96 case A52_MONO | A52_LFE:
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
97 for (i = 0; i < 256; i++) {
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
98 s16[6*i] = s16[6*i+1] = s16[6*i+2] = s16[6*i+3] = 0;
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
99 s16[6*i+4] = convert (f[i+256]);
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
100 s16[6*i+5] = convert (f[i]);
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
101 }
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
102 break;
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
103 case A52_CHANNEL | A52_LFE:
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
104 case A52_STEREO | A52_LFE:
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
105 case A52_DOLBY | A52_LFE:
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
106 for (i = 0; i < 256; i++) {
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
107 s16[6*i] = convert (f[i+256]);
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
108 s16[6*i+1] = convert (f[i+512]);
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
109 s16[6*i+2] = s16[6*i+3] = s16[6*i+4] = 0;
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
110 s16[6*i+5] = convert (f[i]);
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
111 }
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
112 break;
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
113 case A52_3F | A52_LFE:
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
114 for (i = 0; i < 256; i++) {
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
115 s16[6*i] = convert (f[i+256]);
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
116 s16[6*i+1] = convert (f[i+768]);
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
117 s16[6*i+2] = s16[6*i+3] = 0;
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
118 s16[6*i+4] = convert (f[i+512]);
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
119 s16[6*i+5] = convert (f[i]);
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
120 }
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
121 break;
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
122 case A52_2F2R | A52_LFE:
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
123 for (i = 0; i < 256; i++) {
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
124 s16[6*i] = convert (f[i+256]);
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
125 s16[6*i+1] = convert (f[i+512]);
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
126 s16[6*i+2] = convert (f[i+768]);
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
127 s16[6*i+3] = convert (f[i+1024]);
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
128 s16[6*i+4] = 0;
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
129 s16[6*i+5] = convert (f[i]);
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
130 }
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
131 break;
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
132 case A52_3F2R | A52_LFE:
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
133 for (i = 0; i < 256; i++) {
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
134 s16[6*i] = convert (f[i+256]);
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
135 s16[6*i+1] = convert (f[i+768]);
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
136 s16[6*i+2] = convert (f[i+1024]);
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
137 s16[6*i+3] = convert (f[i+1280]);
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
138 s16[6*i+4] = convert (f[i+512]);
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
139 s16[6*i+5] = convert (f[i]);
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
140 }
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
141 break;
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
142 }
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
143 }
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
144
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
145
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
146 int main(){
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
147 int accel=0;
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
148 int sample_rate=0;
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
149 int bit_rate=0;
3507
a57fce4ac936 benchmarking code (#define TIMING)
michael
parents: 3396
diff changeset
150 #ifdef TIMING
3511
70a686041bbe better benchmarking
michael
parents: 3507
diff changeset
151 long long t, sum=0, min=256*256*256*64;
3507
a57fce4ac936 benchmarking code (#define TIMING)
michael
parents: 3396
diff changeset
152 #endif
3396
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
153
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
154 samples = a52_init (accel);
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
155 if (samples == NULL) {
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
156 fprintf (stderr, "A52 init failed\n");
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
157 return 1;
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
158 }
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
159
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
160 while(1){
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
161 int length,i;
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
162 int16_t *s16;
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
163 sample_t level=1, bias=384;
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
164 int flags=0;
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
165
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
166 while(buf_size<7){
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
167 int c=getchar();
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
168 if(c<0) goto eof;
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
169 buf[buf_size++]=c;
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
170 }
3507
a57fce4ac936 benchmarking code (#define TIMING)
michael
parents: 3396
diff changeset
171 STARTTIMING
3396
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
172 length = a52_syncinfo (buf, &flags, &sample_rate, &bit_rate);
3507
a57fce4ac936 benchmarking code (#define TIMING)
michael
parents: 3396
diff changeset
173 ENDTIMING
3396
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
174 if(!length){
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
175 // bad file => resync
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
176 memcpy(buf,buf+1,6);
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
177 --buf_size;
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
178 continue;
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
179 }
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
180 fprintf(stderr,"sync. %d bytes 0x%X %d Hz %d kbit\n",length,flags,sample_rate,bit_rate);
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
181 while(buf_size<length){
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
182 buf[buf_size++]=getchar();
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
183 }
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
184
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
185 buf_size=0;
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
186
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
187 // decode:
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
188 flags=A52_STEREO; // A52_DOLBY // A52_2F2R // A52_3F2R | A52_LFE
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
189 flags |= A52_ADJUST_LEVEL;
3507
a57fce4ac936 benchmarking code (#define TIMING)
michael
parents: 3396
diff changeset
190 STARTTIMING
3396
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
191 if (a52_frame (&state, buf, &flags, &level, bias))
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
192 { fprintf(stderr,"error at decoding\n"); continue; }
3507
a57fce4ac936 benchmarking code (#define TIMING)
michael
parents: 3396
diff changeset
193 ENDTIMING
3396
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
194
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
195 // a52_dynrng (&state, NULL, NULL); // disable dynamic range compensation
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
196
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
197 s16 = out_buf;
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
198 for (i = 0; i < 6; i++) {
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
199 int32_t * f = (int32_t *) samples;
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
200 int i;
3507
a57fce4ac936 benchmarking code (#define TIMING)
michael
parents: 3396
diff changeset
201 STARTTIMING
3396
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
202 if (a52_block (&state, samples))
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
203 { fprintf(stderr,"error at sampling\n"); break; }
3507
a57fce4ac936 benchmarking code (#define TIMING)
michael
parents: 3396
diff changeset
204 ENDTIMING
3396
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
205 // resample to STEREO/DOLBY:
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
206 for (i = 0; i < 256; i++) {
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
207 s16[2*i] = convert (f[i]);
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
208 s16[2*i+1] = convert (f[i+256]);
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
209 }
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
210 s16+=2*i;
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
211 }
3511
70a686041bbe better benchmarking
michael
parents: 3507
diff changeset
212 #ifdef TIMING
70a686041bbe better benchmarking
michael
parents: 3507
diff changeset
213 if(sum<min) min=sum;
70a686041bbe better benchmarking
michael
parents: 3507
diff changeset
214 sum=0;
70a686041bbe better benchmarking
michael
parents: 3507
diff changeset
215 #endif
3396
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
216 fwrite(out_buf,6*256*2*2,1,stdout);
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
217
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
218 }
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
219
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
220 eof:
3507
a57fce4ac936 benchmarking code (#define TIMING)
michael
parents: 3396
diff changeset
221 #ifdef TIMING
3511
70a686041bbe better benchmarking
michael
parents: 3507
diff changeset
222 fprintf(stderr, "%4.4fk cycles ",min/1000.0);
70a686041bbe better benchmarking
michael
parents: 3507
diff changeset
223 sum=0;
3507
a57fce4ac936 benchmarking code (#define TIMING)
michael
parents: 3396
diff changeset
224 #endif
3396
098634f41331 sample program for testing liba52
arpi
parents:
diff changeset
225 }