summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorran2016-03-29 06:52:24 -0500
committerran2016-03-29 06:52:24 -0500
commit63ef5cf2efbb8103ab88670ec4ecf231e2c98566 (patch)
tree2f6e01f4ac4b991f142288df9609ec5d57a4360e
parent98a58144465b9c0342cf2f27dfb1b7a9ba459eff (diff)
downloadc55x-benchmarks-63ef5cf2efbb8103ab88670ec4ecf231e2c98566.tar.gz
c55x-benchmarks-63ef5cf2efbb8103ab88670ec4ecf231e2c98566.tar.xz
c55x-benchmarks-63ef5cf2efbb8103ab88670ec4ecf231e2c98566.zip
directory structure 3-29-16
-rw-r--r--dsplib_benchmarks/cfft1/CFFT_T.C331
-rw-r--r--dsplib_benchmarks/cfft1/TEST.C96
-rw-r--r--dsplib_benchmarks/cfft1/fft5535.cmd96
-rw-r--r--dsplib_benchmarks/cfft1/t1_SCALE.h74
-rw-r--r--dsplib_benchmarks/cfft1/t2_NOSCALE.h89
-rw-r--r--dsplib_benchmarks/cfft1/t2_SCALE.h91
-rw-r--r--dsplib_benchmarks/cfft1/t3_NOSCALE.h121
-rw-r--r--dsplib_benchmarks/cfft1/t3_SCALE.h122
-rw-r--r--dsplib_benchmarks/cfft1/t4_NOSCALE.h185
-rw-r--r--dsplib_benchmarks/cfft1/t4_SCALE.h192
-rw-r--r--dsplib_benchmarks/cfft1/t5_NOSCALE.h313
-rw-r--r--dsplib_benchmarks/cfft1/t5_SCALE.h314
-rw-r--r--dsplib_benchmarks/cfft1/t6_NOSCALE.h569
-rw-r--r--dsplib_benchmarks/cfft1/t6_SCALE.h570
-rw-r--r--dsplib_benchmarks/cfft1/t7_NOSCALE.h1081
-rw-r--r--dsplib_benchmarks/cfft1/t7_SCALE.h1082
-rw-r--r--dsplib_benchmarks/cfft1/t8_NOSCALE.h2105
-rw-r--r--dsplib_benchmarks/cfft1/t8_SCALE.h2106
-rw-r--r--dsplib_benchmarks/convol2/55xConvolve2.cmd68
-rw-r--r--dsplib_benchmarks/convol2/CONV2_T_ran.C132
-rw-r--r--dsplib_benchmarks/convol2/TEST.C67
-rw-r--r--dsplib_benchmarks/convol2/t1.h82
-rw-r--r--dsplib_benchmarks/convol2/t2.h562
-rw-r--r--dsplib_benchmarks/convol2/t3.h82
-rw-r--r--dsplib_benchmarks/convol2/t4.h562
-rw-r--r--dsplib_benchmarks/convol2/t4_ran.h578
-rw-r--r--dsplib_benchmarks/convol2/t5.h498
-rw-r--r--dsplib_benchmarks/convol2/t6.h466
-rw-r--r--dsplib_benchmarks/convol2/t7.h834
-rw-r--r--dsplib_benchmarks/convol2/t8.h918
-rw-r--r--dsplib_benchmarks/convol2/test.h498
-rw-r--r--dsplib_benchmarks/correlation/ARAW_T.C141
-rw-r--r--dsplib_benchmarks/correlation/TEST.C68
-rw-r--r--dsplib_benchmarks/correlation/araw_c.c186
-rw-r--r--dsplib_benchmarks/correlation/correlation.cmd68
-rw-r--r--dsplib_benchmarks/correlation/t1.h61
-rw-r--r--dsplib_benchmarks/correlation/t2.h173
-rw-r--r--dsplib_benchmarks/correlation/t3.h301
-rw-r--r--dsplib_benchmarks/correlation/t3_ran.h301
-rw-r--r--dsplib_benchmarks/correlation/t4.h62
-rw-r--r--dsplib_benchmarks/correlation/t5.h63
-rw-r--r--dsplib_benchmarks/correlation/t6.h69
-rw-r--r--dsplib_benchmarks/correlation/t7.h75
-rw-r--r--dsplib_benchmarks/correlation/t8.h76
-rw-r--r--dsplib_benchmarks/correlation/test.h69
-rw-r--r--dsplib_benchmarks/dlmas_fast/TEST.C67
-rw-r--r--dsplib_benchmarks/dlmas_fast/dlmas.cmd68
-rw-r--r--dsplib_benchmarks/dlmas_fast/dlmsfast_T.C134
-rw-r--r--dsplib_benchmarks/dlmas_fast/t1.h75
-rw-r--r--dsplib_benchmarks/dlmas_fast/t2.h204
-rw-r--r--dsplib_benchmarks/dlmas_fast/t3.h135
-rw-r--r--dsplib_benchmarks/dlmas_fast/t4.h287
-rw-r--r--dsplib_benchmarks/dlmas_fast/t5.h468
-rw-r--r--dsplib_benchmarks/dlmas_fast/t6.h375
-rw-r--r--dsplib_benchmarks/dlmas_fast/t7.h223
-rw-r--r--dsplib_benchmarks/dlmas_fast/t8.h163
-rw-r--r--dsplib_benchmarks/dlms/DLMS_T.C136
-rw-r--r--dsplib_benchmarks/dlms/TEST.C67
-rw-r--r--dsplib_benchmarks/dlms/dlms.cmd68
-rw-r--r--dsplib_benchmarks/dlms/t1.h75
-rw-r--r--dsplib_benchmarks/dlms/t2.h204
-rw-r--r--dsplib_benchmarks/dlms/t3.h135
-rw-r--r--dsplib_benchmarks/dlms/t4.h287
-rw-r--r--dsplib_benchmarks/dlms/t5.h468
-rw-r--r--dsplib_benchmarks/dlms/t6.h375
-rw-r--r--dsplib_benchmarks/dlms/t7.h223
-rw-r--r--dsplib_benchmarks/dlms/t8.h162
-rw-r--r--dsplib_benchmarks/dlms/test.h375
-rw-r--r--dsplib_benchmarks/fir1/FIR_T.C142
-rw-r--r--dsplib_benchmarks/fir1/TEST.C67
-rw-r--r--dsplib_benchmarks/fir1/fir1.cmd68
-rw-r--r--dsplib_benchmarks/fir1/t1.h73
-rw-r--r--dsplib_benchmarks/fir1/t2.h373
-rw-r--r--dsplib_benchmarks/fir1/t3.h73
-rw-r--r--dsplib_benchmarks/fir1/t4.h373
-rw-r--r--dsplib_benchmarks/fir1/t5.h597
-rw-r--r--dsplib_benchmarks/fir1/t5_ran.h374
-rw-r--r--dsplib_benchmarks/fir1/t6.h269
-rw-r--r--dsplib_benchmarks/fir1/t7.h325
-rw-r--r--dsplib_benchmarks/fir1/t8.h629
-rw-r--r--dsplib_benchmarks/fir1/test.h373
-rw-r--r--dsplib_benchmarks/fir2/Fir2_t.c143
-rw-r--r--dsplib_benchmarks/fir2/TEST.C90
-rw-r--r--dsplib_benchmarks/fir2/fir2.cmd68
-rw-r--r--dsplib_benchmarks/fir2/t1.h73
-rw-r--r--dsplib_benchmarks/fir2/t2.h373
-rw-r--r--dsplib_benchmarks/fir2/t3.h73
-rw-r--r--dsplib_benchmarks/fir2/t4.h373
-rw-r--r--dsplib_benchmarks/fir2/t5.h597
-rw-r--r--dsplib_benchmarks/fir2/t5_ran.h821
-rw-r--r--dsplib_benchmarks/fir2/t6.h389
-rw-r--r--dsplib_benchmarks/fir2/t7.h325
-rw-r--r--dsplib_benchmarks/fir2/t8.h629
-rw-r--r--dsplib_benchmarks/fir2/test.h373
-rw-r--r--dsplib_benchmarks/include/Dsplib.h206
-rw-r--r--dsplib_benchmarks/include/Dsplib_c.h73
-rw-r--r--dsplib_benchmarks/include/tms320.h54
-rw-r--r--dsplib_benchmarks/maxval/MAXVAL_T.C112
-rw-r--r--dsplib_benchmarks/maxval/TEST.C67
-rw-r--r--dsplib_benchmarks/maxval/maxval.cmd68
-rw-r--r--dsplib_benchmarks/maxval/t1.h50
-rw-r--r--dsplib_benchmarks/maxval/t2.h60
-rw-r--r--dsplib_benchmarks/maxval/t3.h60
-rw-r--r--dsplib_benchmarks/maxval/t4.h60
-rw-r--r--dsplib_benchmarks/maxval/t5.h60
-rw-r--r--dsplib_benchmarks/maxval/t6.h76
-rw-r--r--dsplib_benchmarks/maxval/t7.h172
-rw-r--r--dsplib_benchmarks/maxval/t8 - original.h300
-rw-r--r--dsplib_benchmarks/maxval/t8.h300
-rw-r--r--dsplib_benchmarks/maxvec/Maxvec_t.c113
-rw-r--r--dsplib_benchmarks/maxvec/TEST.C67
-rw-r--r--dsplib_benchmarks/maxvec/maxvec.cmd68
-rw-r--r--dsplib_benchmarks/maxvec/t1.h53
-rw-r--r--dsplib_benchmarks/maxvec/t2.h63
-rw-r--r--dsplib_benchmarks/maxvec/t3.h63
-rw-r--r--dsplib_benchmarks/maxvec/t4.h63
-rw-r--r--dsplib_benchmarks/maxvec/t5.h63
-rw-r--r--dsplib_benchmarks/maxvec/t6.h63
-rw-r--r--dsplib_benchmarks/maxvec/t7.h207
-rw-r--r--dsplib_benchmarks/maxvec/t8.h303
120 files changed, 32278 insertions, 0 deletions
diff --git a/dsplib_benchmarks/cfft1/CFFT_T.C b/dsplib_benchmarks/cfft1/CFFT_T.C
new file mode 100644
index 0000000..acbca93
--- /dev/null
+++ b/dsplib_benchmarks/cfft1/CFFT_T.C
@@ -0,0 +1,331 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35
36
37#include <stdlib.h>
38#include <math.h>
39#include "tms320.h"
40#include <stdio.h>
41#include <dsplib.h>
42#include <time.h>
43
44#define NUMBER_OF_ITERATIONS 1000000l
45#define FFT_HARDWARE 1
46//#include "t1_SCALE.h"
47//#include "t2_SCALE.h" //16
48//#include "t3_SCALE.h" //32
49//#include "t4_SCALE.h" //64
50//#include "t5_SCALE.h" //128
51#include "t6_SCALE.h" //256
52//#include "t7_SCALE.h" //512
53//#include "t8_SCALE.h" //1024
54//#include "t2_NOSCALE.h"
55//#include "t3_NOSCALE.h"
56//#include "t4_NOSCALE.h"
57//#include "t5_NOSCALE.h"
58//#include "t6_NOSCALE.h"
59//#include "t7_NOSCALE.h"
60//#include "t8_NOSCALE.h"
61
62
63//#include "hwafft.h"
64
65#ifndef SCALING
66#define SCALING 0
67#endif
68
69short test(DATA *r, DATA *rtest, short n, DATA maxerror);
70
71short eflag = PASS;
72
73////////////////////////////////////////////////
74long *data;
75long *data_br;
76unsigned short fft_flag = 0 ; //0 ->fft 1 ->ifft
77unsigned short scale_flag= 0; //0 -> scaling 1-> no scalling
78DATA *result ;
79unsigned short sel_out;
80
81 short compare_flag ;
82 int i ;
83 int nx ;
84 long iterations1 ;
85 clock_t t1,t2, t11,t22 ,total1_t ,total2_t,diff , total3_t ;
86 long (*fp) (DATA , DATA , unsigned short , unsigned short );
87
88
89
90
91
92
93#if FFT_HARDWARE // when it is 1, we use the hardware FFT
94
95void main()
96{
97
98 short xx,yy ;
99 short maxError ;
100 nx = NX ;
101
102 t1 = clock() ;
103 t2 = clock() ;
104 diff = t2 - t1 ; /// overhead of calling
105
106
107 *(volatile ioport unsigned short *)0x0001 = 0x000E;
108 asm(" idle");
109 asm (" nop ") ;
110 asm (" nop ") ;
111 asm (" nop ") ;
112
113 t1 = clock() ;
114 hwafft_br(x, x_br, nx) ;
115
116 t2 = clock() ;
117 total1_t = (double) (t2 - t1-diff) ;
118 printf(" Using bit reversal Number of elements is %d \n",nx ) ;
119 printf("Bit reversal accelerator time (in cycles) %ld \n", total1_t) ;
120
121// for (i=0; i<2*nx; i++)
122// x_br[i] = x[i] ;
123#if SCALING
124 scale_flag = 0;
125#else
126 scale_flag = 1;
127#endif
128
129
130 if (nx == 8)
131 {
132 t1 = clock() ;
133
134 sel_out =hwafft_8pts(x_br, scratch, fft_flag, scale_flag );
135
136 t2 = clock() ;
137 }
138
139 if (nx == 16)
140 {
141 t1 = clock() ;
142
143 sel_out =hwafft_16pts(x_br, scratch, fft_flag, scale_flag );
144
145 t2 = clock() ;
146 }
147
148 if (nx == 32)
149 {
150 t1 = clock() ;
151
152 sel_out =hwafft_32pts(x_br, scratch, fft_flag, scale_flag );
153
154 t2 = clock() ;
155 }
156 if (nx == 64)
157 {
158 t1 = clock() ;
159
160 sel_out =hwafft_64pts(x_br, scratch, fft_flag, scale_flag );
161
162 t2 = clock() ;
163 }
164 if (nx == 128)
165 {
166 t1 = clock() ;
167
168 sel_out =hwafft_128pts(x_br, scratch, fft_flag, scale_flag );
169
170 t2 = clock() ;
171 }
172 if (nx == 256)
173 {
174 t1 = clock() ;
175
176 sel_out =hwafft_256pts(x_br, scratch, fft_flag, scale_flag );
177
178 t2 = clock() ;
179 }
180 if (nx == 512)
181 {
182 t1 = clock() ;
183
184 sel_out =hwafft_512pts(x_br, scratch, fft_flag, scale_flag );
185
186 t2 = clock() ;
187 }
188 if (nx == 1024)
189 {
190 t1 = clock() ;
191
192 sel_out =hwafft_1024pts(x_br, scratch, fft_flag, scale_flag );
193
194 t2 = clock() ;
195 }
196
197
198
199
200
201
202
203
204
205 if (sel_out == 0)
206 {
207 result = x_br;
208 }
209 else
210
211 {
212 result = scratch;
213 }
214
215
216 total1_t = (double) (t2 - t1-diff) ;
217 printf(" Complex FFT number of elements is %d \n", nx) ;
218 printf("fft time (in cycles) %ld \n", total1_t) ;
219
220 maxError = 0 ;
221 for (i=0; i<2*nx; i++)
222 {
223
224 xx = result[i] - rtest[i] ;
225 yy = abs(xx) ;
226 if (yy > maxError) maxError = yy ;
227 }
228
229
230 printf(" max Error = %d \n", maxError) ;
231
232
233 // test
234 eflag = test(result, rtest, NX, MAXERROR);
235
236 if(eflag != PASS)
237 {
238 exit(-1);
239 }
240
241
242
243
244 printf(" number of errors %d \n", compare_flag) ;
245
246 for (iterations1 = 0; iterations1 < NUMBER_OF_ITERATIONS;iterations1++)
247
248 {
249 sel_out =hwafft_16pts(x_br, scratch, fft_flag, scale_flag );
250 }
251
252
253 printf("Done with %ld iteration \n",iterations1 );
254
255
256
257 return;
258}
259
260
261
262
263
264
265
266#else
267
268void main()
269{
270
271
272 int nx ;
273 long iterations1 ;
274 clock_t t1,t2, t11,t22 ,total1_t ,total2_t,diff ;
275
276 t1 = clock() ;
277 t2 = clock() ;
278 diff = t2 - t1 ; /// overhead of calling
279 t1 = clock() ;
280 // compute
281#if SCALING
282 cfft(x, NX, SCALE);
283#else
284 cfft(x, NX, NOSCALE);
285#endif
286 nx = NX ;
287 t2 = clock() ;
288 total1_t = (double) (t2 - t1-diff) ;
289 printf(" Complex FFT number of elements is %d \n",nx ) ;
290 printf("fft time (in cycles) %ld \n", total1_t) ;
291 t11 = clock() ;
292
293 cbrev(x, x, NX);
294
295 t22 = clock() ;
296 total2_t = (double) (t22 - t11- diff) ;
297
298 printf("bit reverse time (in cycles) %ld \n", total2_t) ; ;
299
300 // test
301 eflag = test(x, rtest, NX, MAXERROR);
302
303 if(eflag != PASS)
304 {
305 exit(-1);
306 }
307
308
309
310 for (iterations1 = 0; iterations1 < NUMBER_OF_ITERATIONS;iterations1++)
311
312 {
313
314#if SCALING
315 cfft(x, NX, SCALE);
316#else
317 cfft(x, NX, NOSCALE);
318#endif
319
320 }
321
322
323 printf("Done with %ld iteration \n",iterations1 );
324
325
326
327 return;
328}
329
330
331#endif
diff --git a/dsplib_benchmarks/cfft1/TEST.C b/dsplib_benchmarks/cfft1/TEST.C
new file mode 100644
index 0000000..908c3b6
--- /dev/null
+++ b/dsplib_benchmarks/cfft1/TEST.C
@@ -0,0 +1,96 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35//*****************************************************************************
36// Filename: test.c
37// Version: 0.01
38// Description: test r against rtest (array of n elements)
39// Returns eflag
40//-----------------------------------------------------------------------------
41// Revision History:
42// 0.01, R. Piedra, 06/15/98, - Original release
43//*****************************************************************************
44#include <stdlib.h>
45#include <math.h>
46#include "tms320.h"
47#include <stdio.h>
48#include <dsplib.h>
49#include <time.h>
50
51#include <tms320.h>
52
53short test(DATA *r, DATA *rtest, short n, DATA maxerror)
54
55{
56short i;
57short eflag = PASS; // error flag or index into r vector where error
58DATA elevel = 0; // error level at failing eflag index location
59DATA emax = 0; // max error level detected across when NOERROR
60
61for (i=0;i<n;i++)
62 {
63 if ( (elevel = ABSVAL(rtest[i] - r[i])) > maxerror)
64 {
65 eflag =i; // if error --> eflag = index and emax= max error
66 emax = elevel; // if no error --> eflag = -1 and emax = max error
67 break;
68 }
69 else
70 if (elevel>emax) emax = elevel;
71 }
72 // Pass to Host: eflag and emax
73return(eflag);
74}
75
76short compare(DATA *r, DATA *rtest, short n)
77
78{
79short i;
80short yy,xx ;
81short maxError = 0 ;
82
83for (i=0;i<n;i++)
84 {
85 yy = rtest[i] - r[i] ;
86 xx = abs(yy) ;
87 if ( xx > maxError)
88 {
89 maxError = xx ;
90 // printf(" i %d rtest %d r %d \n",i,rtest[i], r[i]) ;
91 }
92
93 }
94
95return(maxError);
96}
diff --git a/dsplib_benchmarks/cfft1/fft5535.cmd b/dsplib_benchmarks/cfft1/fft5535.cmd
new file mode 100644
index 0000000..e58ef68
--- /dev/null
+++ b/dsplib_benchmarks/cfft1/fft5535.cmd
@@ -0,0 +1,96 @@
1/**********************************************************/
2/* */
3/* LINKER command file for LEAD3 memory map */
4/* */
5/**********************************************************/
6
7-stack 0x1000 /* PRIMARY STACK SIZE */
8-sysstack 0x0400 /* SECONDARY STACK SIZE */
9-heap 0x1000 /* HEAP AREA SIZE */
10
11MEMORY
12{
13 PAGE 0:
14
15 MMR : origin = 0000000h, length = 00000c0h
16 SPRAM : origin = 00000c0h, length = 0000040
17 DARAM0 : origin = 0000100h, length = 0003F00h
18 DARAM1 : origin = 0004000h, length = 0004000h
19 DARAM2 : origin = 0008000h, length = 0004000h
20 DARAM3 : origin = 000c000h, length = 0004000h
21
22 SARAM01 : origin = 0010000h, length = 0008000h
23 SARAM2 : origin = 0018000h, length = 0004000h
24 SARAM3 : origin = 001c000h, length = 0004000h
25 SARAM4 : origin = 0020000h, length = 0004000h
26 SARAM5 : origin = 0024000h, length = 0004000h
27 SARAM6 : origin = 0028000h, length = 0004000h
28 SARAM7 : origin = 002c000h, length = 0004000h
29 SARAM8 : origin = 0030000h, length = 0004000h
30 SARAM9 : origin = 0034000h, length = 0004000h
31 SARAM10 : origin = 0038000h, length = 0004000h
32 SARAM11 : origin = 003c000h, length = 0004000h
33 SARAM12 : origin = 0040000h, length = 0004000h
34 SARAM13 : origin = 0044000h, length = 0004000h
35 SARAM14 : origin = 0048000h, length = 0004000h
36 SARAM15 : origin = 004c000h, length = 0004000h
37
38 CE0 : origin = 0050000h, length = 03b0000h
39 CE1 : origin = 0400000h, length = 0400000h
40 CE2 : origin = 0800000h, length = 0400000h
41 CE3 : origin = 0c00000h, length = 03f8000h
42
43 PDROM : origin = 0ff8000h, length = 07f00h
44 VECS : origin = 0ffff00h, length = 00100h /* reset vector */
45
46 PAGE 1:
47
48 IOPORT (RWI) : origin = 0x000000, length = 0x020000
49}
50
51
52SECTIONS
53{
54 vectors (NOLOAD) : {} > DARAM0 PAGE 0 /* interrupt vector table */ /* was VECS */
55 .cinit : {} > SARAM01 PAGE 0
56 .text : {} > SARAM01 PAGE 0
57 isrs : {} > SARAM2 PAGE 0
58
59 .stack : {} > DARAM0 PAGE 0 ALIGN = 4
60 .sysstack: {} > DARAM0 PAGE 0 ALIGN = 4
61 .sysmem : {} > DARAM1 PAGE 0 ALIGN = 4
62 .data : {} > SARAM8 PAGE 0 /* force .data to not be on Page 0 */
63 .bss : {} > SARAM15 PAGE 0 /* force .bss to not be on Page 0 */
64 .const : {} > DARAM1 PAGE 0
65
66 .coeffs : {} > DARAM2 PAGE 0
67 .dbuffer : {} > DARAM3 PAGE 0
68 files : {} > DARAM2 PAGE 0 /* User-defined sections */
69 statvar : {} > DARAM2 PAGE 0
70 statarry : {} > DARAM2 PAGE 0
71 tempvar : {} > DARAM2 PAGE 0
72 temparry : {} > DARAM2 PAGE 0
73 .cio : {} > DARAM2 PAGE 0
74
75
76 .fftcode : {} > SARAM2 PAGE 0 /* FFT-specific sections */
77 .test : {} > DARAM2 PAGE 0
78 .twiddle : {} > SARAM3 PAGE 0, align(2048)
79 .input : {} > DARAM3 PAGE 0, align(4) /* this is due to long-word data memory access */
80 .ioport : {} > IOPORT PAGE 1
81
82}
83
84// VC5505 (PG1.4) HWAFFT Routines ROM Addresses:
85
86_hwafft_br = 0x00fefe9c;
87_hwafft_8pts = 0x00fefeb0;
88_hwafft_16pts = 0x00feff9f;
89_hwafft_32pts = 0x00ff00f5;
90_hwafft_64pts = 0x00ff03fe;
91_hwafft_128pts = 0x00ff0593;
92_hwafft_256pts = 0x00ff07a4;
93_hwafft_512pts = 0x00ff09a2;
94_hwafft_1024pts = 0x00ff0c1c;
95
96
diff --git a/dsplib_benchmarks/cfft1/t1_SCALE.h b/dsplib_benchmarks/cfft1/t1_SCALE.h
new file mode 100644
index 0000000..9958810
--- /dev/null
+++ b/dsplib_benchmarks/cfft1/t1_SCALE.h
@@ -0,0 +1,74 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* Test for cfft: rand */
36#define NX 8
37#define FNAME "t1"
38#define MAXERROR 16
39#define SCALING 1
40#pragma DATA_SECTION (x_br,".input")
41#pragma DATA_ALIGN (x_br, 2048)
42DATA x_br[2*NX] ;
43
44#pragma DATA_SECTION (scratch,".input")
45#pragma DATA_ALIGN (scratch, 2048)
46DATA scratch[2*NX] ;
47#pragma DATA_SECTION (x,".input")
48
49DATA x[2*NX] ={
5025635, 18304, /* 0 */
51-15313, -3150, /* 1 */
526084, 6574, /* 2 */
53-799, 16626, /* 3 */
5422285, 24023, /* 4 */
5514926, 13566, /* 5 */
56-2480, -18438, /* 6 */
57-27423, -5371, /* 7 */
58};
59
60#pragma DATA_SECTION (rtest,".test")
61
62DATA rtest[2*NX] ={
632865, 6517, /* 0 */
64-1015, -4888, /* 1 */
655434, 3294, /* 2 */
662785, 4096, /* 3 */
6710016, 1098, /* 4 */
688104, 1316, /* 5 */
695644, 10253, /* 6 */
70-8201, -3386, /* 7 */
71};
72
73DATA error;
74
diff --git a/dsplib_benchmarks/cfft1/t2_NOSCALE.h b/dsplib_benchmarks/cfft1/t2_NOSCALE.h
new file mode 100644
index 0000000..ce3b0a0
--- /dev/null
+++ b/dsplib_benchmarks/cfft1/t2_NOSCALE.h
@@ -0,0 +1,89 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* Test for cfft: rand */
36#define NX 16
37#define FNAME "t2"
38#define MAXERROR 64
39#pragma DATA_SECTION (x_br,".input")
40#pragma DATA_ALIGN (x_br, 2048)
41DATA x_br[2*NX] ;
42
43#pragma DATA_SECTION (scratch,".input")
44#pragma DATA_ALIGN (scratch, 2048)
45DATA scratch[2*NX] ;
46#pragma DATA_SECTION (x,".input")
47
48DATA x[2*NX] ={
49921, 891, /* 0 */
50-551, 853, /* 1 */
51218, -184, /* 2 */
52-29, 806, /* 3 */
53801, -906, /* 4 */
54536, -302, /* 5 */
55-90, 641, /* 6 */
56-987, -1004, /* 7 */
57658, -740, /* 8 */
58-114, -609, /* 9 */
59236, -617, /* 10 */
60597, 212, /* 11 */
61863, -467, /* 12 */
62487, -617, /* 13 */
63-663, -993, /* 14 */
64-194, 505, /* 15 */
65};
66
67#pragma DATA_SECTION (rtest,".test")
68
69DATA rtest[2*NX] ={
702698, -2525, /* 0 */
711760, 4307, /* 1 */
72-1070, 24, /* 2 */
732951, 3820, /* 3 */
742348, -1039, /* 4 */
75-2370, 2971, /* 5 */
764689, 2939, /* 6 */
77-426, -735, /* 7 */
783197, -2219, /* 8 */
79-24, -3405, /* 9 */
800, 609, /* 10 */
812213, 228, /* 11 */
824735, 903, /* 12 */
83-68, 2900, /* 13 */
84-3961, 2523, /* 14 */
85-1930, 2960, /* 15 */
86};
87
88DATA error;
89
diff --git a/dsplib_benchmarks/cfft1/t2_SCALE.h b/dsplib_benchmarks/cfft1/t2_SCALE.h
new file mode 100644
index 0000000..b668bd2
--- /dev/null
+++ b/dsplib_benchmarks/cfft1/t2_SCALE.h
@@ -0,0 +1,91 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* Test for cfft: rand */
36#define NX 16
37#define FNAME "t2"
38#define MAXERROR 16
39#define SCALING 1
40#pragma DATA_SECTION (x_br,".input")
41#pragma DATA_ALIGN (x_br, 2048)
42DATA x_br[2*NX] ;
43
44#pragma DATA_SECTION (scratch,".input")
45#pragma DATA_ALIGN (scratch, 2048)
46DATA scratch[2*NX] ;
47#pragma DATA_SECTION (x,".input")
48#pragma DATA_ALIGN (x, 2048)
49
50DATA x[2*NX] ={
5123773, -2998, /* 0 */
5222759, 23573, /* 1 */
53-4899, -1857, /* 2 */
5421490, -4442, /* 3 */
55-24136, 18901, /* 4 */
56-8033, 1373, /* 5 */
5717096, -16234, /* 6 */
58-26758, 9397, /* 7 */
59-19714, 18458, /* 8 */
60-16227, -26225, /* 9 */
61-16448, 9896, /* 10 */
625666, -6580, /* 11 */
63-12437, 18113, /* 12 */
64-16443, 153, /* 13 */
65-26463, 11435, /* 14 */
6613472, -3882, /* 15 */
67};
68
69#pragma DATA_SECTION (rtest,".test")
70
71DATA rtest[2*NX] ={
72-4206, 3068, /* 0 */
736064, -1581, /* 1 */
742009, -3210, /* 2 */
757369, -3740, /* 3 */
76161, 5065, /* 4 */
778019, 953, /* 5 */
781238, -5800, /* 6 */
79-53, -2434, /* 7 */
80-3698, 3896, /* 8 */
81-6844, -3103, /* 9 */
824674, 2013, /* 10 */
83-2688, -6683, /* 11 */
84-387, 1088, /* 12 */
853828, 1291, /* 13 */
862235, 1608, /* 14 */
876045, 4566, /* 15 */
88};
89
90DATA error;
91
diff --git a/dsplib_benchmarks/cfft1/t3_NOSCALE.h b/dsplib_benchmarks/cfft1/t3_NOSCALE.h
new file mode 100644
index 0000000..dc1eabe
--- /dev/null
+++ b/dsplib_benchmarks/cfft1/t3_NOSCALE.h
@@ -0,0 +1,121 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* Test for cfft: rand */
36#define NX 32
37#define FNAME "t3"
38#define MAXERROR 64
39#pragma DATA_SECTION (x_br,".input")
40#pragma DATA_ALIGN (x_br, 2048)
41DATA x_br[2*NX] ;
42
43#pragma DATA_SECTION (scratch,".input")
44#pragma DATA_ALIGN (scratch, 2048)
45DATA scratch[2*NX] ;
46#pragma DATA_SECTION (x,".input")
47
48DATA x[2*NX] ={
49-113, 651, /* 0 */
50884, 328, /* 1 */
51-70, -324, /* 2 */
52-167, -431, /* 3 */
53708, -326, /* 4 */
5451, 69, /* 5 */
55-609, 465, /* 6 */
56352, -391, /* 7 */
57692, 693, /* 8 */
58-984, 139, /* 9 */
59371, -266, /* 10 */
60-247, 415, /* 11 */
61679, 95, /* 12 */
625, -113, /* 13 */
63428, 398, /* 14 */
64-146, 248, /* 15 */
65-401, 603, /* 16 */
66-636, 935, /* 17 */
67-628, 46, /* 18 */
68373, 778, /* 19 */
69-404, -670, /* 20 */
7085, 982, /* 21 */
71-715, -469, /* 22 */
72405, -508, /* 23 */
73-250, 769, /* 24 */
74737, 485, /* 25 */
75724, -745, /* 26 */
76191, -1000, /* 27 */
77-8, 806, /* 28 */
78818, -617, /* 29 */
79658, -413, /* 30 */
80296, 330, /* 31 */
81};
82
83#pragma DATA_SECTION (rtest,".test")
84
85DATA rtest[2*NX] ={
863093, 2977, /* 0 */
874997, -2703, /* 1 */
88556, 5243, /* 2 */
89-985, -1032, /* 3 */
90-1295, 4439, /* 4 */
911115, 1314, /* 5 */
92-1704, 2300, /* 6 */
93660, 221, /* 7 */
943514, 4025, /* 8 */
95-821, -1330, /* 9 */
96-4710, -6098, /* 10 */
97-3561, -1190, /* 11 */
981531, 3609, /* 12 */
99-861, -3420, /* 13 */
1002778, -4696, /* 14 */
101-2682, 7803, /* 15 */
102-954, -336, /* 16 */
103263, -1767, /* 17 */
104-4337, 2041, /* 18 */
10578, -3568, /* 19 */
106-3340, -87, /* 20 */
107-799, -1104, /* 21 */
1083761, 1475, /* 22 */
1092328, 7832, /* 23 */
110-2022, 3831, /* 24 */
111-3427, 118, /* 25 */
112-2923, -550, /* 26 */
1133678, 1667, /* 27 */
114-1084, 3280, /* 28 */
1151220, 1735, /* 29 */
116-1073, -1381, /* 30 */
1173391, -3827, /* 31 */
118};
119
120DATA error;
121
diff --git a/dsplib_benchmarks/cfft1/t3_SCALE.h b/dsplib_benchmarks/cfft1/t3_SCALE.h
new file mode 100644
index 0000000..76c36ab
--- /dev/null
+++ b/dsplib_benchmarks/cfft1/t3_SCALE.h
@@ -0,0 +1,122 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* Test for cfft: rand */
36#define NX 32
37#define FNAME "t3"
38#define MAXERROR 16
39#define SCALING 1
40#pragma DATA_SECTION (x_br,".input")
41#pragma DATA_ALIGN (x_br, 2048)
42DATA x_br[2*NX] ;
43
44#pragma DATA_SECTION (scratch,".input")
45#pragma DATA_ALIGN (scratch, 2048)
46DATA scratch[2*NX] ;
47#pragma DATA_SECTION (x,".input")
48
49DATA x[2*NX] ={
50-11593, 17492, /* 0 */
51-18414, 27105, /* 1 */
52-18190, 1340, /* 2 */
5310811, 22554, /* 3 */
54-11703, -19404, /* 4 */
552472, 28464, /* 5 */
56-20715, -13561, /* 6 */
5711741, -14695, /* 7 */
58-7217, 22293, /* 8 */
5921360, 14079, /* 9 */
6020982, -21566, /* 10 */
615551, -28969, /* 11 */
62-205, 23370, /* 12 */
6323718, -17851, /* 13 */
6419082, -11943, /* 14 */
658597, 9578, /* 15 */
6618865, -12792, /* 16 */
679506, -1826, /* 17 */
68-9377, -25823, /* 18 */
69-12476, 28973, /* 19 */
70-9423, 4912, /* 20 */
712021, -4540, /* 21 */
7213474, 920, /* 22 */
73-11316, -9852, /* 23 */
7420083, -3981, /* 24 */
754038, -16260, /* 25 */
76-7689, 4735, /* 26 */
7712028, 15447, /* 27 */
782763, 1769, /* 28 */
79-3271, 8337, /* 29 */
8011543, -17262, /* 30 */
817197, -7131, /* 31 */
82};
83
84#pragma DATA_SECTION (rtest,".test")
85
86DATA rtest[2*NX] ={
872633, 122, /* 0 */
88-2831, 2073, /* 1 */
89980, 5079, /* 2 */
90-794, -446, /* 3 */
912566, 620, /* 4 */
921295, 1409, /* 5 */
9330, 1861, /* 6 */
94519, 3656, /* 7 */
95439, 3360, /* 8 */
963840, -397, /* 9 */
97-2577, 384, /* 10 */
98-2910, 1665, /* 11 */
992893, 539, /* 12 */
100219, 4217, /* 13 */
1014235, -3781, /* 14 */
102-1096, -4250, /* 15 */
103-1966, -3217, /* 16 */
104-1546, 1621, /* 17 */
105-3546, -2042, /* 18 */
1063187, 2674, /* 19 */
107-114, 2505, /* 20 */
108-1856, 4088, /* 21 */
1092622, 357, /* 22 */
110-3046, -6927, /* 23 */
111-911, 3941, /* 24 */
112-166, 305, /* 25 */
113-512, -2165, /* 26 */
114-6877, 1000, /* 27 */
115-508, -2121, /* 28 */
116-5, 1076, /* 29 */
117-2635, -3101, /* 30 */
118-3170, 3370, /* 31 */
119};
120
121DATA error;
122
diff --git a/dsplib_benchmarks/cfft1/t4_NOSCALE.h b/dsplib_benchmarks/cfft1/t4_NOSCALE.h
new file mode 100644
index 0000000..3b9dcc4
--- /dev/null
+++ b/dsplib_benchmarks/cfft1/t4_NOSCALE.h
@@ -0,0 +1,185 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* Test for cfft: rand */
36#define NX 64
37#define FNAME "t4"
38#define MAXERROR 64
39#pragma DATA_SECTION (x_br,".input")
40#pragma DATA_ALIGN (x_br, 2048)
41DATA x_br[2*NX] ;
42
43#pragma DATA_SECTION (scratch,".input")
44#pragma DATA_ALIGN (scratch, 2048)
45DATA scratch[2*NX] ;
46#pragma DATA_SECTION (x,".input")
47
48DATA x[2*NX] ={
49-442, 222, /* 0 */
50-64, -992, /* 1 */
51-892, -991, /* 2 */
521000, -635, /* 3 */
53169, 177, /* 4 */
54-157, -906, /* 5 */
5531, -272, /* 6 */
56-341, 269, /* 7 */
57-138, 445, /* 8 */
58-562, 394, /* 9 */
59163, -852, /* 10 */
60533, -94, /* 11 */
6161, -120, /* 12 */
62287, -301, /* 13 */
63-596, -710, /* 14 */
64-247, 359, /* 15 */
65580, 407, /* 16 */
66370, 465, /* 17 */
67-80, -45, /* 18 */
68138, 112, /* 19 */
69602, -777, /* 20 */
70-903, -101, /* 21 */
71210, 442, /* 22 */
72-921, 804, /* 23 */
73-174, -465, /* 24 */
74-400, -503, /* 25 */
75766, 748, /* 26 */
76-994, -549, /* 27 */
77548, 624, /* 28 */
78964, 836, /* 29 */
791003, -550, /* 30 */
80591, -534, /* 31 */
81-126, -923, /* 32 */
82-4, -864, /* 33 */
83-586, 288, /* 34 */
84293, -634, /* 35 */
85-369, 704, /* 36 */
86942, -668, /* 37 */
87464, -675, /* 38 */
88-181, 1012, /* 39 */
89500, -124, /* 40 */
90-476, -328, /* 41 */
91-124, -381, /* 42 */
92887, -277, /* 43 */
93375, -219, /* 44 */
94-589, 187, /* 45 */
95694, -779, /* 46 */
96263, -946, /* 47 */
97-750, -85, /* 48 */
98-600, 757, /* 49 */
99219, 889, /* 50 */
100265, -483, /* 51 */
101-266, -696, /* 52 */
102153, 763, /* 53 */
103-100, -537, /* 54 */
104-935, 298, /* 55 */
105-969, 956, /* 56 */
106-384, 337, /* 57 */
107-998, 758, /* 58 */
108-238, -1004, /* 59 */
109374, -744, /* 60 */
110-834, 652, /* 61 */
111-952, -144, /* 62 */
112230, 799, /* 63 */
113};
114
115#pragma DATA_SECTION (rtest,".test")
116
117DATA rtest[2*NX] ={
118-2683, -5171, /* 0 */
119-6997, -1164, /* 1 */
120-5694, -8140, /* 2 */
121-2881, -3132, /* 3 */
1223343, -3327, /* 4 */
123144, -2923, /* 5 */
124-4638, 438, /* 6 */
125-659, 1533, /* 7 */
126-8019, 5880, /* 8 */
127-4733, 2764, /* 9 */
128-4240, -28, /* 10 */
129-5387, -834, /* 11 */
1305402, -2421, /* 12 */
131-1914, -161, /* 13 */
132-9966, -3178, /* 14 */
1334800, 3425, /* 15 */
1341984, 4794, /* 16 */
1352447, 6170, /* 17 */
1367205, 2502, /* 18 */
137-51, 4434, /* 19 */
1382490, 6276, /* 20 */
139-2392, -2695, /* 21 */
14010, 6305, /* 22 */
141586, 4530, /* 23 */
142-7650, -4955, /* 24 */
143174, -1783, /* 25 */
144-7934, -10209, /* 26 */
145-382, -2796, /* 27 */
146-7568, -2730, /* 28 */
1471272, 2519, /* 29 */
148-3419, 449, /* 30 */
149-3459, 1367, /* 31 */
1501110, -1652, /* 32 */
151-5005, -3789, /* 33 */
152-3904, 8216, /* 34 */
1534868, -4833, /* 35 */
154-4368, 2567, /* 36 */
155-1948, -156, /* 37 */
1564205, -2328, /* 38 */
157-464, 762, /* 39 */
1589267, 1657, /* 40 */
159-5115, 7258, /* 41 */
16057, -2647, /* 42 */
161-4156, 5771, /* 43 */
162-1363, 371, /* 44 */
1638709, -11134, /* 45 */
164980, 6264, /* 46 */
165-722, 5012, /* 47 */
166-478, -409, /* 48 */
1674694, -6636, /* 49 */
1686026, -2520, /* 50 */
1694478, 2008, /* 51 */
170-1833, -5392, /* 52 */
1719518, 1624, /* 53 */
1725686, -6871, /* 54 */
173-2521, 12730, /* 55 */
174-5654, 3350, /* 56 */
1753021, 6058, /* 57 */
1763949, -7401, /* 58 */
177326, 7031, /* 59 */
1784223, -4871, /* 60 */
179946, 1066, /* 61 */
1805312, 2773, /* 62 */
181-7320, 2574, /* 63 */
182};
183
184DATA error;
185
diff --git a/dsplib_benchmarks/cfft1/t4_SCALE.h b/dsplib_benchmarks/cfft1/t4_SCALE.h
new file mode 100644
index 0000000..87a7788
--- /dev/null
+++ b/dsplib_benchmarks/cfft1/t4_SCALE.h
@@ -0,0 +1,192 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* Test for cfft: rand */
36#define NX 64
37#define FNAME "t4"
38#define MAXERROR 16
39#define SCALING 1
40
41#define MAXERROR 16
42#define SCALING 1
43
44
45#pragma DATA_SECTION (x_br,".input")
46#pragma DATA_ALIGN (x_br, 2048)
47DATA x_br[2*NX] ;
48
49#pragma DATA_SECTION (scratch,".input")
50#pragma DATA_ALIGN (scratch, 2048)
51DATA scratch[2*NX] ;
52
53#pragma DATA_SECTION (x,".input")
54
55DATA x[2*NX] ={
5613971, 9823, /* 0 */
578918, 11219, /* 1 */
58-1919, -1066, /* 2 */
593344, 2704, /* 3 */
6014508, -18688, /* 4 */
61-21739, -2429, /* 5 */
625072, 10645, /* 6 */
63-22178, 19372, /* 7 */
64-4174, -11190, /* 8 */
65-9617, -12094, /* 9 */
6618461, 18029, /* 10 */
67-23917, -13199, /* 11 */
6813213, 15034, /* 12 */
6923219, 20139, /* 13 */
7024167, -13222, /* 14 */
7114244, -12856, /* 15 */
72-3025, -22204, /* 16 */
73-84, -20792, /* 17 */
74-14106, 6944, /* 18 */
757076, -15244, /* 19 */
76-8875, 16957, /* 20 */
7722689, -16082, /* 21 */
7811176, -16235, /* 22 */
79-4342, 24375, /* 23 */
8012060, -2970, /* 24 */
81-11444, -7888, /* 25 */
82-2963, -9162, /* 26 */
8321371, -6654, /* 27 */
849040, -5265, /* 28 */
85-14175, 4513, /* 29 */
8616729, -18752, /* 30 */
876350, -22777, /* 31 */
88-18060, -2042, /* 32 */
89-14443, 18239, /* 33 */
905286, 21413, /* 34 */
916405, -11616, /* 35 */
92-6388, -16752, /* 36 */
933705, 18386, /* 37 */
94-2396, -12927, /* 38 */
95-22493, 7191, /* 39 */
96-23317, 23023, /* 40 */
97-9238, 8133, /* 41 */
98-24023, 18264, /* 42 */
99-5722, -24168, /* 43 */
1009030, -17901, /* 44 */
101-20079, 15718, /* 45 */
102-22915, -3444, /* 46 */
1035542, 19248, /* 47 */
1045352, 11584, /* 48 */
105-23880, 9237, /* 49 */
106-23851, -7589, /* 50 */
107-15284, -16470, /* 51 */
1084286, -16983, /* 52 */
109-21818, -15233, /* 53 */
110-6531, -3825, /* 54 */
1116482, 17554, /* 55 */
11210732, -481, /* 56 */
1139501, 15579, /* 57 */
114-20511, -1935, /* 58 */
115-2251, -2104, /* 59 */
116-2869, -2432, /* 60 */
117-7237, -4329, /* 61 */
118-17082, 19804, /* 62 */
1198661, -24382, /* 63 */
120};
121
122#pragma DATA_SECTION (rtest,".test")
123
124DATA rtest[2*NX] ={
125-2068, -785, /* 0 */
126-987, -3092, /* 1 */
1272094, 1909, /* 2 */
128-524, 1146, /* 3 */
129521, -491, /* 4 */
130-710, -905, /* 5 */
1311666, -2966, /* 6 */
1323081, -1402, /* 7 */
133-711, 3381, /* 8 */
134-1190, 21, /* 9 */
135455, 9, /* 10 */
136-177, 1146, /* 11 */
1372740, -657, /* 12 */
138-600, -30, /* 13 */
1392346, 212, /* 14 */
1401479, -4191, /* 15 */
1412847, 337, /* 16 */
142-218, 1229, /* 17 */
143-1663, -111, /* 18 */
1442344, 507, /* 19 */
1451728, 2919, /* 20 */
1461526, -74, /* 21 */
147142, -1693, /* 22 */
1481800, 282, /* 23 */
149-2999, -1415, /* 24 */
150310, -121, /* 25 */
1513505, 2798, /* 26 */
1521129, -233, /* 27 */
153-544, 815, /* 28 */
154-747, 3438, /* 29 */
155-212, 1371, /* 30 */
156-226, 1165, /* 31 */
1571132, -264, /* 32 */
1581722, -95, /* 33 */
159262, -1499, /* 34 */
160-3127, -1644, /* 35 */
161-1743, 925, /* 36 */
162229, 387, /* 37 */
163-2583, 2491, /* 38 */
164-1533, 875, /* 39 */
1652099, 475, /* 40 */
166-3592, -1913, /* 41 */
167-1162, 1295, /* 42 */
168625, 1462, /* 43 */
169-1877, -518, /* 44 */
1703158, 2511, /* 45 */
171-1412, -3200, /* 46 */
172965, -1061, /* 47 */
173-320, -1820, /* 48 */
1743218, 676, /* 49 */
175-1641, 942, /* 50 */
176348, -1325, /* 51 */
177-1880, -2501, /* 52 */
178-1410, 1972, /* 53 */
179-1786, 680, /* 54 */
1805987, -331, /* 55 */
181-791, 780, /* 56 */
182-1156, 1208, /* 57 */
183-745, 3239, /* 58 */
1842787, 368, /* 59 */
1851418, -1898, /* 60 */
1860, -161, /* 61 */
187-877, -884, /* 62 */
1881489, 4100, /* 63 */
189};
190
191DATA error;
192
diff --git a/dsplib_benchmarks/cfft1/t5_NOSCALE.h b/dsplib_benchmarks/cfft1/t5_NOSCALE.h
new file mode 100644
index 0000000..d13c1ef
--- /dev/null
+++ b/dsplib_benchmarks/cfft1/t5_NOSCALE.h
@@ -0,0 +1,313 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* Test for cfft: rand */
36#define NX 128
37#define FNAME "t5"
38#define MAXERROR 70
39#pragma DATA_SECTION (x_br,".input")
40#pragma DATA_ALIGN (x_br, 2048)
41DATA x_br[2*NX] ;
42
43#pragma DATA_SECTION (scratch,".input")
44#pragma DATA_ALIGN (scratch, 2048)
45DATA scratch[2*NX] ;
46#pragma DATA_SECTION (x,".input")
47
48DATA x[2*NX] ={
49481, -351, /* 0 */
50383, -45, /* 1 */
51-316, 198, /* 2 */
52-684, -694, /* 3 */
53-706, 674, /* 4 */
54-633, 934, /* 5 */
55-159, 195, /* 6 */
56728, -966, /* 7 */
57-20, 639, /* 8 */
58646, 225, /* 9 */
59-81, 412, /* 10 */
60-88, -836, /* 11 */
61-101, -154, /* 12 */
62-180, -255, /* 13 */
63822, -684, /* 14 */
64-1013, 682, /* 15 */
65-415, 693, /* 16 */
66-924, -100, /* 17 */
67395, 935, /* 18 */
68307, -723, /* 19 */
69989, 757, /* 20 */
70107, 551, /* 21 */
71-205, -115, /* 22 */
72-617, 247, /* 23 */
73256, 924, /* 24 */
74477, 286, /* 25 */
75-255, -518, /* 26 */
76-1004, -302, /* 27 */
77-165, -640, /* 28 */
78519, -20, /* 29 */
79601, -186, /* 30 */
80859, -75, /* 31 */
81705, 227, /* 32 */
82-271, -879, /* 33 */
83247, -381, /* 34 */
84473, 221, /* 35 */
85-627, -666, /* 36 */
86828, 247, /* 37 */
87141, -521, /* 38 */
88269, 178, /* 39 */
89-544, 12, /* 40 */
9099, -73, /* 41 */
91883, 84, /* 42 */
92-338, 905, /* 43 */
93318, -325, /* 44 */
94-222, -202, /* 45 */
95260, -394, /* 46 */
96407, -182, /* 47 */
97-211, -439, /* 48 */
98-177, -217, /* 49 */
99317, 6, /* 50 */
100691, 454, /* 51 */
101-263, -397, /* 52 */
102-154, -795, /* 53 */
103193, -117, /* 54 */
104134, -69, /* 55 */
105443, -994, /* 56 */
10623, 335, /* 57 */
107566, 458, /* 58 */
108-22, -448, /* 59 */
109-644, -488, /* 60 */
110410, 426, /* 61 */
111988, 581, /* 62 */
112627, 995, /* 63 */
113416, -55, /* 64 */
114-31, 824, /* 65 */
115-790, -101, /* 66 */
116337, 623, /* 67 */
117-276, 673, /* 68 */
118-738, -684, /* 69 */
119136, -218, /* 70 */
120661, 42, /* 71 */
121356, 446, /* 72 */
1221022, 141, /* 73 */
123945, -81, /* 74 */
124-904, -112, /* 75 */
125-287, -845, /* 76 */
12699, -116, /* 77 */
127-488, -274, /* 78 */
128199, -405, /* 79 */
129-923, 720, /* 80 */
130145, 531, /* 81 */
131411, 921, /* 82 */
132946, 118, /* 83 */
133513, -995, /* 84 */
134491, 196, /* 85 */
135-140, 647, /* 86 */
136274, 976, /* 87 */
137620, -570, /* 88 */
138-853, 417, /* 89 */
139912, 45, /* 90 */
140851, 886, /* 91 */
141208, 436, /* 92 */
142-505, -557, /* 93 */
143764, -104, /* 94 */
14427, -672, /* 95 */
145476, 960, /* 96 */
146-160, -296, /* 97 */
147944, -924, /* 98 */
148-877, 522, /* 99 */
149109, 808, /* 100 */
150-426, -438, /* 101 */
151733, -510, /* 102 */
152-337, 886, /* 103 */
153369, -756, /* 104 */
154-915, 902, /* 105 */
155-294, 413, /* 106 */
156-4, 711, /* 107 */
157-135, -596, /* 108 */
158127, -92, /* 109 */
159238, -858, /* 110 */
160-792, 719, /* 111 */
161815, 127, /* 112 */
162521, -371, /* 113 */
163596, -257, /* 114 */
164644, 753, /* 115 */
165348, -262, /* 116 */
166-613, -873, /* 117 */
167-465, -615, /* 118 */
168258, -923, /* 119 */
16975, 136, /* 120 */
170-903, -775, /* 121 */
171-842, 45, /* 122 */
172-469, -785, /* 123 */
173-187, 552, /* 124 */
174-54, -256, /* 125 */
175837, 662, /* 126 */
176197, -929, /* 127 */
177};
178
179#pragma DATA_SECTION (rtest,".test")
180
181DATA rtest[2*NX] ={
1829831, -169, /* 0 */
183-10151, -2722, /* 1 */
1844014, -1154, /* 2 */
1856246, -4766, /* 3 */
1863508, 3271, /* 4 */
187-4285, -7229, /* 5 */
188-95, 9761, /* 6 */
1895371, -2234, /* 7 */
1906523, -923, /* 8 */
1916768, -3833, /* 9 */
192-1271, 10179, /* 10 */
19329, 1422, /* 11 */
1943500, 11316, /* 12 */
1952598, -6763, /* 13 */
1961931, -4041, /* 14 */
197-5278, -4240, /* 15 */
19811586, 6666, /* 16 */
1991251, 2580, /* 17 */
2009864, 4099, /* 18 */
201-2783, -4280, /* 19 */
2023470, -3467, /* 20 */
2037862, 768, /* 21 */
204-13074, -4681, /* 22 */
205-7614, -8417, /* 23 */
206-13167, 4584, /* 24 */
207-363, 303, /* 25 */
208204, -3998, /* 26 */
20914982, -2226, /* 27 */
2101203, 70, /* 28 */
211-1308, -2439, /* 29 */
2127531, 4502, /* 30 */
21310802, 5098, /* 31 */
214-8732, 5107, /* 32 */
2154732, 916, /* 33 */
2166070, -9717, /* 34 */
2172238, 694, /* 35 */
2182591, 7317, /* 36 */
219-4624, -7985, /* 37 */
2208405, -8026, /* 38 */
221-5357, -5254, /* 39 */
2223032, 684, /* 40 */
223-6323, -6601, /* 41 */
224-44, -4145, /* 42 */
225-3609, 2624, /* 43 */
2265962, -7308, /* 44 */
2277692, 9400, /* 45 */
228-4230, -13485, /* 46 */
229-5659, -8228, /* 47 */
2301156, 2528, /* 48 */
231-409, 2947, /* 49 */
232-799, -1348, /* 50 */
233-7681, 7511, /* 51 */
2347662, 2136, /* 52 */
235-354, -1094, /* 53 */
236-1407, -10554, /* 54 */
23712596, 3135, /* 55 */
238-275, -811, /* 56 */
2391272, -106, /* 57 */
2402872, -8061, /* 58 */
2419630, -4813, /* 59 */
2424324, 2527, /* 60 */
243-7001, 12551, /* 61 */
244-13932, 6058, /* 62 */
2452688, 4279, /* 63 */
24610001, -1779, /* 64 */
2478098, 14855, /* 65 */
248979, 9952, /* 66 */
249-5083, -1615, /* 67 */
250-3555, 5738, /* 68 */
251-7229, 11368, /* 69 */
252-2324, -5611, /* 70 */
2535581, 605, /* 71 */
2543030, 7596, /* 72 */
2555198, -8008, /* 73 */
256352, -10220, /* 74 */
257-6277, 5449, /* 75 */
258-4691, -4136, /* 76 */
259-2003, 1683, /* 77 */
260-2706, 110, /* 78 */
2611948, 7204, /* 79 */
2623553, 940, /* 80 */
2635754, 401, /* 81 */
264-1857, 804, /* 82 */
265-8505, -347, /* 83 */
266-2651, 1857, /* 84 */
267-4818, -9892, /* 85 */
2687739, 3038, /* 86 */
26910103, 4471, /* 87 */
2701484, 7716, /* 88 */
271-11141, -7423, /* 89 */
272-1348, 753, /* 90 */
2733109, 1305, /* 91 */
274-9628, -1854, /* 92 */
275-1279, -12093, /* 93 */
276-8178, -10786, /* 94 */
277-3163, 2289, /* 95 */
278-3078, -2095, /* 96 */
2792564, 11903, /* 97 */
280-1549, 2526, /* 98 */
281-7826, -1867, /* 99 */
2823426, 6197, /* 100 */
283-11429, 8436, /* 101 */
2842385, -10589, /* 102 */
2859909, 6880, /* 103 */
286-2826, -3488, /* 104 */
287-7013, 5384, /* 105 */
288-4672, 1977, /* 106 */
2892332, 598, /* 107 */
29015191, -10798, /* 108 */
2911494, -5045, /* 109 */
292-518, -953, /* 110 */
2933412, -1210, /* 111 */
294-1084, 2605, /* 112 */
295-1833, -7646, /* 113 */
29612873, -3791, /* 114 */
297-2457, -1146, /* 115 */
29814804, -15739, /* 116 */
2996673, -7082, /* 117 */
300-1368, -10025, /* 118 */
3015484, -2143, /* 119 */
302516, 991, /* 120 */
3031545, 590, /* 121 */
304-2645, 17747, /* 122 */
305-5660, 159, /* 123 */
306-115, -2259, /* 124 */
307-3347, -4946, /* 125 */
308-12320, -1284, /* 126 */
309-4019, -3073, /* 127 */
310};
311
312DATA error;
313
diff --git a/dsplib_benchmarks/cfft1/t5_SCALE.h b/dsplib_benchmarks/cfft1/t5_SCALE.h
new file mode 100644
index 0000000..dfcd0a8
--- /dev/null
+++ b/dsplib_benchmarks/cfft1/t5_SCALE.h
@@ -0,0 +1,314 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* Test for cfft: rand */
36#define NX 128
37#define FNAME "t5"
38#define MAXERROR 16
39#define SCALING 1
40#pragma DATA_SECTION (x_br,".input")
41#pragma DATA_ALIGN (x_br, 2048)
42DATA x_br[2*NX] ;
43
44#pragma DATA_SECTION (scratch,".input")
45#pragma DATA_ALIGN (scratch, 2048)
46DATA scratch[2*NX] ;
47#pragma DATA_SECTION (x,".input")
48
49DATA x[2*NX] ={
50-10290, 17199, /* 0 */
51-22899, -2458, /* 1 */
529811, 23191, /* 2 */
537624, -17922, /* 3 */
5424531, 18789, /* 4 */
552675, 13684, /* 5 */
56-5076, -2837, /* 6 */
57-15299, 6126, /* 7 */
586359, 22941, /* 8 */
5911852, 7111, /* 9 */
60-6304, -12834, /* 10 */
61-24894, -7482, /* 11 */
62-4071, -15854, /* 12 */
6312884, -476, /* 13 */
6414926, -4609, /* 14 */
6521330, -1853, /* 15 */
6617508, 5634, /* 16 */
67-6717, -21781, /* 17 */
686135, -9433, /* 18 */
6911746, 5504, /* 19 */
70-15548, -16507, /* 20 */
7120560, 6147, /* 21 */
723515, -12903, /* 22 */
736693, 4437, /* 23 */
74-13490, 307, /* 24 */
752477, -1789, /* 25 */
7621920, 2103, /* 26 */
77-8371, 22466, /* 27 */
787899, -8038, /* 28 */
79-5491, -4988, /* 29 */
806466, -9768, /* 30 */
8110111, -4492, /* 31 */
82-5223, -10873, /* 32 */
83-4387, -5378, /* 33 */
847883, 153, /* 34 */
8517146, 11274, /* 35 */
86-6522, -9843, /* 36 */
87-3797, -19699, /* 37 */
884808, -2881, /* 38 */
893338, -1689, /* 39 */
9010998, -24651, /* 40 */
91574, 8332, /* 41 */
9214038, 11380, /* 42 */
93-542, -11092, /* 43 */
94-15954, -12098, /* 44 */
9510190, 10588, /* 45 */
9624517, 14417, /* 46 */
9715574, 24692, /* 47 */
9810339, -1354, /* 48 */
99-764, 20459, /* 49 */
100-19575, -2486, /* 50 */
1018373, 15466, /* 51 */
102-6838, 16703, /* 52 */
103-18283, -16951, /* 53 */
1043391, -5389, /* 54 */
10516405, 1054, /* 55 */
1068835, 11078, /* 56 */
10725367, 3514, /* 57 */
10823447, -1991, /* 58 */
109-22406, -2778, /* 59 */
110-7095, -20939, /* 60 */
1112464, -2871, /* 61 */
112-12100, -6791, /* 62 */
1134944, -10030, /* 63 */
114-22893, 17870, /* 64 */
1153609, 13179, /* 65 */
11610201, 22843, /* 66 */
11723480, 2942, /* 67 */
11812724, -24673, /* 68 */
11912189, 4884, /* 69 */
120-3461, 16060, /* 70 */
1216819, 24232, /* 71 */
12215391, -14125, /* 72 */
123-21136, 10345, /* 73 */
12422625, 1120, /* 74 */
12521126, 21987, /* 75 */
1265180, 10836, /* 76 */
127-12517, -13814, /* 77 */
12818967, -2558, /* 78 */
129680, -16650, /* 79 */
13011816, 23811, /* 80 */
131-3951, -7329, /* 81 */
13223433, -22905, /* 82 */
133-21736, 12968, /* 83 */
1342712, 20052, /* 84 */
135-10566, -10862, /* 85 */
13618181, -12637, /* 86 */
137-8343, 21979, /* 87 */
1389152, -18743, /* 88 */
139-22682, 22389, /* 89 */
140-7281, 10252, /* 90 */
141-87, 17658, /* 91 */
142-3330, -14767, /* 92 */
1433172, -2281, /* 93 */
1445923, -21278, /* 94 */
145-19639, 17833, /* 95 */
14620227, 3151, /* 96 */
14712928, -9179, /* 97 */
14814786, -6355, /* 98 */
14915996, 18680, /* 99 */
1508634, -6493, /* 100 */
151-15193, -21653, /* 101 */
152-11526, -15246, /* 102 */
1536411, -22882, /* 103 */
1541871, 3388, /* 104 */
155-22374, -19203, /* 105 */
156-20878, 1123, /* 106 */
157-11616, -19450, /* 107 */
158-4619, 13709, /* 108 */
159-1319, -6347, /* 109 */
16020773, 16425, /* 110 */
1614888, -23027, /* 111 */
162-8688, 4973, /* 112 */
163-1108, 22812, /* 113 */
1644935, -10728, /* 114 */
165-17196, 19749, /* 115 */
16616734, -20236, /* 116 */
16723166, -22079, /* 117 */
1684852, -13496, /* 118 */
169-23936, 21997, /* 119 */
17015852, -22190, /* 120 */
1715592, -11976, /* 121 */
17210234, 25371, /* 122 */
173-20713, -14629, /* 123 */
174-3815, -81, /* 124 */
175-6320, -10642, /* 125 */
176-16957, 8774, /* 126 */
17716921, 23261, /* 127 */
178};
179
180#pragma DATA_SECTION (rtest,".test")
181
182DATA rtest[2*NX] ={
1832078, -23, /* 0 */
184-814, -1672, /* 1 */
185440, 952, /* 2 */
1861, 1787, /* 3 */
187-552, -238, /* 4 */
188-438, 2057, /* 5 */
1891630, 478, /* 6 */
190-44, -752, /* 7 */
191699, -183, /* 8 */
192991, 75, /* 9 */
193-2147, -788, /* 10 */
194-2, -733, /* 11 */
195-182, -2506, /* 12 */
196-696, 625, /* 13 */
197-363, 22, /* 14 */
198-1237, 692, /* 15 */
1991933, 1727, /* 16 */
200-722, 616, /* 17 */
201-1298, 1572, /* 18 */
202765, -473, /* 19 */
203-421, -114, /* 20 */
204-274, -1804, /* 21 */
20582, 2285, /* 22 */
206-1146, 99, /* 23 */
207-1656, 1510, /* 24 */
208500, 898, /* 25 */
209995, 1076, /* 26 */
210-1904, 3380, /* 27 */
211-739, 868, /* 28 */
212-959, 1131, /* 29 */
213-131, -1231, /* 30 */
2141144, -1043, /* 31 */
215-2523, 215, /* 32 */
216154, -408, /* 33 */
2172171, -160, /* 34 */
218584, -928, /* 35 */
2191022, -2018, /* 36 */
2201266, 1884, /* 37 */
221-35, -716, /* 38 */
222-484, 1459, /* 39 */
223849, 1740, /* 40 */
224-336, -384, /* 41 */
22558, 901, /* 42 */
226-643, -476, /* 43 */
227-1683, 1408, /* 44 */
22882, -2477, /* 45 */
229-2443, 812, /* 46 */
230-1590, -81, /* 47 */
231470, 1042, /* 48 */
232-428, 1061, /* 49 */
23349, 554, /* 50 */
234-354, -1509, /* 51 */
235-1891, -17, /* 52 */
236-420, 482, /* 53 */
237-2235, 566, /* 54 */
2382037, -873, /* 55 */
239-231, 453, /* 56 */
240-200, 911, /* 57 */
241860, 1306, /* 58 */
242-1675, 2531, /* 59 */
243-2041, -316, /* 60 */
2441513, -1053, /* 61 */
245308, 1996, /* 62 */
246596, -691, /* 63 */
2472156, -1149, /* 64 */
248-252, 2768, /* 65 */
249-1092, 457, /* 66 */
2501534, 463, /* 67 */
251734, 300, /* 68 */
2521834, 956, /* 69 */
253-2521, 1675, /* 70 */
254-1047, -70, /* 71 */
255-1394, 1359, /* 72 */
25691, -1107, /* 73 */
257721, -993, /* 74 */
258-694, -2712, /* 75 */
259385, -158, /* 76 */
26053, -754, /* 77 */
261-487, -243, /* 78 */
262718, -188, /* 79 */
263295, -952, /* 80 */
264687, -434, /* 81 */
265252, -1544, /* 82 */
2661991, -1922, /* 83 */
2671387, -592, /* 84 */
268-91, 2340, /* 85 */
269623, -866, /* 86 */
2701359, -222, /* 87 */
271-873, 1573, /* 88 */
272-1845, -3169, /* 89 */
273-1244, -1582, /* 90 */
274-1141, -1541, /* 91 */
2752028, -1548, /* 92 */
276-688, 144, /* 93 */
277-873, 341, /* 94 */
2781266, 28, /* 95 */
279737, -639, /* 96 */
280-153, 2131, /* 97 */
281336, 106, /* 98 */
2821794, -286, /* 99 */
283-581, -701, /* 100 */
2842460, 701, /* 101 */
285-2526, -550, /* 102 */
2861849, -978, /* 103 */
287-692, -1662, /* 104 */
288-1303, -1408, /* 105 */
289619, -1937, /* 106 */
2901044, -293, /* 107 */
291-1416, 2261, /* 108 */
292286, 1294, /* 109 */
293331, 1226, /* 110 */
29489, 349, /* 111 */
295-914, 927, /* 112 */
29650, -1624, /* 113 */
297421, 1547, /* 114 */
298916, -1361, /* 115 */
299-1706, 2125, /* 116 */
300-266, -224, /* 117 */
301-317, 766, /* 118 */
3021669, 87, /* 119 */
303659, 1607, /* 120 */
30450, 1602, /* 121 */
305-3944, 416, /* 122 */
306119, -336, /* 123 */
307-496, 521, /* 124 */
308-502, 1020, /* 125 */
309-302, 2240, /* 126 */
310-873, 49, /* 127 */
311};
312
313DATA error;
314
diff --git a/dsplib_benchmarks/cfft1/t6_NOSCALE.h b/dsplib_benchmarks/cfft1/t6_NOSCALE.h
new file mode 100644
index 0000000..0e6896a
--- /dev/null
+++ b/dsplib_benchmarks/cfft1/t6_NOSCALE.h
@@ -0,0 +1,569 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* Test for cfft: rand */
36#define NX 256
37#define FNAME "t6"
38#define MAXERROR 130
39#pragma DATA_SECTION (x_br,".input")
40#pragma DATA_ALIGN (x_br, 2048)
41DATA x_br[2*NX] ;
42
43#pragma DATA_SECTION (scratch,".input")
44#pragma DATA_ALIGN (scratch, 2048)
45DATA scratch[2*NX] ;
46#pragma DATA_SECTION (x,".input")
47
48DATA x[2*NX] ={
49200, 529, /* 0 */
50919, -245, /* 1 */
51-433, -346, /* 2 */
52796, 8, /* 3 */
53-816, 132, /* 4 */
54-891, 547, /* 5 */
55-545, 573, /* 6 */
56886, -33, /* 7 */
57-895, 618, /* 8 */
58-483, -60, /* 9 */
591022, -609, /* 10 */
60-590, 163, /* 11 */
61-4, 340, /* 12 */
62-430, 361, /* 13 */
63353, 906, /* 14 */
64937, 553, /* 15 */
65545, 486, /* 16 */
66340, 750, /* 17 */
67-756, 1005, /* 18 */
68-829, 8, /* 19 */
69-994, 264, /* 20 */
70-434, 599, /* 21 */
71648, -106, /* 22 */
72994, 49, /* 23 */
73-989, -673, /* 24 */
74654, -757, /* 25 */
75248, -576, /* 26 */
76123, -808, /* 27 */
77-525, -735, /* 28 */
78659, -89, /* 29 */
79-485, 590, /* 30 */
80519, -449, /* 31 */
81326, -564, /* 32 */
82-586, 837, /* 33 */
83209, -1009, /* 34 */
84214, 181, /* 35 */
85326, 86, /* 36 */
86-649, 314, /* 37 */
87279, -383, /* 38 */
88-676, -551, /* 39 */
8981, -172, /* 40 */
90252, -413, /* 41 */
91380, 353, /* 42 */
92363, 897, /* 43 */
93771, -322, /* 44 */
94-998, 128, /* 45 */
95-389, -781, /* 46 */
96571, -678, /* 47 */
97-395, -453, /* 48 */
98873, 116, /* 49 */
99365, -30, /* 50 */
100-872, 926, /* 51 */
101-880, -549, /* 52 */
102-1000, -44, /* 53 */
103-559, 54, /* 54 */
10433, 599, /* 55 */
105-86, -629, /* 56 */
106416, 838, /* 57 */
107168, 864, /* 58 */
10818, -997, /* 59 */
109-872, 547, /* 60 */
110-629, 916, /* 61 */
111-247, 641, /* 62 */
112-458, 867, /* 63 */
113554, -617, /* 64 */
114-382, 356, /* 65 */
115282, 874, /* 66 */
116996, -320, /* 67 */
1175, 193, /* 68 */
118916, 236, /* 69 */
119671, -1017, /* 70 */
120855, 987, /* 71 */
121-793, 818, /* 72 */
122639, 394, /* 73 */
123836, -124, /* 74 */
124-704, 411, /* 75 */
125-774, 224, /* 76 */
126537, -410, /* 77 */
127454, 729, /* 78 */
128310, -795, /* 79 */
129520, -427, /* 80 */
130334, -825, /* 81 */
131785, -211, /* 82 */
132-467, -342, /* 83 */
133-165, 909, /* 84 */
134-588, 693, /* 85 */
135-951, -495, /* 86 */
136-858, -937, /* 87 */
137717, -1012, /* 88 */
138-328, 152, /* 89 */
139-70, 499, /* 90 */
140847, 628, /* 91 */
141-556, 281, /* 92 */
142741, -510, /* 93 */
143320, -729, /* 94 */
144801, 310, /* 95 */
145-25, 913, /* 96 */
1461008, 646, /* 97 */
147-260, 881, /* 98 */
14864, -390, /* 99 */
149-653, -474, /* 100 */
1503, 74, /* 101 */
151-160, -690, /* 102 */
152328, -592, /* 103 */
153355, -580, /* 104 */
154936, 310, /* 105 */
155-631, -916, /* 106 */
156-797, -555, /* 107 */
157133, 342, /* 108 */
158960, -388, /* 109 */
159-976, -396, /* 110 */
160758, 451, /* 111 */
161-969, 930, /* 112 */
16239, -756, /* 113 */
163-631, -885, /* 114 */
164441, -768, /* 115 */
165-511, -684, /* 116 */
166888, 842, /* 117 */
167-743, -745, /* 118 */
16844, 239, /* 119 */
169809, -474, /* 120 */
170905, -573, /* 121 */
171-338, 435, /* 122 */
172-129, 100, /* 123 */
173-60, 903, /* 124 */
174-719, -349, /* 125 */
175-746, 418, /* 126 */
17666, 908, /* 127 */
177462, 167, /* 128 */
178-208, 778, /* 129 */
179-290, 511, /* 130 */
180-440, -247, /* 131 */
181754, 461, /* 132 */
182258, -691, /* 133 */
183-531, 934, /* 134 */
184979, -623, /* 135 */
185287, 565, /* 136 */
186-554, 232, /* 137 */
187371, -692, /* 138 */
188339, -961, /* 139 */
189-749, -433, /* 140 */
190-978, 964, /* 141 */
191-487, 922, /* 142 */
192-786, -557, /* 143 */
193-882, 938, /* 144 */
194722, 368, /* 145 */
195-655, -912, /* 146 */
196-958, 204, /* 147 */
197479, -219, /* 148 */
19874, -583, /* 149 */
199-459, -651, /* 150 */
200-270, -867, /* 151 */
201-998, -1009, /* 152 */
202797, 591, /* 153 */
203749, -988, /* 154 */
204-504, 773, /* 155 */
205142, -302, /* 156 */
206-698, 454, /* 157 */
207193, 959, /* 158 */
208-346, -706, /* 159 */
209324, -691, /* 160 */
210744, -383, /* 161 */
211138, -964, /* 162 */
212983, -292, /* 163 */
213597, -969, /* 164 */
214-712, 601, /* 165 */
215681, 1022, /* 166 */
216-632, -799, /* 167 */
217284, 251, /* 168 */
218346, -753, /* 169 */
219557, -390, /* 170 */
220-247, -748, /* 171 */
221-120, -567, /* 172 */
222-35, -212, /* 173 */
223221, -748, /* 174 */
224-664, -531, /* 175 */
225-1020, 875, /* 176 */
226594, -224, /* 177 */
22727, 23, /* 178 */
228-588, -834, /* 179 */
229-813, -980, /* 180 */
230-702, -698, /* 181 */
231-190, 705, /* 182 */
232-189, 776, /* 183 */
233-916, -641, /* 184 */
234904, 1006, /* 185 */
235-717, 434, /* 186 */
236-237, 760, /* 187 */
237-387, -42, /* 188 */
238-679, -9, /* 189 */
239812, -436, /* 190 */
240-364, -900, /* 191 */
241479, -487, /* 192 */
242-183, -643, /* 193 */
243-206, 854, /* 194 */
24411, -772, /* 195 */
245-678, -997, /* 196 */
24650, -267, /* 197 */
247289, 406, /* 198 */
248-991, 797, /* 199 */
249689, 192, /* 200 */
250621, -704, /* 201 */
251405, -376, /* 202 */
252-79, -546, /* 203 */
253-855, -1007, /* 204 */
254656, -212, /* 205 */
255-629, 306, /* 206 */
256-112, -850, /* 207 */
257-998, 550, /* 208 */
258-392, 961, /* 209 */
259768, 439, /* 210 */
260686, 577, /* 211 */
261-342, -538, /* 212 */
262779, -624, /* 213 */
263-42, -485, /* 214 */
264124, 437, /* 215 */
265237, 978, /* 216 */
266331, 280, /* 217 */
267238, 94, /* 218 */
268379, 712, /* 219 */
26920, 618, /* 220 */
270438, 344, /* 221 */
27131, 350, /* 222 */
272216, 656, /* 223 */
273955, 963, /* 224 */
274659, -27, /* 225 */
275-374, 650, /* 226 */
276179, 289, /* 227 */
277-758, -397, /* 228 */
278-504, 329, /* 229 */
279620, -291, /* 230 */
280343, 897, /* 231 */
281-996, -26, /* 232 */
282126, -838, /* 233 */
283-94, 355, /* 234 */
284829, 30, /* 235 */
285-447, -571, /* 236 */
286-891, 460, /* 237 */
287-48, -885, /* 238 */
288990, 950, /* 239 */
289864, -599, /* 240 */
290125, -694, /* 241 */
291311, 283, /* 242 */
292558, -1024, /* 243 */
293-807, -337, /* 244 */
294-1022, -461, /* 245 */
29585, -933, /* 246 */
296-1010, -832, /* 247 */
297-100, -185, /* 248 */
298-624, 648, /* 249 */
299588, 758, /* 250 */
300242, -978, /* 251 */
301-993, 465, /* 252 */
302800, 712, /* 253 */
303535, 468, /* 254 */
304833, 931, /* 255 */
305};
306
307#pragma DATA_SECTION (rtest,".test")
308
309DATA rtest[2*NX] ={
310-2179, -3017, /* 0 */
31110689, 5957, /* 1 */
312-8034, 12103, /* 2 */
313-4585, -4117, /* 3 */
3143781, 7087, /* 4 */
31513363, -13247, /* 5 */
31627373, 14670, /* 6 */
3172877, 3226, /* 7 */
31811123, 5338, /* 8 */
319-6536, -3284, /* 9 */
320-7512, 2598, /* 10 */
321741, -415, /* 11 */
322-10752, -8824, /* 12 */
3232092, 6322, /* 13 */
324326, 14762, /* 14 */
3257075, 11493, /* 15 */
326-4283, 15711, /* 16 */
32718855, 2755, /* 17 */
328-2810, 17295, /* 18 */
32918883, -4054, /* 19 */
330-2536, -12530, /* 20 */
331-4822, 10991, /* 21 */
33216770, -4075, /* 22 */
333-15388, -7679, /* 23 */
334-9971, -11711, /* 24 */
3359618, 10885, /* 25 */
336-7566, 3154, /* 26 */
337-7359, -15644, /* 27 */
338-2750, 2810, /* 28 */
339-11769, -100, /* 29 */
3401822, -4430, /* 30 */
34112309, 10657, /* 31 */
34217474, -7012, /* 32 */
343-2584, -5363, /* 33 */
344-14961, 13255, /* 34 */
34511383, -5012, /* 35 */
3462449, 10641, /* 36 */
3479013, 3795, /* 37 */
3485987, -23021, /* 38 */
349-24189, 2411, /* 39 */
3506678, 11708, /* 40 */
351-19422, 3889, /* 41 */
352-1122, 16656, /* 42 */
353-4426, -2040, /* 43 */
3546179, -1709, /* 44 */
355-19075, 5060, /* 45 */
356-364, 9306, /* 46 */
3575035, -17948, /* 47 */
3588055, 6637, /* 48 */
3596532, -688, /* 49 */
360-5409, -2551, /* 50 */
361913, 6868, /* 51 */
362-6768, -5848, /* 52 */
363-12326, -1157, /* 53 */
364-18857, -5430, /* 54 */
365824, -7626, /* 55 */
366-3232, -4038, /* 56 */
367-716, -160, /* 57 */
368-356, 6066, /* 58 */
3694035, -6815, /* 59 */
370-651, -2622, /* 60 */
371-10, 1589, /* 61 */
37215290, 20140, /* 62 */
373-22075, 13049, /* 63 */
374-4293, -5208, /* 64 */
375-6795, 2835, /* 65 */
3763928, 10288, /* 66 */
377-9751, -2854, /* 67 */
378-2253, -993, /* 68 */
3795718, 1575, /* 69 */
3806385, 6174, /* 70 */
381-3189, 10133, /* 71 */
38214324, 393, /* 72 */
3839097, 750, /* 73 */
384-6252, -17864, /* 74 */
385-6472, 11875, /* 75 */
38612337, 10900, /* 76 */
387-6299, -11518, /* 77 */
388-2439, 1291, /* 78 */
38917809, 3078, /* 79 */
3907339, -1084, /* 80 */
3917735, -366, /* 81 */
392-3451, -14478, /* 82 */
3933244, -6093, /* 83 */
394-21451, -11292, /* 84 */
395-9551, 722, /* 85 */
396-8808, 10720, /* 86 */
3974820, 2454, /* 87 */
398-1947, -16244, /* 88 */
3991483, -522, /* 89 */
40014771, 1862, /* 90 */
4011229, 30, /* 91 */
402-13036, 8572, /* 92 */
403-4905, -4685, /* 93 */
404-3055, 3570, /* 94 */
405-4528, -6343, /* 95 */
406-6632, 183, /* 96 */
407-5054, 4806, /* 97 */
408-3808, 1581, /* 98 */
409538, -7285, /* 99 */
4106849, -20811, /* 100 */
41111272, 8277, /* 101 */
4128445, 16464, /* 102 */
4133843, 10625, /* 103 */
41418553, -13353, /* 104 */
4154218, 8114, /* 105 */
416-4202, -8888, /* 106 */
417-1478, 6883, /* 107 */
418109, -2924, /* 108 */
419-13136, -230, /* 109 */
4201798, -7162, /* 110 */
421-1369, 1819, /* 111 */
422-1187, 7682, /* 112 */
423791, -9595, /* 113 */
424-12963, -11075, /* 114 */
425-2559, 4693, /* 115 */
4266341, -8747, /* 116 */
427-17503, -12215, /* 117 */
428-10850, -3904, /* 118 */
4292981, 59, /* 119 */
430-3564, 4399, /* 120 */
431-2294, 2782, /* 121 */
4326747, 5897, /* 122 */
433-2839, -15230, /* 123 */
434-6455, 9733, /* 124 */
435-1108, -5160, /* 125 */
436-5113, 16625, /* 126 */
4375801, -7747, /* 127 */
438-19512, -3526, /* 128 */
439-3893, 508, /* 129 */
440-11977, -9698, /* 130 */
4416854, 14204, /* 131 */
4426832, 6715, /* 132 */
443-3475, 2174, /* 133 */
44410464, 13882, /* 134 */
445-17231, -10008, /* 135 */
4468909, -5400, /* 136 */
447-14818, 13323, /* 137 */
448-17740, -2616, /* 138 */
449-23697, -3957, /* 139 */
450365, 10042, /* 140 */
451-1673, 1514, /* 141 */
452-1520, 540, /* 142 */
4531289, -12637, /* 143 */
454-6775, 8374, /* 144 */
455-3875, -818, /* 145 */
456-7305, -4909, /* 146 */
4574820, 10802, /* 147 */
45811338, 434, /* 148 */
459-3042, 10303, /* 149 */
460-7377, -20942, /* 150 */
46114329, 9218, /* 151 */
462655, -3239, /* 152 */
463-20681, -9278, /* 153 */
464-4528, -9489, /* 154 */
465-2987, 2536, /* 155 */
46618220, -21684, /* 156 */
4673676, 4434, /* 157 */
468-10586, -32768, /* 158 */
46929738, 4147, /* 159 */
470982, 6809, /* 160 */
471-4697, -525, /* 161 */
4722913, 22667, /* 162 */
473958, 4161, /* 163 */
4743883, -1399, /* 164 */
475-8223, 3838, /* 165 */
476-267, 9819, /* 166 */
477-1853, 9006, /* 167 */
47819827, 3602, /* 168 */
47910566, 1126, /* 169 */
480-28342, 4534, /* 170 */
4817719, 18659, /* 171 */
482-1379, -934, /* 172 */
48321916, 6307, /* 173 */
484-2556, 3309, /* 174 */
48511431, -4421, /* 175 */
4869299, -737, /* 176 */
487984, -3541, /* 177 */
48815581, 6243, /* 178 */
4893629, 3716, /* 179 */
4904718, 11464, /* 180 */
491-7177, -7701, /* 181 */
49211515, 4636, /* 182 */
493-4751, 6138, /* 183 */
4946902, -8848, /* 184 */
495-3066, 32204, /* 185 */
4965817, 4156, /* 186 */
497-11190, 6613, /* 187 */
498-5791, -12357, /* 188 */
499-18607, 3439, /* 189 */
50010696, -9169, /* 190 */
501-6904, -14353, /* 191 */
502-21510, -3429, /* 192 */
503-6202, -15037, /* 193 */
504-2295, 9948, /* 194 */
505-8597, -2304, /* 195 */
5062297, 580, /* 196 */
5071048, 2186, /* 197 */
508954, 486, /* 198 */
509-3527, 3428, /* 199 */
5103866, -10314, /* 200 */
511-6020, 1747, /* 201 */
512-16770, 5544, /* 202 */
513-2731, -11156, /* 203 */
51411003, -7039, /* 204 */
515-7850, -11595, /* 205 */
51616186, 8473, /* 206 */
5173866, 7019, /* 207 */
5181370, -5107, /* 208 */
5197168, -12643, /* 209 */
52011052, -596, /* 210 */
52112547, 19849, /* 211 */
522-14397, -14836, /* 212 */
523-6048, 2295, /* 213 */
5246561, 7524, /* 214 */
5257674, -7665, /* 215 */
526-2198, 1867, /* 216 */
5274771, 5248, /* 217 */
528-10946, 5759, /* 218 */
529-6244, 14709, /* 219 */
53011807, 4767, /* 220 */
53111014, -3096, /* 221 */
53212057, 2345, /* 222 */
53315769, 386, /* 223 */
53424800, 19568, /* 224 */
535-8134, -2412, /* 225 */
53610677, -10294, /* 226 */
5371113, -5585, /* 227 */
5381727, 5131, /* 228 */
539-3995, -2145, /* 229 */
540-5022, 3541, /* 230 */
541-19893, -7961, /* 231 */
5424096, -11378, /* 232 */
54326016, 10608, /* 233 */
5444680, -5991, /* 234 */
545-3123, -6032, /* 235 */
546-8442, -9664, /* 236 */
54722417, -18682, /* 237 */
5485681, 4279, /* 238 */
5496435, -7531, /* 239 */
55012219, 4472, /* 240 */
5519438, -8864, /* 241 */
5525000, 20404, /* 242 */
55311439, 1248, /* 243 */
55411705, 6646, /* 244 */
55514359, 7896, /* 245 */
556204, -6705, /* 246 */
557-9440, -15566, /* 247 */
55815756, 23828, /* 248 */
559-1774, 845, /* 249 */
560-14887, -5048, /* 250 */
561-16730, 3878, /* 251 */
562-21662, 15738, /* 252 */
5638196, -8148, /* 253 */
5646593, -6143, /* 254 */
565-3317, 15005, /* 255 */
566};
567
568DATA error;
569
diff --git a/dsplib_benchmarks/cfft1/t6_SCALE.h b/dsplib_benchmarks/cfft1/t6_SCALE.h
new file mode 100644
index 0000000..f587508
--- /dev/null
+++ b/dsplib_benchmarks/cfft1/t6_SCALE.h
@@ -0,0 +1,570 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* Test for cfft: rand */
36#define NX 256
37#define FNAME "t6"
38#define MAXERROR 16
39#define SCALING 1
40#pragma DATA_SECTION (x_br,".input")
41#pragma DATA_ALIGN (x_br, 2048)
42DATA x_br[2*NX] ;
43
44#pragma DATA_SECTION (scratch,".input")
45#pragma DATA_ALIGN (scratch, 2048)
46DATA scratch[2*NX] ;
47#pragma DATA_SECTION (x,".input")
48
49DATA x[2*NX] ={
5012608, 11229, /* 0 */
517857, 17324, /* 1 */
52-17457, 23222, /* 2 */
53-19138, 185, /* 3 */
54-22948, 6105, /* 4 */
55-10019, 13840, /* 5 */
5614981, -2429, /* 6 */
5722963, 1152, /* 7 */
58-22830, -15540, /* 8 */
5915107, -17470, /* 9 */
605729, -13302, /* 10 */
612848, -18662, /* 11 */
62-12108, -16961, /* 12 */
6315231, -2036, /* 13 */
64-11201, 13628, /* 14 */
6511997, -10356, /* 15 */
667551, -13018, /* 16 */
67-13526, 19340, /* 17 */
684830, -23304, /* 18 */
694963, 4197, /* 19 */
707544, 1992, /* 20 */
71-14978, 7261, /* 21 */
726458, -8825, /* 22 */
73-15595, -12717, /* 23 */
741873, -3971, /* 24 */
755836, -9518, /* 25 */
768792, 8156, /* 26 */
778388, 20729, /* 27 */
7817824, -7420, /* 28 */
79-23041, 2978, /* 29 */
80-8969, -18027, /* 30 */
8113200, -15656, /* 31 */
82-9116, -10459, /* 32 */
8320182, 2687, /* 33 */
848453, -682, /* 34 */
85-20135, 21390, /* 35 */
86-20308, -12681, /* 36 */
87-23087, -1010, /* 37 */
88-12906, 1254, /* 38 */
89768, 13845, /* 39 */
90-1977, -14522, /* 40 */
919611, 19374, /* 41 */
923901, 19970, /* 42 */
93435, -23023, /* 43 */
94-20137, 12655, /* 44 */
95-14511, 21159, /* 45 */
96-5695, 14819, /* 46 */
97-10575, 20047, /* 47 */
9812812, -14238, /* 48 */
99-8802, 8243, /* 49 */
1006536, 20202, /* 50 */
10123015, -7388, /* 51 */
102136, 4469, /* 52 */
10321176, 5462, /* 53 */
10415515, -23491, /* 54 */
10519750, 22799, /* 55 */
106-18302, 18897, /* 56 */
10714763, 9117, /* 57 */
10819311, -2855, /* 58 */
109-16254, 9508, /* 59 */
110-17875, 5189, /* 60 */
11112424, -9466, /* 61 */
11210491, 16840, /* 62 */
1137172, -18350, /* 63 */
11412015, -9860, /* 64 */
1157717, -19042, /* 65 */
11618139, -4851, /* 66 */
117-10778, -7885, /* 67 */
118-3811, 21012, /* 68 */
119-13576, 16013, /* 69 */
120-21967, -11427, /* 70 */
121-19812, -21622, /* 71 */
12216582, -23373, /* 72 */
123-7559, 3520, /* 73 */
124-1601, 11536, /* 74 */
12519571, 14513, /* 75 */
126-12839, 6507, /* 76 */
12717125, -11766, /* 77 */
1287408, -16824, /* 78 */
12918503, 7168, /* 79 */
130-561, 21100, /* 80 */
13123302, 14941, /* 81 */
132-5992, 20351, /* 82 */
1331484, -8990, /* 83 */
134-15075, -10936, /* 84 */
13591, 1724, /* 85 */
136-3681, -15928, /* 86 */
1377588, -13671, /* 87 */
1388213, -13396, /* 88 */
13921632, 7179, /* 89 */
140-14576, -21155, /* 90 */
141-18390, -12805, /* 91 */
1423077, 7919, /* 92 */
14322191, -8944, /* 93 */
144-22528, -9147, /* 94 */
14517511, 10438, /* 95 */
146-22380, 21493, /* 96 */
147923, -17448, /* 97 */
148-14555, -20421, /* 98 */
14910202, -17728, /* 99 */
150-11794, -15792, /* 100 */
15120522, 19460, /* 101 */
152-17162, -17206, /* 102 */
1531022, 5533, /* 103 */
15418693, -10928, /* 104 */
15520925, -13213, /* 105 */
156-7801, 10070, /* 106 */
157-2963, 2317, /* 107 */
158-1365, 20876, /* 108 */
159-16588, -8048, /* 109 */
160-17224, 9672, /* 110 */
1611537, 20974, /* 111 */
16210680, 3859, /* 112 */
163-4792, 17981, /* 113 */
164-6697, 11806, /* 114 */
165-10157, -5695, /* 115 */
16617436, 10669, /* 116 */
1675979, -15950, /* 117 */
168-12243, 21578, /* 118 */
16922613, -14369, /* 119 */
1706645, 13064, /* 120 */
171-12779, 5358, /* 121 */
1728577, -15975, /* 122 */
1737843, -22182, /* 123 */
174-17279, -9999, /* 124 */
175-22587, 22281, /* 125 */
176-11249, 21309, /* 126 */
177-18140, -12864, /* 127 */
178-20372, 21688, /* 128 */
17916693, 8507, /* 129 */
180-15121, -21051, /* 130 */
181-22118, 4722, /* 131 */
18211064, -5055, /* 132 */
1831727, -13464, /* 133 */
184-10595, -15023, /* 134 */
185-6223, -20020, /* 135 */
186-23041, -23300, /* 136 */
18718409, 13659, /* 137 */
18817313, -22810, /* 138 */
189-11625, 17876, /* 139 */
1903286, -6975, /* 140 */
191-16118, 10507, /* 141 */
1924463, 22158, /* 142 */
193-7990, -16288, /* 143 */
1947502, -15943, /* 144 */
19517200, -8827, /* 145 */
1963198, -22261, /* 146 */
19722727, -6735, /* 147 */
19813803, -22365, /* 148 */
199-16433, 13890, /* 149 */
20015752, 23614, /* 150 */
201-14576, -18437, /* 151 */
2026574, 5799, /* 152 */
2037993, -17380, /* 153 */
20412870, -8986, /* 154 */
205-5685, -17275, /* 155 */
206-2764, -13087, /* 156 */
207-802, -4894, /* 157 */
2085113, -17259, /* 158 */
209-15326, -12249, /* 159 */
210-23555, 20221, /* 160 */
21113727, -5152, /* 161 */
212643, 532, /* 162 */
213-13565, -19257, /* 163 */
214-18758, -22625, /* 164 */
215-16209, -16105, /* 165 */
216-4375, 16295, /* 166 */
217-4364, 17934, /* 167 */
218-21159, -14806, /* 168 */
21920898, 23239, /* 169 */
220-16557, 10029, /* 170 */
221-5470, 17565, /* 171 */
222-8938, -964, /* 172 */
223-15679, -189, /* 173 */
22418761, -10050, /* 174 */
225-8386, -20768, /* 175 */
22611068, -11236, /* 176 */
227-4215, -14841, /* 177 */
228-4740, 19728, /* 178 */
229261, -17820, /* 179 */
230-15643, -23015, /* 180 */
2311170, -6164, /* 181 */
2326679, 9395, /* 182 */
233-22885, 18416, /* 183 */
23415933, 4435, /* 184 */
23514354, -16239, /* 185 */
2369355, -8671, /* 186 */
237-1803, -12611, /* 187 */
238-19743, -23253, /* 188 */
23915170, -4877, /* 189 */
240-14521, 7088, /* 190 */
241-2585, -19630, /* 191 */
242-23038, 12714, /* 192 */
243-9047, 22217, /* 193 */
24417754, 10160, /* 194 */
24515858, 13337, /* 195 */
246-7895, -12414, /* 196 */
24718007, -14393, /* 197 */
248-961, -11201, /* 198 */
2492876, 10112, /* 199 */
2505482, 22590, /* 200 */
2517657, 6485, /* 201 */
2525516, 2172, /* 202 */
2538757, 16463, /* 203 */
254480, 14289, /* 204 */
25510120, 7961, /* 205 */
256719, 8087, /* 206 */
2575007, 15166, /* 207 */
25822075, 22253, /* 208 */
25915236, -619, /* 209 */
260-8621, 15016, /* 210 */
2614148, 6696, /* 211 */
262-17492, -9160, /* 212 */
263-11620, 7612, /* 213 */
26414333, -6716, /* 214 */
2657939, 20727, /* 215 */
266-23006, -584, /* 216 */
2672912, -19347, /* 217 */
268-2150, 8222, /* 218 */
26919154, 703, /* 219 */
270-10305, -13170, /* 220 */
271-20575, 10643, /* 221 */
272-1108, -20423, /* 222 */
27322880, 21953, /* 223 */
27419977, -13829, /* 224 */
2752894, -16030, /* 225 */
2767205, 6537, /* 226 */
27712897, -23640, /* 227 */
278-18629, -7775, /* 228 */
279-23600, -10638, /* 229 */
2801975, -21545, /* 230 */
281-23327, -19210, /* 231 */
282-2302, -4258, /* 232 */
283-14396, 14989, /* 233 */
28413582, 17525, /* 234 */
2855608, -22584, /* 235 */
286-22917, 10745, /* 236 */
28718487, 16461, /* 237 */
28812378, 10812, /* 238 */
28919253, 21526, /* 239 */
29012230, 7395, /* 240 */
291-5642, 11461, /* 241 */
292-7989, -7334, /* 242 */
293192, 18164, /* 243 */
2943054, -7226, /* 244 */
29512638, -20838, /* 245 */
29613238, 10331, /* 246 */
297-753, 21673, /* 247 */
29814294, -16233, /* 248 */
299-1372, -3957, /* 249 */
300-14060, -19203, /* 250 */
3013765, -2368, /* 251 */
3027875, 17461, /* 252 */
3038361, -5127, /* 253 */
30420931, -11694, /* 254 */
30512778, -6888, /* 255 */
306};
307
308#pragma DATA_SECTION (rtest,".test")
309
310DATA rtest[2*NX] ={
311110, -640, /* 0 */
3121018, 549, /* 1 */
313-934, -6, /* 2 */
314547, -737, /* 3 */
315-274, 181, /* 4 */
3161004, 1464, /* 5 */
317-2334, 755, /* 6 */
318-25, -176, /* 7 */
319-709, -443, /* 8 */
320685, 575, /* 9 */
321850, 416, /* 10 */
32290, 70, /* 11 */
323-703, 1087, /* 12 */
324638, 145, /* 13 */
325952, 990, /* 14 */
326939, 737, /* 15 */
327-456, 1384, /* 16 */
3281405, 785, /* 17 */
329-1337, 766, /* 18 */
330974, 1220, /* 19 */
3311172, -486, /* 20 */
332-637, -1063, /* 21 */
333-617, 1047, /* 22 */
3341821, -150, /* 23 */
3351246, 848, /* 24 */
336-21, -1376, /* 25 */
3371125, 235, /* 26 */
338-599, 1207, /* 27 */
339684, 404, /* 28 */
340-35, 1229, /* 29 */
341137, -70, /* 30 */
3421599, 847, /* 31 */
3431672, -225, /* 32 */
344-49, -138, /* 33 */
345-1926, 248, /* 34 */
346596, 1062, /* 35 */
347-1240, 414, /* 36 */
348-942, 705, /* 37 */
349772, 1823, /* 38 */
3501652, -1170, /* 39 */
351-821, -1281, /* 40 */
3521622, 57, /* 41 */
3531103, -1317, /* 42 */
35458, 111, /* 43 */
35520, -857, /* 44 */
35622, 1523, /* 45 */
357891, 455, /* 46 */
358154, -1739, /* 47 */
3591084, 627, /* 48 */
360900, 288, /* 49 */
36197, -311, /* 50 */
362-333, 567, /* 51 */
363652, -325, /* 52 */
364560, -698, /* 53 */
3651505, -588, /* 54 */
36680, 889, /* 55 */
367124, 527, /* 56 */
368-144, 129, /* 57 */
369203, -350, /* 58 */
370-900, -161, /* 59 */
371-396, -67, /* 60 */
37222, -123, /* 61 */
3732211, 93, /* 62 */
374-1372, 1613, /* 63 */
375-300, -710, /* 64 */
376-509, -225, /* 65 */
377-187, 709, /* 66 */
378177, -1068, /* 67 */
379413, -307, /* 68 */
38031, 382, /* 69 */
381-416, 45, /* 70 */
382313, -845, /* 71 */
383-900, 157, /* 72 */
384-361, -98, /* 73 */
385-409, 1903, /* 74 */
3861486, 574, /* 75 */
3871176, -598, /* 76 */
388-1085, 699, /* 77 */
389-97, 845, /* 78 */
3901439, 258, /* 79 */
391376, 498, /* 80 */
392239, 779, /* 81 */
393164, -687, /* 82 */
394-21, 401, /* 83 */
395304, -1735, /* 84 */
396-485, -779, /* 85 */
397-877, -1370, /* 86 */
398-1201, -325, /* 87 */
399-460, 1031, /* 88 */
400-665, -567, /* 89 */
401-1210, -1713, /* 90 */
402-273, -810, /* 91 */
403697, 455, /* 92 */
404-487, -451, /* 93 */
405239, -220, /* 94 */
406-282, -933, /* 95 */
407-205, -446, /* 96 */
408-146, -131, /* 97 */
409117, -398, /* 98 */
4101083, -371, /* 99 */
4112313, 529, /* 100 */
412-674, 621, /* 101 */
413-1217, -505, /* 102 */
414-342, -721, /* 103 */
415-1347, 1254, /* 104 */
416247, -758, /* 105 */
41721, 918, /* 106 */
418951, -3, /* 107 */
41967, 142, /* 108 */
420-144, 1292, /* 109 */
421-31, -304, /* 110 */
422224, 533, /* 111 */
423109, 1090, /* 112 */
424533, -325, /* 113 */
425-84, -1057, /* 114 */
426-554, 428, /* 115 */
427602, 1021, /* 116 */
4281330, -651, /* 117 */
429564, -150, /* 118 */
430-685, 275, /* 119 */
431-133, -349, /* 120 */
432-149, -236, /* 121 */
433-433, -1010, /* 122 */
434-1460, 463, /* 123 */
435704, 219, /* 124 */
436-515, -474, /* 125 */
437815, 1016, /* 126 */
438409, -1162, /* 127 */
439-1480, -546, /* 128 */
440-10, -211, /* 129 */
441200, -1384, /* 130 */
442-629, 1174, /* 131 */
443-351, 824, /* 132 */
444104, -90, /* 133 */
445-1494, 88, /* 134 */
4461733, 539, /* 135 */
447-952, 745, /* 136 */
4481469, -414, /* 137 */
449691, 1390, /* 138 */
450200, 2100, /* 139 */
451639, -146, /* 140 */
452-147, -7, /* 141 */
453-202, -131, /* 142 */
454-379, -1394, /* 143 */
455-569, 456, /* 144 */
456-167, -475, /* 145 */
45743, -1002, /* 146 */
458-494, 617, /* 147 */
459220, 937, /* 148 */
460-502, -628, /* 149 */
4612031, 902, /* 150 */
462-1332, -201, /* 151 */
46373, 378, /* 152 */
4641491, 1565, /* 153 */
465-263, 945, /* 154 */
466353, 172, /* 155 */
467-1913, -1679, /* 156 */
468568, -229, /* 157 */
469-2660, -1531, /* 158 */
4702801, -794, /* 159 */
471335, 515, /* 160 */
472-64, -266, /* 161 */
473-898, 1634, /* 162 */
47482, 305, /* 163 */
475531, 523, /* 164 */
476351, -551, /* 165 */
477-267, -288, /* 166 */
478117, -384, /* 167 */
479-1603, 160, /* 168 */
480-756, 55, /* 169 */
4812080, 2035, /* 170 */
4821172, -796, /* 171 */
483-290, 569, /* 172 */
4841005, -1231, /* 173 */
485-281, 672, /* 174 */
486441, -553, /* 175 */
487471, 55, /* 176 */
488-152, -225, /* 177 */
489269, 1351, /* 178 */
490-468, 323, /* 179 */
491-1262, 263, /* 180 */
492725, -537, /* 181 */
493-1126, 206, /* 182 */
494162, -924, /* 183 */
495-570, 549, /* 184 */
4961497, -2815, /* 185 */
49798, -845, /* 186 */
4981213, 539, /* 187 */
499-774, 417, /* 188 */
50039, 1639, /* 189 */
501533, -1209, /* 190 */
502-615, -798, /* 191 */
503-1486, -39, /* 192 */
504430, -1086, /* 193 */
505-407, 978, /* 194 */
506189, -210, /* 195 */
507137, 870, /* 196 */
508-151, 726, /* 197 */
509-157, 766, /* 198 */
510-25, 317, /* 199 */
511-678, 1611, /* 200 */
512120, 668, /* 201 */
513894, 1224, /* 202 */
514-1424, 1006, /* 203 */
515-1248, -720, /* 204 */
516-1842, 410, /* 205 */
5171007, -439, /* 206 */
51860, 423, /* 207 */
519-304, -542, /* 208 */
520689, -910, /* 209 */
521475, 570, /* 210 */
522-1428, 1668, /* 211 */
5231172, -1310, /* 212 */
524-137, -533, /* 213 */
525-1069, 51, /* 214 */
526-589, 1067, /* 215 */
527-81, 27, /* 216 */
528-575, -401, /* 217 */
529624, 508, /* 218 */
530922, 136, /* 219 */
531-150, -1023, /* 220 */
532-495, -1084, /* 221 */
533296, -791, /* 222 */
534731, -797, /* 223 */
5351700, 1376, /* 224 */
536-1045, -957, /* 225 */
537996, -509, /* 226 */
538282, -660, /* 227 */
539-563, -395, /* 228 */
540329, -768, /* 229 */
541200, -984, /* 230 */
5422106, -368, /* 231 */
543-161, 787, /* 232 */
544-1592, -1914, /* 233 */
545-500, 54, /* 234 */
546-273, 523, /* 235 */
547-830, 878, /* 236 */
548-835, -2365, /* 237 */
549486, 62, /* 238 */
55033, -726, /* 239 */
551778, 475, /* 240 */
552706, -416, /* 241 */
553-1409, 1529, /* 242 */
554-148, 810, /* 243 */
555-1027, 774, /* 244 */
556-1546, 555, /* 245 */
55777, -4, /* 246 */
5581055, 468, /* 247 */
559-1613, -2694, /* 248 */
56068, -576, /* 249 */
561600, 701, /* 250 */
562950, 701, /* 251 */
5631539, 1419, /* 252 */
564-216, -1467, /* 253 */
565260, -1274, /* 254 */
566515, 950, /* 255 */
567};
568
569DATA error;
570
diff --git a/dsplib_benchmarks/cfft1/t7_NOSCALE.h b/dsplib_benchmarks/cfft1/t7_NOSCALE.h
new file mode 100644
index 0000000..9c56e2c
--- /dev/null
+++ b/dsplib_benchmarks/cfft1/t7_NOSCALE.h
@@ -0,0 +1,1081 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* Test for cfft: rand */
36#define NX 512
37#define FNAME "t7"
38#define MAXERROR 520
39#pragma DATA_SECTION (x_br,".input")
40#pragma DATA_ALIGN (x_br, 2048)
41DATA x_br[2*NX] ;
42
43#pragma DATA_SECTION (scratch,".input")
44#pragma DATA_ALIGN (scratch, 2048)
45DATA scratch[2*NX] ;
46#pragma DATA_SECTION (x,".input")
47
48DATA x[2*NX] ={
4940, -86, /* 0 */
5062, 84, /* 1 */
51-40, 36, /* 2 */
5298, -46, /* 3 */
53-40, -122, /* 4 */
54-113, -38, /* 5 */
5555, 62, /* 6 */
56117, -52, /* 7 */
57-88, -82, /* 8 */
58-22, -22, /* 9 */
59-104, 94, /* 10 */
60-13, 31, /* 11 */
6194, -114, /* 12 */
62-28, -25, /* 13 */
63-64, -51, /* 14 */
64-38, -89, /* 15 */
6562, -49, /* 16 */
6638, -128, /* 17 */
67112, -17, /* 18 */
6885, 45, /* 19 */
69-8, 82, /* 20 */
7033, 65, /* 21 */
71-114, -87, /* 22 */
7210, 13, /* 23 */
73-12, 6, /* 24 */
7492, 107, /* 25 */
7590, -15, /* 26 */
76-8, -117, /* 27 */
7773, 118, /* 28 */
7839, -125, /* 29 */
79-128, 13, /* 30 */
80-95, 111, /* 31 */
81-2, 102, /* 32 */
82-119, 30, /* 33 */
83-70, 51, /* 34 */
84-45, 112, /* 35 */
85102, -13, /* 36 */
86-48, -83, /* 37 */
87-64, 29, /* 38 */
88-18, 4, /* 39 */
8987, -35, /* 40 */
90-81, 69, /* 41 */
912, 84, /* 42 */
92-13, -47, /* 43 */
93-45, 24, /* 44 */
94-31, 72, /* 45 */
9598, -120, /* 46 */
9666, 91, /* 47 */
9798, 46, /* 48 */
98-11, 77, /* 49 */
9976, 106, /* 50 */
100-94, -29, /* 51 */
101-112, -8, /* 52 */
102-32, -106, /* 53 */
103-33, 108, /* 54 */
104-5, 45, /* 55 */
105120, 36, /* 56 */
106-41, 126, /* 57 */
107-64, -1, /* 58 */
10821, -18, /* 59 */
1096, 84, /* 60 */
110-87, -99, /* 61 */
111-4, 25, /* 62 */
112-2, -72, /* 63 */
11387, -26, /* 64 */
11478, -51, /* 65 */
11591, 34, /* 66 */
11628, 113, /* 67 */
11716, -127, /* 68 */
11828, 81, /* 69 */
119-102, 48, /* 70 */
120-88, 123, /* 71 */
121-23, -111, /* 72 */
12215, -117, /* 73 */
123-60, 61, /* 74 */
12472, 81, /* 75 */
125-29, -62, /* 76 */
126-121, 52, /* 77 */
12721, -53, /* 78 */
12814, -107, /* 79 */
129-77, 96, /* 80 */
130-106, -109, /* 81 */
131110, 61, /* 82 */
132-62, -96, /* 83 */
133-76, -15, /* 84 */
134-116, 23, /* 85 */
13527, 34, /* 86 */
13611, 8, /* 87 */
137-104, -75, /* 88 */
13835, 44, /* 89 */
139-15, -67, /* 90 */
140-111, 56, /* 91 */
141-33, -26, /* 92 */
142-65, -28, /* 93 */
143108, -23, /* 94 */
14433, -90, /* 95 */
14596, 96, /* 96 */
14636, -123, /* 97 */
14776, 108, /* 98 */
148-17, 33, /* 99 */
149123, -111, /* 100 */
150-104, 33, /* 101 */
1517, 64, /* 102 */
15211, 69, /* 103 */
153-56, 78, /* 104 */
154-34, 11, /* 105 */
155-112, -4, /* 106 */
15611, -16, /* 107 */
15786, 32, /* 108 */
158-91, -109, /* 109 */
159-85, 11, /* 110 */
160-111, -75, /* 111 */
16182, -59, /* 112 */
162-94, -54, /* 113 */
16398, 82, /* 114 */
1643, -23, /* 115 */
165118, 6, /* 116 */
166-98, 107, /* 117 */
167-116, -31, /* 118 */
168-31, 35, /* 119 */
169-23, -84, /* 120 */
170-26, 73, /* 121 */
171-21, -35, /* 122 */
172-32, 70, /* 123 */
173104, -41, /* 124 */
17443, 70, /* 125 */
175118, -91, /* 126 */
176-87, -91, /* 127 */
17763, 35, /* 128 */
178-33, -105, /* 129 */
179-12, 109, /* 130 */
180-119, -4, /* 131 */
18115, -87, /* 132 */
182-33, -58, /* 133 */
18374, -95, /* 134 */
18475, -123, /* 135 */
185-30, -69, /* 136 */
186-64, 88, /* 137 */
187-41, 57, /* 138 */
188119, 49, /* 139 */
189-6, -30, /* 140 */
190-34, -6, /* 141 */
19167, 119, /* 142 */
192-32, 72, /* 143 */
193102, -24, /* 144 */
194-82, 117, /* 145 */
195-34, -78, /* 146 */
196106, 7, /* 147 */
1974, 1, /* 148 */
198-105, -5, /* 149 */
19960, -32, /* 150 */
200-127, 5, /* 151 */
20126, 80, /* 152 */
202116, -75, /* 153 */
203-27, -29, /* 154 */
20459, -117, /* 155 */
20547, -50, /* 156 */
206122, 80, /* 157 */
207-76, 46, /* 158 */
20823, 97, /* 159 */
209115, -108, /* 160 */
210-62, -2, /* 161 */
2113, -18, /* 162 */
21234, -40, /* 163 */
213-26, 105, /* 164 */
214-4, -87, /* 165 */
21564, -29, /* 166 */
216-96, 119, /* 167 */
217-117, -111, /* 168 */
218-34, -47, /* 169 */
21949, -96, /* 170 */
220111, -99, /* 171 */
221-6, -86, /* 172 */
222-95, -104, /* 173 */
223-5, 8, /* 174 */
224114, 67, /* 175 */
225-34, -22, /* 176 */
226-44, 85, /* 177 */
22769, 78, /* 178 */
228-52, -126, /* 179 */
229-83, 37, /* 180 */
23048, -100, /* 181 */
231-61, -73, /* 182 */
232-11, 104, /* 183 */
23387, -91, /* 184 */
23497, -75, /* 185 */
23551, 89, /* 186 */
23665, 54, /* 187 */
237121, -108, /* 188 */
238-26, 81, /* 189 */
239-95, -39, /* 190 */
24057, -87, /* 191 */
241102, 10, /* 192 */
242-85, 108, /* 193 */
243-117, -17, /* 194 */
244-6, 10, /* 195 */
245-104, 50, /* 196 */
24638, -128, /* 197 */
247115, 86, /* 198 */
248-11, 99, /* 199 */
2499, -123, /* 200 */
250-111, -103, /* 201 */
251-2, -33, /* 202 */
252-22, 119, /* 203 */
253-54, 30, /* 204 */
254-54, 43, /* 205 */
25564, -12, /* 206 */
256-104, 86, /* 207 */
257-109, 82, /* 208 */
25856, 10, /* 209 */
25967, -105, /* 210 */
26040, -53, /* 211 */
26179, 26, /* 212 */
262-33, -82, /* 213 */
263-50, 59, /* 214 */
264-34, 12, /* 215 */
26552, -89, /* 216 */
266-85, 108, /* 217 */
26780, -77, /* 218 */
268-9, -126, /* 219 */
26956, 48, /* 220 */
270126, -26, /* 221 */
271-36, -31, /* 222 */
27259, 103, /* 223 */
27338, 113, /* 224 */
27446, -7, /* 225 */
275-127, -124, /* 226 */
27639, 81, /* 227 */
277113, -114, /* 228 */
27828, -105, /* 229 */
27972, 50, /* 230 */
280-128, -91, /* 231 */
28176, -114, /* 232 */
28236, -112, /* 233 */
283-83, 57, /* 234 */
2847, -120, /* 235 */
285-72, 50, /* 236 */
28612, -72, /* 237 */
287-114, 32, /* 238 */
28822, 3, /* 239 */
289-22, 19, /* 240 */
290-81, -55, /* 241 */
291-112, 100, /* 242 */
292-109, -105, /* 243 */
293-49, -54, /* 244 */
294113, 82, /* 245 */
295123, 126, /* 246 */
29614, -111, /* 247 */
297125, 121, /* 248 */
29849, 108, /* 249 */
299-67, 117, /* 250 */
30079, 16, /* 251 */
301111, 115, /* 252 */
302-96, -47, /* 253 */
30347, -60, /* 254 */
304-52, -113, /* 255 */
30537, -43, /* 256 */
306-10, -54, /* 257 */
307108, -25, /* 258 */
308-67, -120, /* 259 */
30940, -55, /* 260 */
310-43, -72, /* 261 */
311-6, 16, /* 262 */
312-8, 94, /* 263 */
31352, -63, /* 264 */
314-67, 23, /* 265 */
31555, 5, /* 266 */
31693, -95, /* 267 */
317-23, -128, /* 268 */
318-20, -45, /* 269 */
319116, -36, /* 270 */
32097, 126, /* 271 */
32150, 112, /* 272 */
322-50, -17, /* 273 */
32384, 111, /* 274 */
324120, -1, /* 275 */
325-52, 120, /* 276 */
326127, 117, /* 277 */
327-16, 56, /* 278 */
328-127, 37, /* 279 */
329-54, 92, /* 280 */
33049, -121, /* 281 */
331-2, -35, /* 282 */
332-107, -104, /* 283 */
333-78, -43, /* 284 */
334122, -127, /* 285 */
335-35, 80, /* 286 */
336-93, -122, /* 287 */
337-125, -20, /* 288 */
33836, -120, /* 289 */
33960, 45, /* 290 */
340-122, -45, /* 291 */
341-102, 15, /* 292 */
342100, -20, /* 293 */
34367, -90, /* 294 */
34421, -112, /* 295 */
34547, 29, /* 296 */
346119, 33, /* 297 */
34712, -83, /* 298 */
34870, -24, /* 299 */
34928, 52, /* 300 */
350125, -18, /* 301 */
351-116, -74, /* 302 */
352124, 23, /* 303 */
353-76, 86, /* 304 */
354105, 99, /* 305 */
35542, 98, /* 306 */
356-10, 118, /* 307 */
357-116, 69, /* 308 */
358-11, -34, /* 309 */
35976, -111, /* 310 */
360-54, -101, /* 311 */
36149, 111, /* 312 */
362-62, 2, /* 313 */
36354, -74, /* 314 */
36456, -21, /* 315 */
36559, 84, /* 316 */
36631, -92, /* 317 */
367125, -46, /* 318 */
368-89, 81, /* 319 */
369-76, -53, /* 320 */
37081, -108, /* 321 */
371-114, 109, /* 322 */
3729, -86, /* 323 */
373-80, -29, /* 324 */
37425, -4, /* 325 */
375-54, 79, /* 326 */
376-105, -25, /* 327 */
3771, 75, /* 328 */
37898, -124, /* 329 */
37929, 116, /* 330 */
380-117, 90, /* 331 */
381115, 124, /* 332 */
382-85, -64, /* 333 */
38383, -5, /* 334 */
38428, -45, /* 335 */
38588, -114, /* 336 */
386-99, -54, /* 337 */
38738, 45, /* 338 */
388-99, 115, /* 339 */
389-7, -118, /* 340 */
39046, 82, /* 341 */
391-94, -71, /* 342 */
392-10, 127, /* 343 */
393-110, -62, /* 344 */
39420, -70, /* 345 */
39516, 6, /* 346 */
396-63, 15, /* 347 */
397-67, 83, /* 348 */
398-124, -55, /* 349 */
399-30, -64, /* 350 */
40065, -67, /* 351 */
40119, 13, /* 352 */
402-24, -73, /* 353 */
403-78, 42, /* 354 */
4043, -49, /* 355 */
40554, -8, /* 356 */
40694, 1, /* 357 */
40761, 48, /* 358 */
408126, -79, /* 359 */
40993, -58, /* 360 */
410-4, 109, /* 361 */
411103, -68, /* 362 */
412-123, -96, /* 363 */
41335, -23, /* 364 */
414113, 34, /* 365 */
415-118, -82, /* 366 */
416-55, -25, /* 367 */
41745, 48, /* 368 */
41822, -45, /* 369 */
419-112, 108, /* 370 */
42097, 65, /* 371 */
421-4, -26, /* 372 */
422100, -78, /* 373 */
42367, -26, /* 374 */
42439, -89, /* 375 */
425120, -112, /* 376 */
426-85, -98, /* 377 */
427-94, -121, /* 378 */
42865, 93, /* 379 */
429-48, -22, /* 380 */
430-10, 74, /* 381 */
431-42, 80, /* 382 */
432-126, -27, /* 383 */
433-43, 83, /* 384 */
434-65, -42, /* 385 */
435126, -78, /* 386 */
436103, 2, /* 387 */
437-39, -75, /* 388 */
438-57, 20, /* 389 */
439-105, 122, /* 390 */
440-67, -9, /* 391 */
441102, 77, /* 392 */
442-45, -18, /* 393 */
44318, -67, /* 394 */
444-81, 34, /* 395 */
44560, -34, /* 396 */
446-100, -18, /* 397 */
447-30, -51, /* 398 */
44892, -18, /* 399 */
44991, 48, /* 400 */
45081, 3, /* 401 */
451-66, 125, /* 402 */
452101, -81, /* 403 */
45326, 15, /* 404 */
454-93, -4, /* 405 */
455-87, -27, /* 406 */
45698, -2, /* 407 */
457122, 120, /* 408 */
45825, 83, /* 409 */
459-36, -96, /* 410 */
460-69, 87, /* 411 */
461-13, 74, /* 412 */
46236, -40, /* 413 */
463-66, 61, /* 414 */
464-9, -113, /* 415 */
465-1, 15, /* 416 */
466-109, 72, /* 417 */
46768, -92, /* 418 */
468-117, 14, /* 419 */
469-86, -76, /* 420 */
47070, 92, /* 421 */
471-75, -63, /* 422 */
472-64, -57, /* 423 */
473-27, -55, /* 424 */
474-5, 60, /* 425 */
4752, -1, /* 426 */
47631, -114, /* 427 */
47732, -80, /* 428 */
478125, 57, /* 429 */
479-37, 121, /* 430 */
480-58, 52, /* 431 */
48145, 77, /* 432 */
4822, -76, /* 433 */
483-58, 69, /* 434 */
48420, 95, /* 435 */
48582, 78, /* 436 */
486113, 65, /* 437 */
487-15, 103, /* 438 */
488-20, -21, /* 439 */
489127, 40, /* 440 */
49029, -128, /* 441 */
491113, 123, /* 442 */
492105, -23, /* 443 */
49380, -40, /* 444 */
49448, 43, /* 445 */
495-49, -15, /* 446 */
49614, 86, /* 447 */
49735, 7, /* 448 */
49868, -63, /* 449 */
499-115, -88, /* 450 */
500-99, 14, /* 451 */
50188, 118, /* 452 */
502-84, 115, /* 453 */
503-119, 60, /* 454 */
504-48, -72, /* 455 */
50581, -1, /* 456 */
506-68, -127, /* 457 */
50722, -48, /* 458 */
508108, 61, /* 459 */
509-44, 74, /* 460 */
510-76, -26, /* 461 */
511-35, -26, /* 462 */
512121, -64, /* 463 */
51355, -105, /* 464 */
51436, 26, /* 465 */
51572, 85, /* 466 */
516-9, -53, /* 467 */
517-69, -9, /* 468 */
518-47, -117, /* 469 */
51973, -107, /* 470 */
52034, 3, /* 471 */
52140, 55, /* 472 */
5229, -119, /* 473 */
523107, 122, /* 474 */
52471, -1, /* 475 */
525-45, 51, /* 476 */
52661, 77, /* 477 */
527-16, 4, /* 478 */
52823, 0, /* 479 */
529-99, 65, /* 480 */
530-47, -68, /* 481 */
53131, 113, /* 482 */
532100, -106, /* 483 */
533118, 11, /* 484 */
534-123, 103, /* 485 */
535-100, 92, /* 486 */
536-25, 33, /* 487 */
537-104, -61, /* 488 */
538-53, -31, /* 489 */
53945, -42, /* 490 */
540122, -48, /* 491 */
541-26, 114, /* 492 */
54282, 9, /* 493 */
543-95, 51, /* 494 */
54488, 96, /* 495 */
545-69, 124, /* 496 */
546-111, 98, /* 497 */
547-44, -25, /* 498 */
54819, 32, /* 499 */
549-93, -30, /* 500 */
55094, 89, /* 501 */
551-44, 6, /* 502 */
552-4, 78, /* 503 */
553-18, -28, /* 504 */
554-62, 118, /* 505 */
555123, -121, /* 506 */
556119, 116, /* 507 */
557114, 54, /* 508 */
558-13, 37, /* 509 */
559-44, -14, /* 510 */
560-127, -84, /* 511 */
561};
562
563#pragma DATA_SECTION (rtest,".test")
564
565DATA rtest[2*NX] ={
566905, -445, /* 0 */
567-1211, 2965, /* 1 */
568802, 1913, /* 2 */
569-16, 223, /* 3 */
570698, -1688, /* 4 */
571-814, 146, /* 5 */
572-1547, -1073, /* 6 */
573-901, -1662, /* 7 */
574-408, 1055, /* 8 */
575-3177, -1185, /* 9 */
576-731, -804, /* 10 */
577-249, -570, /* 11 */
578-596, -4364, /* 12 */
579-805, 591, /* 13 */
5801727, 175, /* 14 */
581-162, 4858, /* 15 */
582-2344, -24, /* 16 */
5831091, 267, /* 17 */
584-4647, -92, /* 18 */
5852398, 51, /* 19 */
586-2014, 2741, /* 20 */
5871390, 587, /* 21 */
588181, 620, /* 22 */
5893966, -3871, /* 23 */
590966, 1018, /* 24 */
591-342, 841, /* 25 */
5922112, -317, /* 26 */
593419, -1334, /* 27 */
594-2649, -811, /* 28 */
595251, 720, /* 29 */
5961851, 2107, /* 30 */
597613, 806, /* 31 */
598733, 2422, /* 32 */
599595, -1337, /* 33 */
600-2999, -1166, /* 34 */
601-2860, 2993, /* 35 */
6021066, -2999, /* 36 */
603362, 1331, /* 37 */
604-659, -2663, /* 38 */
605-184, 1246, /* 39 */
606-2954, -1521, /* 40 */
6071419, 554, /* 41 */
608-1210, -3661, /* 42 */
609-4125, 1969, /* 43 */
610-1292, -1055, /* 44 */
611-1318, 671, /* 45 */
612-922, -1091, /* 46 */
613-1249, -48, /* 47 */
614-2148, -1819, /* 48 */
6151012, -2291, /* 49 */
6161512, 166, /* 50 */
617-2341, 1085, /* 51 */
618-424, 2071, /* 52 */
6193937, 2062, /* 53 */
6204252, -627, /* 54 */
6211284, 3635, /* 55 */
6222858, -968, /* 56 */
623-908, 142, /* 57 */
62434, -153, /* 58 */
625-909, 63, /* 59 */
626-2101, 1500, /* 60 */
627-1789, 212, /* 61 */
628-919, 3202, /* 62 */
629-943, -2756, /* 63 */
630-92, -1680, /* 64 */
6311171, -2540, /* 65 */
632-723, -2614, /* 66 */
6331034, -1443, /* 67 */
634-329, 194, /* 68 */
635-298, -1130, /* 69 */
636-1762, -100, /* 70 */
637-3746, -560, /* 71 */
638-637, -2006, /* 72 */
639166, -5561, /* 73 */
6402340, 3178, /* 74 */
6411322, 2760, /* 75 */
6423249, -1345, /* 76 */
64350, -203, /* 77 */
644-44, -1035, /* 78 */
645-1189, 2681, /* 79 */
646-1135, 395, /* 80 */
647-410, -1623, /* 81 */
648-1128, -588, /* 82 */
649507, -469, /* 83 */
650653, -2404, /* 84 */
6512667, -482, /* 85 */
6523373, -4571, /* 86 */
6533147, 1646, /* 87 */
654358, -1471, /* 88 */
65537, -1593, /* 89 */
6562183, 730, /* 90 */
657-656, -2548, /* 91 */
658765, -3553, /* 92 */
659664, -592, /* 93 */
6601392, 223, /* 94 */
661-50, 177, /* 95 */
6622529, 364, /* 96 */
663-243, -949, /* 97 */
664-644, 940, /* 98 */
6652358, -1049, /* 99 */
666-3650, 1441, /* 100 */
667-480, 280, /* 101 */
6681618, 1700, /* 102 */
669-2289, -376, /* 103 */
6703122, -116, /* 104 */
67154, -710, /* 105 */
672-218, -1109, /* 106 */
673-830, -648, /* 107 */
6741004, -612, /* 108 */
675518, 1779, /* 109 */
676638, -582, /* 110 */
6773250, 1738, /* 111 */
6781817, -1883, /* 112 */
679-3031, 1142, /* 113 */
6801573, -435, /* 114 */
6811147, -1215, /* 115 */
682-3233, 91, /* 116 */
6832264, -2158, /* 117 */
6842207, 1685, /* 118 */
6851083, 806, /* 119 */
686-649, -2629, /* 120 */
687-361, -1400, /* 121 */
688601, -1706, /* 122 */
6891326, 2787, /* 123 */
6903057, 1195, /* 124 */
691-1162, 2243, /* 125 */
692130, -1514, /* 126 */
6931559, 727, /* 127 */
6941370, -151, /* 128 */
6951505, 2199, /* 129 */
696-1968, 1606, /* 130 */
697-1349, -551, /* 131 */
6982397, 181, /* 132 */
699-1911, -2147, /* 133 */
700-765, -1422, /* 134 */
701607, -1493, /* 135 */
7021261, 1916, /* 136 */
703-298, -1876, /* 137 */
704650, 3444, /* 138 */
705-3204, -1584, /* 139 */
706-973, 381, /* 140 */
707-2252, -589, /* 141 */
7083094, -2477, /* 142 */
709-1449, 454, /* 143 */
710-173, -1256, /* 144 */
7111307, -2935, /* 145 */
712-804, 2107, /* 146 */
7133903, 588, /* 147 */
714-1679, 540, /* 148 */
715-146, 1467, /* 149 */
71650, -1206, /* 150 */
717-757, -284, /* 151 */
718-427, 1114, /* 152 */
719855, 874, /* 153 */
720710, 2786, /* 154 */
7211537, -1753, /* 155 */
722151, 393, /* 156 */
72366, -471, /* 157 */
724-1378, -2532, /* 158 */
725-1501, -76, /* 159 */
726-2739, 1969, /* 160 */
7272448, -2367, /* 161 */
728-1302, 3752, /* 162 */
7295593, 685, /* 163 */
730554, -1694, /* 164 */
731-150, 576, /* 165 */
7321284, -678, /* 166 */
733867, 793, /* 167 */
734-1968, -2561, /* 168 */
73539, -1174, /* 169 */
736-315, -1704, /* 170 */
7372071, -1353, /* 171 */
738-723, 637, /* 172 */
739529, 1081, /* 173 */
7403425, -3229, /* 174 */
741-1797, -588, /* 175 */
7421227, -476, /* 176 */
74319, -762, /* 177 */
744-2219, -1561, /* 178 */
74533, -2866, /* 179 */
746184, -1225, /* 180 */
7471323, 368, /* 181 */
7482421, -2119, /* 182 */
749-1716, -1394, /* 183 */
7501334, -1842, /* 184 */
7513498, -45, /* 185 */
752-2892, -1127, /* 186 */
7531041, 571, /* 187 */
7541849, 2060, /* 188 */
75555, 407, /* 189 */
756-921, -2593, /* 190 */
7572328, 954, /* 191 */
758832, 897, /* 192 */
759-3416, 2432, /* 193 */
760662, 334, /* 194 */
761-386, -4265, /* 195 */
762738, -1277, /* 196 */
763-336, 1659, /* 197 */
764-124, 1296, /* 198 */
7651579, 1020, /* 199 */
7661009, 454, /* 200 */
767704, 1085, /* 201 */
768360, -2162, /* 202 */
7692358, -888, /* 203 */
770-722, 2241, /* 204 */
771-1287, 2166, /* 205 */
772-823, 517, /* 206 */
773-8, -392, /* 207 */
774399, 526, /* 208 */
775695, 1859, /* 209 */
776-1235, -2313, /* 210 */
777-1559, -4968, /* 211 */
778750, -223, /* 212 */
77966, 1627, /* 213 */
780-1990, -824, /* 214 */
781-944, -59, /* 215 */
782-13, -1432, /* 216 */
783-650, -1389, /* 217 */
7842546, -176, /* 218 */
7851350, 2771, /* 219 */
7861842, 1559, /* 220 */
787608, -2972, /* 221 */
788-1070, 1539, /* 222 */
789-828, 2362, /* 223 */
790-421, 2370, /* 224 */
7913513, -472, /* 225 */
792-115, -3113, /* 226 */
793-1744, -1191, /* 227 */
794-45, 1318, /* 228 */
795-1946, -1828, /* 229 */
7963228, 373, /* 230 */
797-1598, 1784, /* 231 */
798-2150, -3657, /* 232 */
7992524, -1254, /* 233 */
800-1799, -948, /* 234 */
801-648, -3870, /* 235 */
802-273, 3288, /* 236 */
803-3283, 1869, /* 237 */
804341, -756, /* 238 */
8051137, -863, /* 239 */
8061121, 604, /* 240 */
807-958, -171, /* 241 */
8082656, 869, /* 242 */
809-3038, 1145, /* 243 */
8101157, -1785, /* 244 */
811-1795, 429, /* 245 */
8121282, -867, /* 246 */
813-280, -2040, /* 247 */
8141804, 320, /* 248 */
815-4249, -2252, /* 249 */
816-141, 61, /* 250 */
817-895, 630, /* 251 */
818847, -1468, /* 252 */
819-273, -1730, /* 253 */
820-2702, 2382, /* 254 */
8211577, 1010, /* 255 */
8222196, 2835, /* 256 */
823-1520, -3612, /* 257 */
824-991, 668, /* 258 */
825-2703, -2682, /* 259 */
82652, 298, /* 260 */
827-663, -3017, /* 261 */
828-173, -1278, /* 262 */
829-625, -919, /* 263 */
8301249, -2405, /* 264 */
831515, 1555, /* 265 */
832829, -1304, /* 266 */
8331862, 635, /* 267 */
8342308, -2280, /* 268 */
8353585, 175, /* 269 */
836-1254, 1045, /* 270 */
837111, -553, /* 271 */
838903, 36, /* 272 */
839333, -70, /* 273 */
8401885, 630, /* 274 */
841-709, 2324, /* 275 */
8422306, 757, /* 276 */
8432080, -61, /* 277 */
844-376, -762, /* 278 */
845-1553, 319, /* 279 */
846938, 2120, /* 280 */
847738, -1379, /* 281 */
848-302, 3339, /* 282 */
8491129, 1357, /* 283 */
8502079, 1722, /* 284 */
851-1541, 462, /* 285 */
852-4518, -490, /* 286 */
8531366, 2799, /* 287 */
854284, 1924, /* 288 */
855115, -1967, /* 289 */
856510, -2247, /* 290 */
8571376, 725, /* 291 */
858315, 635, /* 292 */
859-843, 3600, /* 293 */
8602428, -199, /* 294 */
861-3391, 304, /* 295 */
8622533, 31, /* 296 */
863335, -177, /* 297 */
864930, -1036, /* 298 */
865-1047, -303, /* 299 */
8661940, 312, /* 300 */
8671500, -3228, /* 301 */
868-3035, -1310, /* 302 */
869-2547, -997, /* 303 */
870-2482, 344, /* 304 */
871-346, 1017, /* 305 */
872-801, 1167, /* 306 */
8731601, 1553, /* 307 */
874-1460, -761, /* 308 */
875-1854, 1977, /* 309 */
876-1165, 743, /* 310 */
877-751, -1512, /* 311 */
878-1274, 1959, /* 312 */
879-2246, 1079, /* 313 */
880733, 262, /* 314 */
881-2980, -32, /* 315 */
882674, 2164, /* 316 */
8831274, -2883, /* 317 */
884-414, -2369, /* 318 */
885-491, -427, /* 319 */
8863106, -681, /* 320 */
887-624, 386, /* 321 */
8881656, -1168, /* 322 */
889-1022, -1078, /* 323 */
890-1754, 252, /* 324 */
891-2194, 1682, /* 325 */
892-1013, -168, /* 326 */
8931539, 1891, /* 327 */
8942190, 3483, /* 328 */
895-991, -183, /* 329 */
896-2347, -1653, /* 330 */
8972952, 1022, /* 331 */
898-205, -686, /* 332 */
8993581, 1502, /* 333 */
900429, -114, /* 334 */
9011037, 1651, /* 335 */
902-889, 2478, /* 336 */
903330, -1455, /* 337 */
904-483, -122, /* 338 */
905-259, 1877, /* 339 */
906-3976, 1747, /* 340 */
9072087, -1697, /* 341 */
908155, 50, /* 342 */
9091216, -2433, /* 343 */
910-2272, -1038, /* 344 */
9112621, 2600, /* 345 */
912-2322, -2812, /* 346 */
913-824, 1953, /* 347 */
9144896, -1516, /* 348 */
915-1666, -404, /* 349 */
916818, 2718, /* 350 */
91719, 532, /* 351 */
9181631, -831, /* 352 */
9191575, 2342, /* 353 */
920-1051, -1373, /* 354 */
9213389, -1048, /* 355 */
922632, 1216, /* 356 */
9232479, -3227, /* 357 */
924702, -1523, /* 358 */
925-513, 1299, /* 359 */
926-3286, 1388, /* 360 */
927-2453, -568, /* 361 */
9281366, -331, /* 362 */
929-2280, -74, /* 363 */
930430, 698, /* 364 */
9311634, -1446, /* 365 */
9321548, 1274, /* 366 */
933-950, 3042, /* 367 */
9343787, 2261, /* 368 */
9352680, -3368, /* 369 */
9363030, 608, /* 370 */
937-444, -2524, /* 371 */
938-921, -950, /* 372 */
939-105, -418, /* 373 */
940-656, 12, /* 374 */
9412057, -1820, /* 375 */
9422209, -2054, /* 376 */
943-1255, 2556, /* 377 */
944-733, -850, /* 378 */
945-2033, 3706, /* 379 */
946-2714, -1757, /* 380 */
947610, 1514, /* 381 */
948-2290, 49, /* 382 */
9492889, -2362, /* 383 */
9502700, -1832, /* 384 */
951-1857, -2290, /* 385 */
952-136, 1351, /* 386 */
953-314, -2355, /* 387 */
954814, -755, /* 388 */
955748, -636, /* 389 */
956-225, -2655, /* 390 */
957-413, 368, /* 391 */
95884, -2264, /* 392 */
9591647, 1107, /* 393 */
960-1177, 138, /* 394 */
961-1963, -1106, /* 395 */
962-5244, -451, /* 396 */
963-24, 730, /* 397 */
964854, -1922, /* 398 */
965176, 86, /* 399 */
966-2212, 1051, /* 400 */
967-1579, -908, /* 401 */
968-1537, -1625, /* 402 */
969-1591, -1676, /* 403 */
970-690, 1718, /* 404 */
971-845, -890, /* 405 */
972-780, 488, /* 406 */
973-1397, -607, /* 407 */
974-337, 1500, /* 408 */
9751503, 1731, /* 409 */
976669, 956, /* 410 */
977-1530, 3940, /* 411 */
978270, 2723, /* 412 */
979-479, -1690, /* 413 */
9801029, -343, /* 414 */
981-1357, 898, /* 415 */
982-1088, 1154, /* 416 */
983-372, 118, /* 417 */
984431, 2723, /* 418 */
985977, 824, /* 419 */
986-1431, -858, /* 420 */
987-2011, -524, /* 421 */
9881795, -1356, /* 422 */
9892317, 281, /* 423 */
990-721, 4253, /* 424 */
991403, -862, /* 425 */
992-883, 1498, /* 426 */
9930, 801, /* 427 */
994-825, 328, /* 428 */
995763, 31, /* 429 */
996-737, 1027, /* 430 */
9972010, 1066, /* 431 */
998466, -366, /* 432 */
999-2060, -169, /* 433 */
100062, 2018, /* 434 */
10011856, 437, /* 435 */
1002-3154, 72, /* 436 */
1003840, -1117, /* 437 */
1004-588, -834, /* 438 */
10053275, -596, /* 439 */
1006-818, 471, /* 440 */
1007-356, -781, /* 441 */
10081478, -494, /* 442 */
1009450, -795, /* 443 */
1010-3197, 435, /* 444 */
1011-2251, 898, /* 445 */
1012-395, -83, /* 446 */
1013-1499, 363, /* 447 */
1014-624, 1790, /* 448 */
1015938, 1549, /* 449 */
1016-1078, 2018, /* 450 */
1017-721, -1308, /* 451 */
1018761, 582, /* 452 */
1019-2938, 2074, /* 453 */
10200, 175, /* 454 */
1021538, -1652, /* 455 */
1022-242, -2234, /* 456 */
1023-246, 1837, /* 457 */
10242059, 1154, /* 458 */
1025-1003, -2331, /* 459 */
10261165, -618, /* 460 */
1027-2188, -907, /* 461 */
1028-2914, 1457, /* 462 */
1029-855, -706, /* 463 */
1030-882, -965, /* 464 */
1031-352, 3292, /* 465 */
1032-748, -507, /* 466 */
1033-337, 652, /* 467 */
10341382, 1204, /* 468 */
1035822, 1253, /* 469 */
1036121, 345, /* 470 */
1037982, -1679, /* 471 */
10381374, 486, /* 472 */
1039-1353, 1759, /* 473 */
1040-1510, -4518, /* 474 */
10411687, 356, /* 475 */
1042470, -278, /* 476 */
1043-2093, 367, /* 477 */
1044-193, -750, /* 478 */
10451369, 766, /* 479 */
1046-1211, -803, /* 480 */
1047499, -2353, /* 481 */
1048-1476, -780, /* 482 */
10491918, 570, /* 483 */
1050-339, 1969, /* 484 */
1051-858, -488, /* 485 */
1052321, 113, /* 486 */
1053-592, 2810, /* 487 */
1054-196, -4518, /* 488 */
105597, -140, /* 489 */
10561829, -1811, /* 490 */
1057702, 273, /* 491 */
10582822, -1418, /* 492 */
1059-2338, 1085, /* 493 */
1060-554, -2176, /* 494 */
1061-981, 2765, /* 495 */
10621799, -3538, /* 496 */
1063-413, -1619, /* 497 */
10642977, -130, /* 498 */
1065-164, 698, /* 499 */
1066-523, 1353, /* 500 */
1067-685, -1525, /* 501 */
10683120, 1325, /* 502 */
10692128, -1046, /* 503 */
10701537, -59, /* 504 */
10713060, -417, /* 505 */
1072892, 254, /* 506 */
1073-1414, 323, /* 507 */
1074-390, 96, /* 508 */
1075216, -1365, /* 509 */
1076862, -236, /* 510 */
1077-311, 1419, /* 511 */
1078};
1079
1080DATA error;
1081
diff --git a/dsplib_benchmarks/cfft1/t7_SCALE.h b/dsplib_benchmarks/cfft1/t7_SCALE.h
new file mode 100644
index 0000000..0b63474
--- /dev/null
+++ b/dsplib_benchmarks/cfft1/t7_SCALE.h
@@ -0,0 +1,1082 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* Test for cfft: rand */
36#define NX 512
37#define FNAME "t7"
38#define MAXERROR 16
39#define SCALING 1
40#pragma DATA_SECTION (x_br,".input")
41#pragma DATA_ALIGN (x_br, 2048)
42DATA x_br[2*NX] ;
43
44#pragma DATA_SECTION (scratch,".input")
45#pragma DATA_ALIGN (scratch, 2048)
46DATA scratch[2*NX] ;
47#pragma DATA_SECTION (x,".input")
48
49DATA x[2*NX] ={
5011550, -9072, /* 0 */
517170, -23614, /* 1 */
5220906, -2976, /* 2 */
5315820, 8386, /* 3 */
54-1428, 15350, /* 4 */
556173, 12162, /* 5 */
56-21003, -16038, /* 6 */
572005, 2473, /* 7 */
58-2105, 1192, /* 8 */
5917260, 19934, /* 9 */
6016885, -2762, /* 10 */
61-1319, -21639, /* 11 */
6213639, 22084, /* 12 */
637414, -23129, /* 13 */
64-23767, 2473, /* 14 */
65-17530, 20645, /* 15 */
66-244, 18948, /* 16 */
67-21947, 5608, /* 17 */
68-12957, 9503, /* 18 */
69-8182, 20873, /* 19 */
7018989, -2278, /* 20 */
71-8855, -15371, /* 21 */
72-11805, 5550, /* 22 */
73-3186, 873, /* 23 */
7416275, -6442, /* 24 */
75-14999, 12992, /* 25 */
76388, 15605, /* 26 */
77-2271, -8634, /* 27 */
78-8292, 4562, /* 28 */
79-5701, 13396, /* 29 */
8018372, -22172, /* 30 */
8112419, 16969, /* 31 */
8218243, 8680, /* 32 */
83-2025, 14349, /* 33 */
8414223, 19856, /* 34 */
85-17395, -5319, /* 35 */
86-20664, -1332, /* 36 */
87-5936, -19583, /* 37 */
88-6013, 20208, /* 38 */
89-760, 8484, /* 39 */
9022316, 6704, /* 40 */
91-7508, 23574, /* 41 */
92-11757, -22, /* 42 */
934035, -3326, /* 43 */
941126, 15647, /* 44 */
95-16001, -18222, /* 45 */
96-647, 4691, /* 46 */
97-188, -13253, /* 47 */
9816314, -4817, /* 48 */
9914555, -9453, /* 49 */
10017008, 6348, /* 50 */
1015217, 21153, /* 51 */
1023124, -23490, /* 52 */
1035319, 15050, /* 53 */
104-18874, 9074, /* 54 */
105-16243, 22864, /* 55 */
106-4105, -20454, /* 56 */
1072871, -21632, /* 57 */
108-10997, 11406, /* 58 */
10913512, 15170, /* 59 */
110-5331, -11369, /* 60 */
111-22296, 9698, /* 61 */
1124064, -9675, /* 62 */
1132783, -19857, /* 63 */
114-14229, 17844, /* 64 */
115-19613, -20087, /* 65 */
11620594, 11455, /* 66 */
117-11439, -17824, /* 67 */
118-14063, -2676, /* 68 */
119-21430, 4396, /* 69 */
1205046, 6481, /* 70 */
1212203, 1556, /* 71 */
122-19213, -13847, /* 72 */
1236512, 8258, /* 73 */
124-2713, -12269, /* 74 */
125-20613, 10483, /* 75 */
126-5976, -4756, /* 76 */
127-11927, -5038, /* 77 */
12820197, -4207, /* 78 */
1296156, -16651, /* 79 */
13017983, 17980, /* 80 */
1316734, -22735, /* 81 */
13214184, 20147, /* 82 */
133-3089, 6304, /* 83 */
13422872, -20588, /* 84 */
135-19208, 6306, /* 85 */
1361306, 12062, /* 86 */
1372169, 12819, /* 87 */
138-10252, 14643, /* 88 */
139-6142, 2059, /* 89 */
140-20694, -710, /* 90 */
1412130, -2795, /* 91 */
14215990, 6013, /* 92 */
143-16861, -20071, /* 93 */
144-15615, 2094, /* 94 */
145-20534, -13829, /* 95 */
14615402, -10934, /* 96 */
147-17400, -9903, /* 97 */
14818291, 15317, /* 98 */
149700, -4208, /* 99 */
15022039, 1281, /* 100 */
151-18041, 19975, /* 101 */
152-21474, -5746, /* 102 */
153-5698, 6602, /* 103 */
154-4146, -15510, /* 104 */
155-4688, 13586, /* 105 */
156-3756, -6388, /* 106 */
157-5850, 13165, /* 107 */
15819363, -7504, /* 108 */
1598089, 13033, /* 109 */
16021954, -16742, /* 110 */
161-16022, -16722, /* 111 */
16211820, 6610, /* 112 */
163-5987, -19330, /* 113 */
164-2176, 20383, /* 114 */
165-21936, -707, /* 115 */
1662967, -16009, /* 116 */
167-6070, -10633, /* 117 */
16813918, -17543, /* 118 */
16914034, -22665, /* 119 */
170-5566, -12774, /* 120 */
171-11752, 16412, /* 121 */
172-7467, 10760, /* 122 */
17322238, 9254, /* 123 */
174-960, -5557, /* 124 */
175-6260, -959, /* 125 */
17612576, 22203, /* 126 */
177-5840, 13478, /* 127 */
17819029, -4291, /* 128 */
179-15049, 21741, /* 129 */
180-6260, -14405, /* 130 */
18119844, 1394, /* 131 */
182756, 199, /* 132 */
183-19476, -789, /* 133 */
18411186, -5818, /* 134 */
185-23545, 937, /* 135 */
1864902, 15010, /* 136 */
18721718, -13851, /* 137 */
188-4876, -5287, /* 138 */
18911007, -21576, /* 139 */
1908777, -9280, /* 140 */
19122746, 14919, /* 141 */
192-14082, 8656, /* 142 */
1934435, 18179, /* 143 */
19421465, -19881, /* 144 */
195-11396, -246, /* 145 */
196697, -3312, /* 146 */
1976480, -7347, /* 147 */
198-4709, 19664, /* 148 */
199-637, -16155, /* 149 */
20011906, -5331, /* 150 */
201-17770, 22210, /* 151 */
202-21722, -20597, /* 152 */
203-6136, -8713, /* 153 */
2049189, -17745, /* 154 */
20520717, -18264, /* 155 */
206-1066, -15956, /* 156 */
207-17632, -19303, /* 157 */
208-769, 1527, /* 158 */
20921182, 12473, /* 159 */
210-6288, -3923, /* 160 */
211-8154, 15950, /* 161 */
21212971, 14485, /* 162 */
213-9638, -23333, /* 163 */
214-15314, 6879, /* 164 */
2159070, -18428, /* 165 */
216-11222, -13515, /* 166 */
217-2009, 19456, /* 167 */
21816338, -16891, /* 168 */
21918135, -13906, /* 169 */
2209508, 16668, /* 170 */
22112154, 10130, /* 171 */
22222557, -19946, /* 172 */
223-4652, 15150, /* 173 */
224-17528, -7181, /* 174 */
22510683, -16042, /* 175 */
22618991, 1889, /* 176 */
227-15654, 20123, /* 177 */
228-21724, -2989, /* 178 */
229-991, 1907, /* 179 */
230-19304, 9429, /* 180 */
2317132, -23671, /* 181 */
23221499, 16001, /* 182 */
233-2011, 18512, /* 183 */
2341753, -22830, /* 184 */
235-20608, -19090, /* 185 */
236-292, -5983, /* 186 */
237-3920, 22222, /* 187 */
238-9876, 5684, /* 188 */
239-9999, 8083, /* 189 */
24012067, -2084, /* 190 */
241-19168, 16069, /* 191 */
242-20113, 15359, /* 192 */
24310501, 2001, /* 193 */
24412593, -19377, /* 194 */
2457508, -9732, /* 195 */
24614755, 4860, /* 196 */
247-5979, -15077, /* 197 */
248-9212, 11084, /* 198 */
249-6147, 2324, /* 199 */
2509828, -16346, /* 200 */
251-15765, 20206, /* 201 */
25214913, -14159, /* 202 */
253-1606, -23367, /* 203 */
25410566, 8989, /* 204 */
25523524, -4708, /* 205 */
256-6537, -5725, /* 206 */
25710972, 19166, /* 207 */
2587114, 21075, /* 208 */
2598620, -1237, /* 209 */
260-23407, -22925, /* 210 */
2617327, 15209, /* 211 */
26221165, -21041, /* 212 */
2635384, -19485, /* 213 */
26413449, 9348, /* 214 */
265-23619, -16774, /* 215 */
26614116, -21032, /* 216 */
2676741, -20757, /* 217 */
268-15285, 10592, /* 218 */
2691397, -22167, /* 219 */
270-13371, 9303, /* 220 */
2712284, -13255, /* 221 */
272-21001, 5960, /* 222 */
2734163, 631, /* 223 */
274-3989, 3598, /* 224 */
275-14906, -10114, /* 225 */
276-20731, 18667, /* 226 */
277-20214, -19367, /* 227 */
278-9031, -9865, /* 228 */
27921110, 15302, /* 229 */
28022852, 23484, /* 230 */
2812620, -20545, /* 231 */
28223223, 22489, /* 232 */
2839106, 20098, /* 233 */
284-12281, 21806, /* 234 */
28514727, 3002, /* 235 */
28620655, 21416, /* 236 */
287-17646, -8642, /* 237 */
2888881, -11129, /* 238 */
289-9639, -20865, /* 239 */
2906998, -7950, /* 240 */
291-1723, -9868, /* 241 */
29220098, -4636, /* 242 */
293-12278, -22147, /* 243 */
2947613, -10104, /* 244 */
295-7973, -13329, /* 245 */
296-1106, 3134, /* 246 */
297-1485, 17593, /* 247 */
2989789, -11648, /* 248 */
299-12363, 4364, /* 249 */
30010325, 1078, /* 250 */
30117360, -17630, /* 251 */
302-4232, -23590, /* 252 */
303-3576, -8281, /* 253 */
30421595, -6619, /* 254 */
30518131, 23485, /* 255 */
3069440, 20914, /* 256 */
307-9251, -3131, /* 257 */
30815655, 20702, /* 258 */
30922371, -151, /* 259 */
310-9503, 22393, /* 260 */
31123676, 21756, /* 261 */
312-2817, 10492, /* 262 */
313-23473, 7033, /* 263 */
314-9893, 17236, /* 264 */
3159121, -22300, /* 265 */
316-340, -6376, /* 266 */
317-19801, -19309, /* 267 */
318-14462, -7861, /* 268 */
31922703, -23421, /* 269 */
320-6361, 14999, /* 270 */
321-17141, -22580, /* 271 */
322-23068, -3604, /* 272 */
3236685, -22162, /* 273 */
32411300, 8399, /* 274 */
325-22497, -8179, /* 275 */
326-18913, 2855, /* 276 */
32718697, -3575, /* 277 */
32812543, -16634, /* 278 */
3293929, -20709, /* 279 */
3308814, 5535, /* 280 */
33122206, 6132, /* 281 */
3322393, -15372, /* 282 */
33313177, -4378, /* 283 */
3345245, 9799, /* 284 */
33523226, -3338, /* 285 */
336-21475, -13742, /* 286 */
33723074, 4325, /* 287 */
338-14037, 16029, /* 288 */
33919607, 18458, /* 289 */
3407869, 18330, /* 290 */
341-1792, 22005, /* 291 */
342-21471, 12817, /* 292 */
343-1881, -6278, /* 293 */
34414258, -20530, /* 294 */
345-10010, -18592, /* 295 */
3469274, 20765, /* 296 */
347-11444, 525, /* 297 */
34810136, -13726, /* 298 */
34910475, -3751, /* 299 */
35011089, 15665, /* 300 */
3515815, -16996, /* 301 */
35223282, -8480, /* 302 */
353-16525, 15112, /* 303 */
354-14104, -9822, /* 304 */
35515179, -19968, /* 305 */
356-20991, 20360, /* 306 */
3571830, -15841, /* 307 */
358-14730, -5383, /* 308 */
3594729, -666, /* 309 */
360-9876, 14778, /* 310 */
361-19430, -4483, /* 311 */
362321, 14024, /* 312 */
36318260, -22848, /* 313 */
3645493, 21708, /* 314 */
365-21564, 16871, /* 315 */
36621483, 23117, /* 316 */
367-15734, -11852, /* 317 */
36815529, -832, /* 318 */
3695294, -8338, /* 319 */
37016509, -21040, /* 320 */
371-18344, -9937, /* 321 */
3727093, 8370, /* 322 */
373-18311, 21494, /* 323 */
374-1264, -21855, /* 324 */
3758707, 15288, /* 325 */
376-17432, -13139, /* 326 */
377-1708, 23754, /* 327 */
378-20382, -11384, /* 328 */
3793860, -12822, /* 329 */
3803136, 1192, /* 330 */
381-11635, 2884, /* 331 */
382-12432, 15498, /* 332 */
383-23011, -10056, /* 333 */
384-5479, -11756, /* 334 */
38512231, -12348, /* 335 */
3863572, 2447, /* 336 */
387-4370, -13533, /* 337 */
388-14466, 7867, /* 338 */
389578, -9087, /* 339 */
39010141, -1437, /* 340 */
39117464, 275, /* 341 */
39211494, 8955, /* 342 */
39323522, -14601, /* 343 */
39417434, -10765, /* 344 */
395-675, 20266, /* 345 */
39619171, -12610, /* 346 */
397-22803, -17685, /* 347 */
3986502, -4154, /* 348 */
39921109, 6404, /* 349 */
400-21831, -15139, /* 350 */
401-10189, -4601, /* 351 */
4028426, 8973, /* 352 */
4034096, -8277, /* 353 */
404-20681, 20121, /* 354 */
40518026, 12223, /* 355 */
406-575, -4701, /* 356 */
40718609, -14447, /* 357 */
40812468, -4741, /* 358 */
4097382, -16426, /* 359 */
41022412, -20700, /* 360 */
411-15634, -18048, /* 361 */
412-17306, -22374, /* 362 */
41312131, 17359, /* 363 */
414-8880, -4079, /* 364 */
415-1747, 13877, /* 365 */
416-7633, 15040, /* 366 */
417-23312, -4977, /* 367 */
418-7901, 15494, /* 368 */
419-12036, -7719, /* 369 */
42023486, -14387, /* 370 */
42119279, 478, /* 371 */
422-7142, -13792, /* 372 */
423-10548, 3802, /* 373 */
424-19352, 22780, /* 374 */
425-12335, -1563, /* 375 */
42619093, 14361, /* 376 */
427-8355, -3188, /* 377 */
4283456, -12304, /* 378 */
429-14972, 6399, /* 379 */
43011309, -6314, /* 380 */
431-18456, -3259, /* 381 */
432-5527, -9417, /* 382 */
43317225, -3225, /* 383 */
43416974, 9056, /* 384 */
43515181, 584, /* 385 */
436-12089, 23358, /* 386 */
43718900, -15019, /* 387 */
4384949, 2803, /* 388 */
439-17127, -616, /* 389 */
440-16101, -4874, /* 390 */
44118213, -340, /* 391 */
44222750, 22287, /* 392 */
4434816, 15546, /* 393 */
444-6570, -17666, /* 394 */
445-12769, 16270, /* 395 */
446-2390, 13760, /* 396 */
4476802, -7377, /* 397 */
448-12112, 11337, /* 398 */
449-1521, -20940, /* 399 */
450-123, 2787, /* 400 */
451-20205, 13439, /* 401 */
45212673, -17077, /* 402 */
453-21612, 2740, /* 403 */
454-15920, -14003, /* 404 */
45513177, 17136, /* 405 */
456-13865, -11535, /* 406 */
457-11800, -10571, /* 407 */
458-4919, -10070, /* 408 */
459-919, 11160, /* 409 */
460441, -143, /* 410 */
4615932, -21170, /* 411 */
4625968, -14676, /* 412 */
46323348, 10675, /* 413 */
464-6693, 22516, /* 414 */
465-10649, 9720, /* 415 */
4668467, 14333, /* 416 */
467416, -13965, /* 417 */
468-10608, 12961, /* 418 */
4693747, 17717, /* 419 */
47015346, 14612, /* 420 */
47120985, 12199, /* 421 */
472-2647, 19234, /* 422 */
473-3650, -3756, /* 423 */
47423587, 7529, /* 424 */
4755424, -23707, /* 425 */
47621109, 22912, /* 426 */
47719589, -4169, /* 427 */
47814973, -7245, /* 428 */
4799014, 7994, /* 429 */
480-9097, -2678, /* 430 */
4812766, 16156, /* 431 */
4826501, 1403, /* 432 */
48312791, -11545, /* 433 */
484-21201, -16339, /* 434 */
485-18310, 2748, /* 435 */
48616447, 21928, /* 436 */
487-15574, 21452, /* 437 */
488-22011, 11164, /* 438 */
489-8911, -13189, /* 439 */
49015082, -161, /* 440 */
491-12615, -23435, /* 441 */
4924156, -8738, /* 442 */
49320164, 11333, /* 443 */
494-8079, 13801, /* 444 */
495-13998, -4741, /* 445 */
496-6442, -4760, /* 446 */
49722614, -11804, /* 447 */
49810310, -19400, /* 448 */
4996812, 4858, /* 449 */
50013432, 15803, /* 450 */
501-1594, -9818, /* 451 */
502-12727, -1639, /* 452 */
503-8658, -21605, /* 453 */
50413728, -19694, /* 454 */
5056391, 624, /* 455 */
5067595, 10240, /* 456 */
5071786, -22085, /* 457 */
50819928, 22797, /* 458 */
50913334, -122, /* 459 */
510-8238, 9542, /* 460 */
51111349, 14409, /* 461 */
512-2960, 792, /* 462 */
5134363, 128, /* 463 */
514-18326, 12109, /* 464 */
515-8597, -12450, /* 465 */
5165792, 21062, /* 466 */
51718755, -19556, /* 467 */
51822037, 2044, /* 468 */
519-22815, 19178, /* 469 */
520-18509, 17176, /* 470 */
521-4611, 6250, /* 471 */
522-19149, -11297, /* 472 */
523-9838, -5752, /* 473 */
5248495, -7734, /* 474 */
52522807, -8814, /* 475 */
526-4781, 21254, /* 476 */
52715253, 1671, /* 477 */
528-17512, 9600, /* 478 */
52916395, 17828, /* 479 */
530-12706, 23114, /* 480 */
531-20577, 18316, /* 481 */
532-8013, -4524, /* 482 */
5333576, 6044, /* 483 */
534-17265, -5446, /* 484 */
53517484, 16536, /* 485 */
536-8117, 1276, /* 486 */
537-571, 14613, /* 487 */
538-3255, -5063, /* 488 */
539-11384, 21949, /* 489 */
54022960, -22337, /* 490 */
54122137, 21569, /* 491 */
54221321, 10191, /* 492 */
543-2295, 6966, /* 493 */
544-8001, -2537, /* 494 */
545-23400, -15468, /* 495 */
546-15886, 15936, /* 496 */
54715600, 22346, /* 497 */
5486816, -17353, /* 498 */
549-8449, -11838, /* 499 */
550-22516, 19490, /* 500 */
551-6872, 8388, /* 501 */
55211593, 5854, /* 502 */
553-9571, 580, /* 503 */
554-15154, -23604, /* 504 */
555-4032, -12983, /* 505 */
55617462, 22744, /* 506 */
5575939, 17172, /* 507 */
558-21145, -23085, /* 508 */
559-4560, -677, /* 509 */
560-9415, -3974, /* 510 */
561-16528, 12973, /* 511 */
562};
563
564#pragma DATA_SECTION (rtest,".test")
565
566DATA rtest[2*NX] ={
567206, 51, /* 0 */
568-784, 1164, /* 1 */
569-158, 927, /* 2 */
570-225, 216, /* 3 */
571426, -126, /* 4 */
572-400, -114, /* 5 */
573-49, -591, /* 6 */
574336, -387, /* 7 */
575-568, -121, /* 8 */
576471, -1043, /* 9 */
577209, -149, /* 10 */
57877, 6, /* 11 */
5791146, 919, /* 12 */
58018, -397, /* 13 */
581-688, 118, /* 14 */
582-350, -1805, /* 15 */
583808, -55, /* 16 */
584-391, -231, /* 17 */
5851541, 626, /* 18 */
586-701, -537, /* 19 */
5871245, -210, /* 20 */
588-67, -545, /* 21 */
589225, -136, /* 22 */
590-1611, -1108, /* 23 */
591416, -304, /* 24 */
592318, 246, /* 25 */
593224, -670, /* 26 */
594-290, -299, /* 27 */
595-872, 581, /* 28 */
596223, 287, /* 29 */
597900, 578, /* 30 */
598246, 377, /* 31 */
599220, 1014, /* 32 */
600244, -298, /* 33 */
601-922, -675, /* 34 */
602-1559, 453, /* 35 */
603935, -377, /* 36 */
604-448, 487, /* 37 */
605671, -492, /* 38 */
606-594, 109, /* 39 */
607407, -997, /* 40 */
608-446, 527, /* 41 */
6091244, 152, /* 42 */
61086, -1604, /* 43 */
611452, -35, /* 44 */
612114, -452, /* 45 */
613315, 244, /* 46 */
614306, -73, /* 47 */
615641, 651, /* 48 */
616-656, 728, /* 49 */
617-615, -286, /* 50 */
618797, 119, /* 51 */
619514, -452, /* 52 */
620-295, -1637, /* 53 */
621-922, -1376, /* 54 */
6221081, -757, /* 55 */
623-472, -1085, /* 56 */
624-134, 278, /* 57 */
625-166, -95, /* 58 */
626-282, 216, /* 59 */
627-270, 843, /* 60 */
628-610, 333, /* 61 */
62928, 1098, /* 62 */
630-633, -1029, /* 63 */
631-127, -737, /* 64 */
632513, -961, /* 65 */
63351, -1128, /* 66 */
634548, -389, /* 67 */
635-170, -206, /* 68 */
636265, -497, /* 69 */
637-205, -788, /* 70 */
638-36, -1558, /* 71 */
639782, -416, /* 72 */
6402047, 273, /* 73 */
641-1283, 172, /* 74 */
642-968, -316, /* 75 */
643-333, 1036, /* 76 */
644203, -52, /* 77 */
645356, 241, /* 78 */
646447, -1111, /* 79 */
647639, -187, /* 80 */
648268, 594, /* 81 */
649538, 374, /* 82 */
650-6, 93, /* 83 */
651-546, 536, /* 84 */
652-454, -588, /* 85 */
653-1785, -345, /* 86 */
654561, -1056, /* 87 */
655-357, 76, /* 88 */
656-413, 103, /* 89 */
657672, -382, /* 90 */
658-806, -53, /* 91 */
659-651, -834, /* 92 */
660113, -33, /* 93 */
661499, 162, /* 94 */
662-34, 344, /* 95 */
663860, 403, /* 96 */
664-103, -94, /* 97 */
665-454, 472, /* 98 */
666794, 389, /* 99 */
667-1451, -354, /* 100 */
668-340, 105, /* 101 */
669-514, 952, /* 102 */
670-203, -687, /* 103 */
671-137, 1268, /* 104 */
67270, 188, /* 105 */
673226, 184, /* 106 */
674191, -29, /* 107 */
675-266, 495, /* 108 */
676-673, -359, /* 109 */
677-285, 352, /* 110 */
678-1424, -322, /* 111 */
679-799, 750, /* 112 */
6801023, -122, /* 113 */
681-722, 1, /* 114 */
682-727, 215, /* 115 */
683713, 892, /* 116 */
684-1253, -156, /* 117 */
685104, -876, /* 118 */
68644, -341, /* 119 */
687-1134, 339, /* 120 */
688-720, 133, /* 121 */
689-702, -338, /* 122 */
690875, 255, /* 123 */
691839, -394, /* 124 */
692-168, 981, /* 125 */
693-454, -472, /* 126 */
694304, 181, /* 127 */
695182, -46, /* 128 */
69655, 871, /* 129 */
697-1213, 219, /* 130 */
698-629, -515, /* 131 */
699237, 553, /* 132 */
700-62, -1148, /* 133 */
70157, -623, /* 134 */
702276, -88, /* 135 */
703-973, 232, /* 136 */
704434, -223, /* 137 */
705-1473, -531, /* 138 */
706924, -934, /* 139 */
707-16, -646, /* 140 */
708663, -583, /* 141 */
709-795, 950, /* 142 */
710413, -572, /* 143 */
71124, 155, /* 144 */
712-683, 661, /* 145 */
713578, -870, /* 146 */
714-1019, -1221, /* 147 */
715629, 55, /* 148 */
716547, -466, /* 149 */
717-324, -40, /* 150 */
71846, 123, /* 151 */
719500, 12, /* 152 */
720467, -362, /* 153 */
7211123, 51, /* 154 */
722-137, -896, /* 155 */
723211, -1, /* 156 */
724-17, -206, /* 157 */
725-770, -698, /* 158 */
726-512, 44, /* 159 */
727-981, 682, /* 160 */
7281036, -702, /* 161 */
729-973, 1039, /* 162 */
7301521, 1288, /* 163 */
731539, -348, /* 164 */
732-248, 4, /* 165 */
733357, 257, /* 166 */
734-270, 271, /* 167 */
735882, -821, /* 168 */
736374, -23, /* 169 */
737582, -1, /* 170 */
738-32, 755, /* 171 */
73913, -500, /* 172 */
740-372, -376, /* 173 */
741-679, 1398, /* 174 */
742718, -77, /* 175 */
743-391, 16, /* 176 */
7449, 119, /* 177 */
745611, 688, /* 178 */
746-490, 726, /* 179 */
747-252, 148, /* 180 */
748-37, -578, /* 181 */
749-921, -606, /* 182 */
750-246, 636, /* 183 */
751-538, -541, /* 184 */
752360, -1288, /* 185 */
753-654, 787, /* 186 */
754501, -211, /* 187 */
7551114, 54, /* 188 */
756201, 122, /* 189 */
757-576, -722, /* 190 */
758977, 200, /* 191 */
759372, 354, /* 192 */
760-1327, 654, /* 193 */
761226, 234, /* 194 */
762785, -1335, /* 195 */
763551, -113, /* 196 */
764-540, 254, /* 197 */
765-427, 155, /* 198 */
766-229, 646, /* 199 */
767-143, 373, /* 200 */
768-413, 177, /* 201 */
769700, 421, /* 202 */
770-179, 889, /* 203 */
771-356, -761, /* 204 */
772-10, -912, /* 205 */
773246, -284, /* 206 */
77477, 148, /* 207 */
775-95, -174, /* 208 */
776-64, -686, /* 209 */
777145, 981, /* 210 */
778-481, 1857, /* 211 */
779-203, -79, /* 212 */
780518, -281, /* 213 */
78132, 858, /* 214 */
78267, 427, /* 215 */
783-511, 100, /* 216 */
784-546, 235, /* 217 */
785273, -772, /* 218 */
7861069, 259, /* 219 */
787815, 34, /* 220 */
788-491, -916, /* 221 */
789-238, 761, /* 222 */
790-238, 986, /* 223 */
791-279, 934, /* 224 */
7921142, 140, /* 225 */
793241, -1017, /* 226 */
794-448, -687, /* 227 */
795-518, 330, /* 228 */
796-13, -973, /* 229 */
797151, 1095, /* 230 */
798-917, -502, /* 231 */
7991163, -860, /* 232 */
800113, 887, /* 233 */
801424, -588, /* 234 */
8021169, 452, /* 235 */
803-887, -1058, /* 236 */
804517, -1380, /* 237 */
805-88, 138, /* 238 */
806-404, 221, /* 239 */
807-448, -388, /* 240 */
808305, -39, /* 241 */
809-777, -824, /* 242 */
8101155, 109, /* 243 */
811-732, 11, /* 244 */
812525, 315, /* 245 */
813-425, -439, /* 246 */
814-655, 126, /* 247 */
815172, -760, /* 248 */
816-1043, 1258, /* 249 */
81761, -27, /* 250 */
81869, 325, /* 251 */
819-103, -657, /* 252 */
820-378, -522, /* 253 */
821-527, 1125, /* 254 */
822675, 205, /* 255 */
823833, 989, /* 256 */
824-254, -1430, /* 257 */
825-399, 49, /* 258 */
826-253, -1391, /* 259 */
827-45, 51, /* 260 */
828791, -849, /* 261 */
829417, -279, /* 262 */
830295, -333, /* 263 */
831885, 404, /* 264 */
832-576, 23, /* 265 */
833338, 407, /* 266 */
834-548, 381, /* 267 */
83513, 1124, /* 268 */
836-1093, 618, /* 269 */
837301, -574, /* 270 */
83828, 158, /* 271 */
839-298, -56, /* 272 */
840-93, -37, /* 273 */
841-515, -507, /* 274 */
842710, -587, /* 275 */
843-373, -810, /* 276 */
844-417, -635, /* 277 */
845-188, 215, /* 278 */
846233, 516, /* 279 */
847771, -353, /* 280 */
848-444, -373, /* 281 */
8491064, 550, /* 282 */
850616, -85, /* 283 */
851946, -114, /* 284 */
852-407, 421, /* 285 */
853-1624, 426, /* 286 */
854637, 853, /* 287 */
85553, 642, /* 288 */
856128, -758, /* 289 */
857431, -760, /* 290 */
858219, 406, /* 291 */
859-128, 143, /* 292 */
860-1296, 360, /* 293 */
861370, 665, /* 294 */
862-373, -1315, /* 295 */
863-27, 781, /* 296 */
86435, -12, /* 297 */
865225, 307, /* 298 */
866321, -405, /* 299 */
867-548, 266, /* 300 */
868239, 1125, /* 301 */
8691251, -131, /* 302 */
8701038, 29, /* 303 */
871970, -266, /* 304 */
872272, -474, /* 305 */
873514, -411, /* 306 */
874-82, -917, /* 307 */
875271, 448, /* 308 */
8761065, 44, /* 309 */
877507, 174, /* 310 */
878-386, 264, /* 311 */
879810, 353, /* 312 */
880326, 767, /* 313 */
881293, -319, /* 314 */
882-504, 781, /* 315 */
883839, 269, /* 316 */
884-80, -1242, /* 317 */
885-343, -856, /* 318 */
886-71, -239, /* 319 */
8871271, -370, /* 320 */
888-91, -31, /* 321 */
889890, -284, /* 322 */
89098, -650, /* 323 */
891-308, -498, /* 324 */
892-725, -426, /* 325 */
893158, -454, /* 326 */
894-304, 606, /* 327 */
895-988, 739, /* 328 */
896426, -372, /* 329 */
8971181, -563, /* 330 */
898-593, 707, /* 331 */
899543, 178, /* 332 */
900-1068, 357, /* 333 */
901182, 221, /* 334 */
902-187, -357, /* 335 */
903606, -707, /* 336 */
90442, 718, /* 337 */
905381, 362, /* 338 */
906662, -233, /* 339 */
9071637, 875, /* 340 */
908-802, 33, /* 341 */
90983, 273, /* 342 */
910-908, 76, /* 343 */
911-378, 1159, /* 344 */
9121063, -422, /* 345 */
913-1356, 698, /* 346 */
914291, 930, /* 347 */
915697, -1386, /* 348 */
916-786, 438, /* 349 */
917422, 981, /* 350 */
918-206, 328, /* 351 */
919329, -208, /* 352 */
920126, 989, /* 353 */
921-428, -610, /* 354 */
922978, 315, /* 355 */
923-387, 376, /* 356 */
9241262, -42, /* 357 */
925429, -153, /* 358 */
926-639, -299, /* 359 */
927-600, -1424, /* 360 */
928326, -1081, /* 361 */
929-79, 247, /* 362 */
930531, -929, /* 363 */
931-190, -316, /* 364 */
932-55, 536, /* 365 */
933-505, -416, /* 366 */
934352, -1320, /* 367 */
935-1112, -951, /* 368 */
936-904, 922, /* 369 */
937-626, -661, /* 370 */
938-61, 866, /* 371 */
939306, 548, /* 372 */
940199, 237, /* 373 */
941381, 390, /* 374 */
942-534, -384, /* 375 */
943-521, -540, /* 376 */
9441002, 924, /* 377 */
945-252, 454, /* 378 */
946790, 1707, /* 379 */
947-1120, 604, /* 380 */
948459, 695, /* 381 */
949-848, 689, /* 382 */
950717, -706, /* 383 */
951783, -351, /* 384 */
952-742, -666, /* 385 */
953-519, 673, /* 386 */
95459, -581, /* 387 */
95554, 155, /* 388 */
956-25, 182, /* 389 */
957481, -417, /* 390 */
958-538, -153, /* 391 */
959452, -60, /* 392 */
960-862, 362, /* 393 */
961-209, -612, /* 394 */
962436, -615, /* 395 */
9631207, -1516, /* 396 */
964-348, -545, /* 397 */
965-178, 416, /* 398 */
966-176, -384, /* 399 */
967749, -757, /* 400 */
968497, 58, /* 401 */
969342, 387, /* 402 */
970244, 469, /* 403 */
971765, -600, /* 404 */
97291, 125, /* 405 */
973496, -83, /* 406 */
974136, 299, /* 407 */
975820, -79, /* 408 */
9761014, -573, /* 409 */
977714, -211, /* 410 */
9781183, 1177, /* 411 */
9791067, 590, /* 412 */
980-195, -416, /* 413 */
981573, -228, /* 414 */
982-163, 474, /* 415 */
983-160, 501, /* 416 */
98469, 117, /* 417 */
985-50, 1088, /* 418 */
986286, 570, /* 419 */
987-15, -459, /* 420 */
988-140, -585, /* 421 */
989788, 536, /* 422 */
990128, 958, /* 423 */
991-1496, -159, /* 424 */
992312, 294, /* 425 */
993-356, -430, /* 426 */
994-224, -103, /* 427 */
995143, -253, /* 428 */
996-220, 172, /* 429 */
997125, -433, /* 430 */
998-763, -236, /* 431 */
999-133, 124, /* 432 */
1000768, 190, /* 433 */
1001318, -706, /* 434 */
1002-400, -529, /* 435 */
1003911, 768, /* 436 */
1004-410, -47, /* 437 */
1005-91, 299, /* 438 */
1006-327, -1129, /* 439 */
1007296, 300, /* 440 */
1008-171, 85, /* 441 */
1009176, -539, /* 442 */
1010-10, -259, /* 443 */
1011-569, 980, /* 444 */
1012-360, 785, /* 445 */
1013-8, 99, /* 446 */
1014-377, 317, /* 447 */
1015-101, 740, /* 448 */
1016343, 716, /* 449 */
1017-529, 632, /* 450 */
1018151, -429, /* 451 */
1019144, 459, /* 452 */
1020-1127, -350, /* 453 */
102125, 145, /* 454 */
1022703, 197, /* 455 */
1023882, 36, /* 456 */
1024-570, -93, /* 457 */
1025-611, 655, /* 458 */
1026962, 293, /* 459 */
1027-87, 584, /* 460 */
1028891, -39, /* 461 */
1029819, -763, /* 462 */
1030395, 323, /* 463 */
1031355, 485, /* 464 */
1032388, -1009, /* 465 */
1033204, 413, /* 466 */
1034250, 13, /* 467 */
1035-37, -520, /* 468 */
1036212, -357, /* 469 */
103790, 55, /* 470 */
1038-686, -88, /* 471 */
1039147, -359, /* 472 */
1040490, 741, /* 473 */
1041-1774, 8, /* 474 */
1042387, -316, /* 475 */
1043-20, -81, /* 476 */
1044-634, 632, /* 477 */
1045-251, -137, /* 478 */
1046454, 249, /* 479 */
1047-528, -233, /* 480 */
1048256, -759, /* 481 */
1049-471, -439, /* 482 */
1050385, 570, /* 483 */
1051-662, 415, /* 484 */
1052-84, -373, /* 485 */
1053-38, 96, /* 486 */
1054-1070, -48, /* 487 */
10551627, -113, /* 488 */
105651, -1, /* 489 */
1057380, 820, /* 490 */
1058-177, 116, /* 491 */
1059-294, 1054, /* 492 */
1060570, -821, /* 493 */
1061588, 643, /* 494 */
1062267, -1045, /* 495 */
1063-527, 1311, /* 496 */
1064165, 654, /* 497 */
1065-878, -297, /* 498 */
1066328, -81, /* 499 */
1067615, -92, /* 500 */
1068-196, 658, /* 501 */
1069125, -1063, /* 502 */
1070-424, -496, /* 503 */
107158, -353, /* 504 */
1072126, -898, /* 505 */
1073243, -32, /* 506 */
1074-180, 730, /* 507 */
1075-94, 366, /* 508 */
1076-256, -214, /* 509 */
1077184, 36, /* 510 */
1078-108, 752, /* 511 */
1079};
1080
1081DATA error;
1082
diff --git a/dsplib_benchmarks/cfft1/t8_NOSCALE.h b/dsplib_benchmarks/cfft1/t8_NOSCALE.h
new file mode 100644
index 0000000..60200a8
--- /dev/null
+++ b/dsplib_benchmarks/cfft1/t8_NOSCALE.h
@@ -0,0 +1,2105 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* Test for cfft: rand */
36#define NX 1024
37#define FNAME "t8"
38#define MAXERROR 1030
39#pragma DATA_SECTION (x_br,".input")
40#pragma DATA_ALIGN (x_br, 2048)
41DATA x_br[2*NX] ;
42
43#pragma DATA_SECTION (scratch,".input")
44#pragma DATA_ALIGN (scratch, 2048)
45DATA scratch[2*NX] ;
46#pragma DATA_SECTION (x,".input")
47
48DATA x[2*NX] ={
4985, -3, /* 0 */
50120, 47, /* 1 */
51-94, -36, /* 2 */
52-64, -26, /* 3 */
53104, 3, /* 4 */
5445, -117, /* 5 */
5531, 125, /* 6 */
563, -49, /* 7 */
57-128, -63, /* 8 */
58-70, 28, /* 9 */
59122, -14, /* 10 */
6092, -21, /* 11 */
61-125, -23, /* 12 */
62-4, 54, /* 13 */
63-22, -102, /* 14 */
6469, -31, /* 15 */
65-4, 64, /* 16 */
665, -90, /* 17 */
6772, 41, /* 18 */
6823, -68, /* 19 */
69-96, 58, /* 20 */
70-100, -62, /* 21 */
7141, -8, /* 22 */
72127, 91, /* 23 */
73-40, 85, /* 24 */
74-83, -7, /* 25 */
75-111, -41, /* 26 */
76-49, 10, /* 27 */
77-43, 15, /* 28 */
78-32, 108, /* 29 */
79115, -58, /* 30 */
8056, -53, /* 31 */
8171, 28, /* 32 */
8230, 99, /* 33 */
8338, 54, /* 34 */
8465, -77, /* 35 */
85-91, -101, /* 36 */
8625, 60, /* 37 */
87102, 67, /* 38 */
88-84, -57, /* 39 */
8981, 88, /* 40 */
90-111, 31, /* 41 */
91116, 31, /* 42 */
92-47, 116, /* 43 */
93-127, -53, /* 44 */
9466, 33, /* 45 */
95-49, 8, /* 46 */
9655, 95, /* 47 */
97-108, 21, /* 48 */
9888, 26, /* 49 */
9955, -4, /* 50 */
10094, 113, /* 51 */
10195, -40, /* 52 */
10266, -77, /* 53 */
10343, -103, /* 54 */
104102, 38, /* 55 */
10582, 27, /* 56 */
10685, 79, /* 57 */
10735, -10, /* 58 */
108-89, -104, /* 59 */
10972, -102, /* 60 */
11059, 95, /* 61 */
11116, -113, /* 62 */
11257, 88, /* 63 */
113-67, -12, /* 64 */
114-3, -65, /* 65 */
115-20, 125, /* 66 */
11675, 16, /* 67 */
11767, -72, /* 68 */
118-67, 96, /* 69 */
11934, 58, /* 70 */
120-69, 90, /* 71 */
12129, -83, /* 72 */
122-60, 10, /* 73 */
123125, -8, /* 74 */
12466, 59, /* 75 */
125-5, 123, /* 76 */
126113, 42, /* 77 */
127-36, 46, /* 78 */
128-107, 96, /* 79 */
129114, 1, /* 80 */
13048, -9, /* 81 */
13129, -66, /* 82 */
132101, 16, /* 83 */
133-125, 66, /* 84 */
134-51, -40, /* 85 */
135119, -14, /* 86 */
136-102, 4, /* 87 */
13724, -88, /* 88 */
138-8, 123, /* 89 */
13955, -52, /* 90 */
14091, -89, /* 91 */
141-81, 111, /* 92 */
142-10, 44, /* 93 */
143103, -19, /* 94 */
144-123, 85, /* 95 */
14566, -85, /* 96 */
14675, -16, /* 97 */
147-48, 64, /* 98 */
148-68, 29, /* 99 */
149-2, -63, /* 100 */
15047, -39, /* 101 */
151113, 28, /* 102 */
152-16, -42, /* 103 */
153-1, 34, /* 104 */
154-103, 4, /* 105 */
15513, 5, /* 106 */
156-17, 32, /* 107 */
157-82, 114, /* 108 */
158-89, -71, /* 109 */
159111, 126, /* 110 */
160-94, 96, /* 111 */
161127, 32, /* 112 */
16248, -74, /* 113 */
163118, 106, /* 114 */
16470, -94, /* 115 */
165-128, 119, /* 116 */
166-45, 30, /* 117 */
16711, 36, /* 118 */
168-50, -125, /* 119 */
16944, 74, /* 120 */
170-40, 102, /* 121 */
171123, -128, /* 122 */
172-38, 4, /* 123 */
173-123, 31, /* 124 */
17480, -61, /* 125 */
175123, -26, /* 126 */
176-49, 122, /* 127 */
177-31, -51, /* 128 */
17863, 17, /* 129 */
179-15, -73, /* 130 */
180-103, -94, /* 131 */
181126, 122, /* 132 */
1829, -74, /* 133 */
183-94, -94, /* 134 */
184-95, -115, /* 135 */
18593, -61, /* 136 */
18653, 65, /* 137 */
187127, -17, /* 138 */
18880, 1, /* 139 */
18972, -2, /* 140 */
19067, -104, /* 141 */
191103, 120, /* 142 */
192-102, -20, /* 143 */
193-74, -59, /* 144 */
19489, 111, /* 145 */
19562, -72, /* 146 */
196-25, -80, /* 147 */
197-50, -57, /* 148 */
198-7, 44, /* 149 */
199-91, 25, /* 150 */
200-2, -29, /* 151 */
2017, 111, /* 152 */
2022, 83, /* 153 */
203-70, -115, /* 154 */
204111, 83, /* 155 */
2054, -29, /* 156 */
206-11, -14, /* 157 */
20770, -126, /* 158 */
20859, -57, /* 159 */
20926, -54, /* 160 */
210-114, -18, /* 161 */
211-110, 51, /* 162 */
21234, -126, /* 163 */
21396, -68, /* 164 */
214-19, -26, /* 165 */
21553, -106, /* 166 */
216-111, 98, /* 167 */
217-124, -17, /* 168 */
2182, -49, /* 169 */
21994, 83, /* 170 */
22076, 47, /* 171 */
22176, 7, /* 172 */
222-78, -83, /* 173 */
22354, 101, /* 174 */
224-73, 79, /* 175 */
22573, -29, /* 176 */
226-84, -6, /* 177 */
227-76, 27, /* 178 */
228-10, 38, /* 179 */
229-109, 67, /* 180 */
23024, -14, /* 181 */
231-80, 36, /* 182 */
232111, -57, /* 183 */
233-50, -15, /* 184 */
234-10, -65, /* 185 */
23584, -90, /* 186 */
236-52, -76, /* 187 */
23753, 106, /* 188 */
238-109, 21, /* 189 */
23964, 49, /* 190 */
240-8, 91, /* 191 */
241113, -4, /* 192 */
242-125, -41, /* 193 */
243-115, -21, /* 194 */
24461, -98, /* 195 */
24534, 4, /* 196 */
246110, 120, /* 197 */
247-10, -44, /* 198 */
2483, -42, /* 199 */
249-20, 77, /* 200 */
250-22, -88, /* 201 */
251-29, -88, /* 202 */
25291, -87, /* 203 */
25382, 106, /* 204 */
254105, 70, /* 205 */
25586, -18, /* 206 */
25694, -62, /* 207 */
25770, 31, /* 208 */
258-18, 124, /* 209 */
259-17, 35, /* 210 */
260-71, -69, /* 211 */
261-125, 72, /* 212 */
262-32, -128, /* 213 */
26386, 76, /* 214 */
264-55, -75, /* 215 */
265-56, -77, /* 216 */
266-45, 122, /* 217 */
267-7, 31, /* 218 */
268-71, -114, /* 219 */
269118, -92, /* 220 */
270-50, -24, /* 221 */
27171, 71, /* 222 */
272101, -87, /* 223 */
273-64, -122, /* 224 */
274-91, 89, /* 225 */
275-41, -64, /* 226 */
27659, -27, /* 227 */
277-120, 47, /* 228 */
27811, 94, /* 229 */
27914, 46, /* 230 */
28043, -93, /* 231 */
28121, 19, /* 232 */
28247, 47, /* 233 */
28368, -48, /* 234 */
284101, 3, /* 235 */
285119, -14, /* 236 */
286103, 5, /* 237 */
287-83, -35, /* 238 */
288122, 38, /* 239 */
289101, 95, /* 240 */
290-121, 94, /* 241 */
291-56, 7, /* 242 */
292-80, 117, /* 243 */
29327, 23, /* 244 */
294-75, -123, /* 245 */
295127, -82, /* 246 */
296-124, -9, /* 247 */
297-16, 29, /* 248 */
298-91, -93, /* 249 */
29931, -74, /* 250 */
30065, 125, /* 251 */
301-57, -44, /* 252 */
3026, -19, /* 253 */
303-49, -91, /* 254 */
304-82, 11, /* 255 */
30571, -105, /* 256 */
30679, -17, /* 257 */
30757, -107, /* 258 */
308-117, 14, /* 259 */
30929, -124, /* 260 */
310-43, 36, /* 261 */
31121, -28, /* 262 */
312105, -45, /* 263 */
3130, -61, /* 264 */
314-22, 2, /* 265 */
31576, -12, /* 266 */
31699, 79, /* 267 */
3173, -9, /* 268 */
318-29, 4, /* 269 */
319110, -77, /* 270 */
320-56, 20, /* 271 */
32169, 25, /* 272 */
32258, 40, /* 273 */
323106, 20, /* 274 */
324-101, 67, /* 275 */
32599, -87, /* 276 */
32624, 86, /* 277 */
327-125, 127, /* 278 */
328-67, 40, /* 279 */
329-97, -97, /* 280 */
33097, 22, /* 281 */
33180, -91, /* 282 */
33267, 115, /* 283 */
33379, 61, /* 284 */
33446, 95, /* 285 */
33531, -86, /* 286 */
336-34, -7, /* 287 */
337-77, -40, /* 288 */
338-58, -52, /* 289 */
339-5, -118, /* 290 */
340-26, -31, /* 291 */
34151, -95, /* 292 */
342-46, -92, /* 293 */
343-116, -31, /* 294 */
34471, 35, /* 295 */
34513, 71, /* 296 */
346-111, -19, /* 297 */
347-1, -85, /* 298 */
34886, -35, /* 299 */
349-10, 122, /* 300 */
35071, -11, /* 301 */
351-3, 95, /* 302 */
35250, -90, /* 303 */
353124, -15, /* 304 */
354-38, 107, /* 305 */
35531, 122, /* 306 */
3564, -10, /* 307 */
35780, -40, /* 308 */
358-3, -75, /* 309 */
35959, -48, /* 310 */
36053, 101, /* 311 */
36185, -110, /* 312 */
362-126, -65, /* 313 */
363-116, -123, /* 314 */
3640, 127, /* 315 */
365-54, -103, /* 316 */
366-125, 107, /* 317 */
36775, -94, /* 318 */
368-111, -76, /* 319 */
369-49, -86, /* 320 */
370-41, 70, /* 321 */
37181, 15, /* 322 */
372-127, 42, /* 323 */
373-2, 95, /* 324 */
37429, 28, /* 325 */
375-33, 112, /* 326 */
376-78, -55, /* 327 */
377101, 67, /* 328 */
378124, -90, /* 329 */
379107, 30, /* 330 */
380-28, 31, /* 331 */
38141, 78, /* 332 */
38210, -47, /* 333 */
383-74, -39, /* 334 */
384-50, -64, /* 335 */
385-125, 107, /* 336 */
386-127, 52, /* 337 */
387124, 52, /* 338 */
38879, -90, /* 339 */
38969, 52, /* 340 */
390103, -110, /* 341 */
391-97, -115, /* 342 */
392-104, 6, /* 343 */
39313, 38, /* 344 */
394-127, -69, /* 345 */
395-96, -93, /* 346 */
396-114, -68, /* 347 */
39767, 95, /* 348 */
398-110, 92, /* 349 */
39955, 38, /* 350 */
400-93, 95, /* 351 */
40129, 118, /* 352 */
402-8, 114, /* 353 */
4032, 98, /* 354 */
404-40, 9, /* 355 */
405-107, 80, /* 356 */
406-63, -66, /* 357 */
4076, -35, /* 358 */
408-93, 45, /* 359 */
409-98, -78, /* 360 */
4100, -79, /* 361 */
411-55, 12, /* 362 */
412-100, -124, /* 363 */
4130, -87, /* 364 */
414-32, 9, /* 365 */
415-59, -19, /* 366 */
416116, -24, /* 367 */
417-11, 85, /* 368 */
418-66, -79, /* 369 */
41984, 46, /* 370 */
420-51, 107, /* 371 */
421-120, -117, /* 372 */
422124, 97, /* 373 */
423-6, -20, /* 374 */
42426, -12, /* 375 */
4254, 30, /* 376 */
426122, 62, /* 377 */
427-65, 126, /* 378 */
42843, 109, /* 379 */
429-91, -124, /* 380 */
430-25, -31, /* 381 */
431-92, 40, /* 382 */
432-40, -121, /* 383 */
43312, 28, /* 384 */
434-118, 6, /* 385 */
435-69, 31, /* 386 */
436-26, -93, /* 387 */
437-98, -13, /* 388 */
438-15, -24, /* 389 */
439-115, 104, /* 390 */
440127, -26, /* 391 */
44149, -80, /* 392 */
44229, 81, /* 393 */
44329, -20, /* 394 */
44484, -30, /* 395 */
445122, 55, /* 396 */
446-17, 26, /* 397 */
44788, -108, /* 398 */
448-27, -95, /* 399 */
449-21, -34, /* 400 */
450100, 15, /* 401 */
451-40, 61, /* 402 */
45278, 123, /* 403 */
453126, -4, /* 404 */
45471, -128, /* 405 */
45590, 72, /* 406 */
45641, -40, /* 407 */
457-59, -53, /* 408 */
458-67, 84, /* 409 */
459-19, -103, /* 410 */
46024, -33, /* 411 */
461-21, 35, /* 412 */
46268, -120, /* 413 */
463-122, -47, /* 414 */
46449, 118, /* 415 */
46564, 42, /* 416 */
466116, -106, /* 417 */
467-29, -63, /* 418 */
468-114, -92, /* 419 */
469-32, -58, /* 420 */
47040, 70, /* 421 */
47151, 53, /* 422 */
472-105, 26, /* 423 */
473114, -118, /* 424 */
4748, 88, /* 425 */
475105, -70, /* 426 */
476-49, -2, /* 427 */
47757, -121, /* 428 */
478-30, 37, /* 429 */
479102, -26, /* 430 */
480-111, 68, /* 431 */
481-61, -30, /* 432 */
48231, 100, /* 433 */
48346, -24, /* 434 */
48460, -32, /* 435 */
485110, -106, /* 436 */
48629, 123, /* 437 */
48761, 107, /* 438 */
48834, -10, /* 439 */
489-85, 15, /* 440 */
490-59, -2, /* 441 */
49179, 126, /* 442 */
492-25, -122, /* 443 */
49340, -62, /* 444 */
494-55, -45, /* 445 */
495118, -97, /* 446 */
49619, 62, /* 447 */
497119, 33, /* 448 */
4983, -78, /* 449 */
49993, -10, /* 450 */
500-71, -60, /* 451 */
501-66, -128, /* 452 */
502102, -99, /* 453 */
50353, 15, /* 454 */
504121, 100, /* 455 */
505-11, 102, /* 456 */
50661, 51, /* 457 */
50743, -69, /* 458 */
508-121, 7, /* 459 */
509-39, 78, /* 460 */
510-107, 51, /* 461 */
511-113, -128, /* 462 */
51266, -56, /* 463 */
51332, -85, /* 464 */
5147, -76, /* 465 */
515125, -104, /* 466 */
516-51, -119, /* 467 */
517-82, -28, /* 468 */
51817, -69, /* 469 */
519-9, -100, /* 470 */
520-28, -18, /* 471 */
521-121, -56, /* 472 */
522-41, 90, /* 473 */
523121, -120, /* 474 */
52419, 123, /* 475 */
52569, 116, /* 476 */
52632, 123, /* 477 */
52759, 81, /* 478 */
528-90, -117, /* 479 */
529-22, -54, /* 480 */
530-111, 56, /* 481 */
53198, -102, /* 482 */
53284, 111, /* 483 */
533-48, -11, /* 484 */
534101, 124, /* 485 */
53564, -23, /* 486 */
536-89, 79, /* 487 */
53755, -116, /* 488 */
53887, 29, /* 489 */
53972, -25, /* 490 */
540127, 26, /* 491 */
54122, -69, /* 492 */
542-36, 84, /* 493 */
543-33, -111, /* 494 */
544124, -69, /* 495 */
54599, -4, /* 496 */
546-81, 115, /* 497 */
547-66, -111, /* 498 */
548-65, -15, /* 499 */
549-84, -75, /* 500 */
550-43, 78, /* 501 */
551-25, 1, /* 502 */
55231, 68, /* 503 */
553101, -72, /* 504 */
55445, 76, /* 505 */
555-95, -119, /* 506 */
556-7, 59, /* 507 */
557119, 116, /* 508 */
558-1, -43, /* 509 */
559-27, -45, /* 510 */
560124, 15, /* 511 */
56168, 58, /* 512 */
562123, -51, /* 513 */
563-67, 81, /* 514 */
564-9, 79, /* 515 */
565-119, -4, /* 516 */
56660, -18, /* 517 */
56789, -93, /* 518 */
5684, 19, /* 519 */
569-92, -77, /* 520 */
57070, -22, /* 521 */
571-14, -76, /* 522 */
572-86, 47, /* 523 */
573-63, 84, /* 524 */
57458, -56, /* 525 */
575-113, -33, /* 526 */
576-99, 14, /* 527 */
57780, -42, /* 528 */
578-10, 103, /* 529 */
579104, -68, /* 530 */
580101, -25, /* 531 */
581-76, -45, /* 532 */
58295, -27, /* 533 */
583-68, -57, /* 534 */
58447, 36, /* 535 */
585117, -54, /* 536 */
586-19, 119, /* 537 */
587-84, -25, /* 538 */
588-27, -75, /* 539 */
58943, -122, /* 540 */
590-4, 67, /* 541 */
591-31, -16, /* 542 */
59216, -104, /* 543 */
593-3, -128, /* 544 */
594-89, -74, /* 545 */
59538, 73, /* 546 */
59658, 81, /* 547 */
597-128, -91, /* 548 */
598104, 34, /* 549 */
59941, 21, /* 550 */
600-116, -76, /* 551 */
601-13, 52, /* 552 */
602-86, 127, /* 553 */
603-8, 82, /* 554 */
60482, 68, /* 555 */
60589, -29, /* 556 */
606118, -127, /* 557 */
60780, -19, /* 558 */
608-61, -45, /* 559 */
609-76, 73, /* 560 */
610110, -17, /* 561 */
611-28, 53, /* 562 */
612-113, 115, /* 563 */
613-117, 53, /* 564 */
614-127, -93, /* 565 */
61581, -46, /* 566 */
616106, 73, /* 567 */
61761, -55, /* 568 */
618-76, 76, /* 569 */
619-69, -74, /* 570 */
620102, -30, /* 571 */
62173, 110, /* 572 */
622-82, 123, /* 573 */
6231, 64, /* 574 */
624-113, 30, /* 575 */
625-94, -114, /* 576 */
626-123, -42, /* 577 */
62794, -67, /* 578 */
62829, 8, /* 579 */
629-42, 45, /* 580 */
63047, -72, /* 581 */
631-73, 41, /* 582 */
632-69, -98, /* 583 */
633-15, 90, /* 584 */
634-43, -86, /* 585 */
635-60, 29, /* 586 */
63665, 34, /* 587 */
637-22, 68, /* 588 */
638115, 11, /* 589 */
63986, -24, /* 590 */
640101, -74, /* 591 */
641-63, 32, /* 592 */
6425, 84, /* 593 */
643-42, 67, /* 594 */
64439, 67, /* 595 */
645-27, 51, /* 596 */
646-103, 81, /* 597 */
647-10, -80, /* 598 */
64814, -78, /* 599 */
649-51, -74, /* 600 */
65033, 68, /* 601 */
6516, 105, /* 602 */
652-49, -69, /* 603 */
653-10, -40, /* 604 */
654-95, 50, /* 605 */
65566, -124, /* 606 */
656-94, 14, /* 607 */
657-18, 27, /* 608 */
65891, -13, /* 609 */
659-9, -121, /* 610 */
660-55, 125, /* 611 */
661-112, -118, /* 612 */
66240, -116, /* 613 */
66333, -99, /* 614 */
66459, -49, /* 615 */
665116, 53, /* 616 */
666-34, -97, /* 617 */
667-111, 3, /* 618 */
66894, -104, /* 619 */
669-53, 49, /* 620 */
67013, -58, /* 621 */
67172, -10, /* 622 */
672-111, 36, /* 623 */
67334, -119, /* 624 */
674-118, 101, /* 625 */
675-122, 119, /* 626 */
67656, -79, /* 627 */
67798, -89, /* 628 */
678111, -73, /* 629 */
679108, 14, /* 630 */
68065, 99, /* 631 */
681-32, -47, /* 632 */
68285, -13, /* 633 */
68347, -13, /* 634 */
68414, 22, /* 635 */
685-106, 54, /* 636 */
68614, 54, /* 637 */
68745, -63, /* 638 */
688-19, -99, /* 639 */
689-87, -101, /* 640 */
69049, -99, /* 641 */
6914, -39, /* 642 */
69276, 58, /* 643 */
69371, -31, /* 644 */
694109, 52, /* 645 */
69557, -37, /* 646 */
696-104, -125, /* 647 */
697-13, -86, /* 648 */
698121, 93, /* 649 */
699120, 14, /* 650 */
70037, -120, /* 651 */
701-105, -86, /* 652 */
70269, -85, /* 653 */
703-25, -104, /* 654 */
704-57, 65, /* 655 */
705-71, -66, /* 656 */
706-91, 67, /* 657 */
707-105, 9, /* 658 */
70851, 114, /* 659 */
70946, 125, /* 660 */
710-11, -117, /* 661 */
7118, 123, /* 662 */
712-52, -47, /* 663 */
713-25, -12, /* 664 */
714-89, 55, /* 665 */
71574, 110, /* 666 */
716-78, 12, /* 667 */
717-2, -98, /* 668 */
718-51, 6, /* 669 */
719-91, 16, /* 670 */
720118, -80, /* 671 */
72160, -49, /* 672 */
7224, 117, /* 673 */
723101, 112, /* 674 */
72452, -73, /* 675 */
725-27, 78, /* 676 */
72636, -60, /* 677 */
727-51, 79, /* 678 */
728-107, -23, /* 679 */
72998, 31, /* 680 */
730-104, 12, /* 681 */
731115, 3, /* 682 */
73230, -123, /* 683 */
73366, -19, /* 684 */
73430, -123, /* 685 */
73520, -122, /* 686 */
736-57, -7, /* 687 */
737-103, 6, /* 688 */
73856, 116, /* 689 */
73987, 70, /* 690 */
74082, -87, /* 691 */
74111, 31, /* 692 */
742-35, 63, /* 693 */
7430, -89, /* 694 */
744-44, 21, /* 695 */
745-69, 110, /* 696 */
74626, -8, /* 697 */
747-116, 72, /* 698 */
74860, 31, /* 699 */
749-4, -117, /* 700 */
750124, -108, /* 701 */
751122, -8, /* 702 */
752-92, -19, /* 703 */
753109, 125, /* 704 */
754-124, 11, /* 705 */
75558, 113, /* 706 */
75659, -101, /* 707 */
757-111, -85, /* 708 */
75876, -34, /* 709 */
759-12, 47, /* 710 */
760-75, 122, /* 711 */
76160, -115, /* 712 */
76219, -105, /* 713 */
76374, -108, /* 714 */
764-107, 45, /* 715 */
765-32, 106, /* 716 */
766-77, -110, /* 717 */
76737, 23, /* 718 */
768-97, -70, /* 719 */
7691, 121, /* 720 */
770-101, -26, /* 721 */
771-121, 3, /* 722 */
772-116, 2, /* 723 */
773-82, 23, /* 724 */
7742, -34, /* 725 */
77537, -100, /* 726 */
7762, 27, /* 727 */
77725, 7, /* 728 */
778-42, 1, /* 729 */
77957, -92, /* 730 */
780-98, -46, /* 731 */
7815, 2, /* 732 */
782126, 62, /* 733 */
783-48, 57, /* 734 */
7841, 54, /* 735 */
78581, -21, /* 736 */
786-52, 20, /* 737 */
78753, -63, /* 738 */
78894, 28, /* 739 */
78940, 31, /* 740 */
79092, 103, /* 741 */
791109, 27, /* 742 */
792112, 126, /* 743 */
79342, 107, /* 744 */
79425, -127, /* 745 */
795-25, 110, /* 746 */
796-94, -67, /* 747 */
797-51, 123, /* 748 */
798-11, 52, /* 749 */
7990, 58, /* 750 */
80067, 101, /* 751 */
801113, -16, /* 752 */
80238, 123, /* 753 */
803114, 72, /* 754 */
804-10, 13, /* 755 */
805-59, -78, /* 756 */
806-111, 7, /* 757 */
807-81, -103, /* 758 */
808-39, -15, /* 759 */
809106, -49, /* 760 */
810-125, 73, /* 761 */
811124, 75, /* 762 */
812-84, 14, /* 763 */
813-25, 51, /* 764 */
814-26, -114, /* 765 */
81573, -52, /* 766 */
8161, -116, /* 767 */
81715, 104, /* 768 */
81851, -55, /* 769 */
819-55, 92, /* 770 */
820124, -29, /* 771 */
821-71, -15, /* 772 */
8220, -21, /* 773 */
823-18, 122, /* 774 */
8244, 26, /* 775 */
825-116, -78, /* 776 */
826118, 19, /* 777 */
827-112, 119, /* 778 */
8282, 45, /* 779 */
82952, -123, /* 780 */
83031, -24, /* 781 */
831-70, 29, /* 782 */
83233, -61, /* 783 */
833-89, 87, /* 784 */
834-49, -54, /* 785 */
83538, -71, /* 786 */
83685, -71, /* 787 */
837-124, -56, /* 788 */
838-25, 84, /* 789 */
83976, 13, /* 790 */
840-88, 1, /* 791 */
841-49, 26, /* 792 */
84233, 41, /* 793 */
84323, 22, /* 794 */
844-115, 108, /* 795 */
84594, -1, /* 796 */
84658, 86, /* 797 */
847-124, 107, /* 798 */
84862, 27, /* 799 */
849-54, 91, /* 800 */
85065, -76, /* 801 */
851-102, -6, /* 802 */
852-70, -31, /* 803 */
853-4, -20, /* 804 */
85495, -1, /* 805 */
85520, -106, /* 806 */
856-21, 21, /* 807 */
85780, -123, /* 808 */
85849, -127, /* 809 */
859-16, 13, /* 810 */
860-8, -100, /* 811 */
86197, 50, /* 812 */
86237, 64, /* 813 */
863-91, -65, /* 814 */
864-74, -65, /* 815 */
865-96, 118, /* 816 */
8669, -39, /* 817 */
86786, -7, /* 818 */
868-67, 92, /* 819 */
869-123, -100, /* 820 */
870-91, -28, /* 821 */
871-7, 90, /* 822 */
87296, 61, /* 823 */
87392, 67, /* 824 */
874126, -68, /* 825 */
87565, 65, /* 826 */
87698, -69, /* 827 */
877-34, -11, /* 828 */
87855, -119, /* 829 */
879-55, 6, /* 830 */
88074, -26, /* 831 */
881-76, 102, /* 832 */
882-18, -85, /* 833 */
88332, -122, /* 834 */
88415, 23, /* 835 */
885-65, 17, /* 836 */
88640, 21, /* 837 */
887-95, -41, /* 838 */
8883, 15, /* 839 */
889-58, -27, /* 840 */
89022, 114, /* 841 */
891-60, 96, /* 842 */
89272, 125, /* 843 */
893-90, -28, /* 844 */
89469, 107, /* 845 */
8955, -11, /* 846 */
89622, 41, /* 847 */
8974, 5, /* 848 */
898-93, 123, /* 849 */
899-48, 102, /* 850 */
90092, 33, /* 851 */
901-18, -40, /* 852 */
902-113, -50, /* 853 */
90398, 102, /* 854 */
904-63, -101, /* 855 */
905-55, -53, /* 856 */
906-71, 89, /* 857 */
90723, 58, /* 858 */
90816, 36, /* 859 */
90993, -60, /* 860 */
910-72, 58, /* 861 */
911-51, 100, /* 862 */
91222, 2, /* 863 */
913102, 13, /* 864 */
9146, 97, /* 865 */
91543, 91, /* 866 */
91645, 25, /* 867 */
917115, -5, /* 868 */
91831, -125, /* 869 */
919-11, -57, /* 870 */
92037, 18, /* 871 */
921122, 83, /* 872 */
922-21, 52, /* 873 */
923121, -41, /* 874 */
9244, -26, /* 875 */
92510, 9, /* 876 */
926-31, -80, /* 877 */
92789, -17, /* 878 */
92811, -24, /* 879 */
92980, -76, /* 880 */
930-4, -53, /* 881 */
931-99, -63, /* 882 */
932-92, -48, /* 883 */
93372, 12, /* 884 */
934-60, 84, /* 885 */
93514, -52, /* 886 */
936-94, 96, /* 887 */
937-20, 65, /* 888 */
938-114, -45, /* 889 */
93975, -62, /* 890 */
94015, 59, /* 891 */
94169, -17, /* 892 */
942126, -49, /* 893 */
943-106, 103, /* 894 */
94456, 49, /* 895 */
945127, 65, /* 896 */
946-101, -60, /* 897 */
947-12, 28, /* 898 */
948-94, -84, /* 899 */
94952, -90, /* 900 */
950-50, 47, /* 901 */
951-112, -73, /* 902 */
952-84, 67, /* 903 */
953-79, -111, /* 904 */
95443, -67, /* 905 */
955-29, -38, /* 906 */
956-111, 27, /* 907 */
95746, -23, /* 908 */
95891, 29, /* 909 */
959-104, -18, /* 910 */
960-28, -22, /* 911 */
961-32, 55, /* 912 */
9623, 96, /* 913 */
963100, -61, /* 914 */
96436, -121, /* 915 */
965-76, 36, /* 916 */
966-111, 83, /* 917 */
96776, 71, /* 918 */
968-20, -7, /* 919 */
969100, 87, /* 920 */
970125, -66, /* 921 */
971-26, -34, /* 922 */
972-41, 118, /* 923 */
973-47, -8, /* 924 */
974-35, 8, /* 925 */
97529, -115, /* 926 */
97624, 31, /* 927 */
97747, 42, /* 928 */
978121, 66, /* 929 */
979-57, 44, /* 930 */
980-84, -45, /* 931 */
981107, 123, /* 932 */
982-62, 3, /* 933 */
983-32, 81, /* 934 */
98437, -27, /* 935 */
985-47, -5, /* 936 */
986-79, 57, /* 937 */
987-69, 20, /* 938 */
988-72, -72, /* 939 */
989-108, -71, /* 940 */
990-97, -38, /* 941 */
9919, 36, /* 942 */
99248, 36, /* 943 */
99356, -115, /* 944 */
994112, 126, /* 945 */
995-126, -29, /* 946 */
99620, -52, /* 947 */
99714, -65, /* 948 */
99848, -116, /* 949 */
99966, 13, /* 950 */
100083, 35, /* 951 */
10017, -74, /* 952 */
1002-41, -71, /* 953 */
1003-111, -111, /* 954 */
1004-61, 12, /* 955 */
1005126, -39, /* 956 */
1006-30, -113, /* 957 */
100773, 37, /* 958 */
100894, 121, /* 959 */
1009-107, -2, /* 960 */
1010-5, -23, /* 961 */
101188, 122, /* 962 */
1012-9, 12, /* 963 */
101325, 45, /* 964 */
1014-75, 2, /* 965 */
10154, 84, /* 966 */
1016-88, 81, /* 967 */
101762, -72, /* 968 */
1018-3, -105, /* 969 */
101938, -13, /* 970 */
1020-118, 68, /* 971 */
1021-43, -61, /* 972 */
1022-18, 113, /* 973 */
1023-103, -10, /* 974 */
102446, -3, /* 975 */
1025-122, 58, /* 976 */
1026-46, 105, /* 977 */
1027-115, 13, /* 978 */
1028-34, -14, /* 979 */
1029-30, 65, /* 980 */
1030-43, 49, /* 981 */
1031100, 26, /* 982 */
1032-68, -97, /* 983 */
1033-108, -28, /* 984 */
1034-51, 45, /* 985 */
1035-82, 78, /* 986 */
103655, -104, /* 987 */
103774, -58, /* 988 */
1038-44, -119, /* 989 */
103972, -12, /* 990 */
104070, 8, /* 991 */
1041-102, -60, /* 992 */
1042-44, -102, /* 993 */
1043-62, 12, /* 994 */
1044-29, 111, /* 995 */
1045101, -92, /* 996 */
104668, 10, /* 997 */
1047-66, -76, /* 998 */
1048-12, 19, /* 999 */
1049-59, -64, /* 1000 */
1050-20, 38, /* 1001 */
105150, -127, /* 1002 */
105281, -126, /* 1003 */
105383, 59, /* 1004 */
1054-25, -103, /* 1005 */
105538, 70, /* 1006 */
1056-89, 62, /* 1007 */
1057-41, -90, /* 1008 */
1058-124, -125, /* 1009 */
105968, -115, /* 1010 */
1060-11, -30, /* 1011 */
1061-117, -16, /* 1012 */
1062-103, -119, /* 1013 */
1063116, 85, /* 1014 */
106427, 72, /* 1015 */
1065-65, 91, /* 1016 */
1066109, 54, /* 1017 */
1067-18, 24, /* 1018 */
1068-116, 64, /* 1019 */
1069103, -76, /* 1020 */
1070122, -104, /* 1021 */
107140, -72, /* 1022 */
107258, -88, /* 1023 */
1073};
1074
1075#pragma DATA_SECTION (rtest,".test")
1076
1077DATA rtest[2*NX] ={
10782573, -1395, /* 0 */
1079-1139, 491, /* 1 */
1080617, -3083, /* 2 */
1081649, -2817, /* 3 */
10823466, 188, /* 4 */
1083-30, -6713, /* 5 */
10841129, -482, /* 6 */
10851281, -1098, /* 7 */
1086-167, -3486, /* 8 */
1087-2192, 452, /* 9 */
10881534, -2693, /* 10 */
10892740, 431, /* 11 */
1090-801, 2841, /* 12 */
10912096, -1606, /* 13 */
1092866, 685, /* 14 */
10934056, -566, /* 15 */
10941289, 863, /* 16 */
1095-124, -255, /* 17 */
10961090, 2036, /* 18 */
10972127, 1962, /* 19 */
1098-1302, -370, /* 20 */
10992084, 77, /* 21 */
1100172, 4473, /* 22 */
1101-3408, 648, /* 23 */
1102-4178, -3067, /* 24 */
1103-2660, -1943, /* 25 */
1104-331, 1012, /* 26 */
1105-1628, -2142, /* 27 */
11063038, -4191, /* 28 */
1107-1747, 2544, /* 29 */
11085245, 3445, /* 30 */
11094814, -2888, /* 31 */
1110-672, -4080, /* 32 */
1111285, 3106, /* 33 */
1112-2250, 3306, /* 34 */
1113985, -564, /* 35 */
11143648, 1091, /* 36 */
1115-3332, -2837, /* 37 */
11161202, 893, /* 38 */
11172148, -4359, /* 39 */
1118-1708, 2534, /* 40 */
1119190, 2059, /* 41 */
1120-2575, -3307, /* 42 */
1121460, 1904, /* 43 */
11224071, 340, /* 44 */
1123-525, -626, /* 45 */
1124-2951, 365, /* 46 */
112579, 1956, /* 47 */
1126-752, -223, /* 48 */
1127-1842, 2627, /* 49 */
11281801, 2449, /* 50 */
1129-4466, -3506, /* 51 */
11304474, 393, /* 52 */
1131-1126, 681, /* 53 */
11321920, 2335, /* 54 */
1133469, -619, /* 55 */
11343010, 392, /* 56 */
1135811, -2132, /* 57 */
1136-426, 3316, /* 58 */
1137258, -109, /* 59 */
1138-503, -2594, /* 60 */
11394950, -4026, /* 61 */
1140-402, -3794, /* 62 */
1141-451, 1241, /* 63 */
1142283, 3475, /* 64 */
11433120, 1920, /* 65 */
11441243, -3060, /* 66 */
114522, -939, /* 67 */
1146-98, 2673, /* 68 */
1147-3646, 202, /* 69 */
11481913, -1644, /* 70 */
1149-2568, 100, /* 71 */
1150-2570, -2205, /* 72 */
11513363, 1232, /* 73 */
1152-3749, -183, /* 74 */
1153-1066, -5262, /* 75 */
11542410, -950, /* 76 */
1155-892, -519, /* 77 */
1156-568, 738, /* 78 */
11573691, -653, /* 79 */
1158-664, 355, /* 80 */
11591743, 2108, /* 81 */
1160-426, -238, /* 82 */
11611662, -2951, /* 83 */
1162-2604, -591, /* 84 */
1163-3297, -6550, /* 85 */
11641150, 1864, /* 86 */
1165884, -379, /* 87 */
1166935, 1435, /* 88 */
1167-1636, 1668, /* 89 */
11684476, 2, /* 90 */
1169-557, -1785, /* 91 */
1170-408, -2495, /* 92 */
1171390, 630, /* 93 */
11725025, 341, /* 94 */
11731020, 1119, /* 95 */
11741577, -1497, /* 96 */
11753161, 1117, /* 97 */
1176-524, 2127, /* 98 */
11776725, -950, /* 99 */
1178-1755, -306, /* 100 */
11792989, -1169, /* 101 */
11801838, 1444, /* 102 */
1181-3042, 2265, /* 103 */
11822536, -1757, /* 104 */
11831033, 1696, /* 105 */
11841283, -2322, /* 106 */
1185-7059, 382, /* 107 */
11866877, 2090, /* 108 */
11872078, 988, /* 109 */
11881582, 154, /* 110 */
1189-1359, 1024, /* 111 */
11904793, -1501, /* 112 */
1191-2681, -3213, /* 113 */
1192-1530, 5316, /* 114 */
11932654, -2094, /* 115 */
1194-827, 138, /* 116 */
11951369, 1031, /* 117 */
1196-3019, 4418, /* 118 */
1197-666, 2797, /* 119 */
11982421, -1205, /* 120 */
1199-1707, 721, /* 121 */
1200-3417, 2011, /* 122 */
1201-108, 2423, /* 123 */
12023161, 1907, /* 124 */
1203286, 1981, /* 125 */
12041278, 1098, /* 126 */
1205-553, -14, /* 127 */
1206877, 2914, /* 128 */
1207-3110, 3351, /* 129 */
1208148, 617, /* 130 */
120991, 1274, /* 131 */
1210-2824, -1415, /* 132 */
1211-1361, 2218, /* 133 */
12122613, -1088, /* 134 */
1213-1474, 707, /* 135 */
12142527, -1172, /* 136 */
1215-689, -3285, /* 137 */
12162774, -2430, /* 138 */
1217-53, -4778, /* 139 */
12185439, -481, /* 140 */
1219-2232, 4004, /* 141 */
1220-1599, -1765, /* 142 */
1221-1075, 1055, /* 143 */
1222-3323, 612, /* 144 */
1223-1791, -1159, /* 145 */
1224-3871, 1424, /* 146 */
12251416, -5205, /* 147 */
12265111, 3322, /* 148 */
12271578, -974, /* 149 */
12282567, 1160, /* 150 */
12291435, -8, /* 151 */
12302100, 560, /* 152 */
12311179, 1335, /* 153 */
1232-3063, -744, /* 154 */
12332729, 2112, /* 155 */
1234-656, 1996, /* 156 */
1235-3904, 1401, /* 157 */
1236-2332, 558, /* 158 */
1237-624, 3548, /* 159 */
1238-4614, 3183, /* 160 */
1239168, 3898, /* 161 */
12401556, 1233, /* 162 */
12414197, -265, /* 163 */
1242-3679, 616, /* 164 */
1243-1394, 10, /* 165 */
12441379, 2953, /* 166 */
1245539, -281, /* 167 */
12464719, -2374, /* 168 */
1247998, 2945, /* 169 */
1248-2454, 4469, /* 170 */
1249154, 2918, /* 171 */
12503082, -3129, /* 172 */
1251-5518, 2792, /* 173 */
12521781, -995, /* 174 */
1253-2341, 2757, /* 175 */
1254-3257, 2554, /* 176 */
1255-2618, -884, /* 177 */
12561924, 1529, /* 178 */
12572605, 1630, /* 179 */
12581346, 3890, /* 180 */
12591854, -1531, /* 181 */
12602443, -1479, /* 182 */
1261-2610, -930, /* 183 */
1262-582, 1706, /* 184 */
1263-873, 1773, /* 185 */
12642686, 392, /* 186 */
1265-1896, 2971, /* 187 */
12665789, -4079, /* 188 */
1267-632, -341, /* 189 */
1268464, -4750, /* 190 */
1269-386, 4699, /* 191 */
12704346, -362, /* 192 */
1271-2104, -1281, /* 193 */
1272-1784, -381, /* 194 */
1273674, 1694, /* 195 */
1274-2136, -133, /* 196 */
1275249, -3517, /* 197 */
1276-928, 883, /* 198 */
12772821, -2879, /* 199 */
12781932, 1765, /* 200 */
1279-1017, -1549, /* 201 */
12801711, 928, /* 202 */
12811113, -1628, /* 203 */
12821089, -793, /* 204 */
12832363, -5533, /* 205 */
1284-1892, -2289, /* 206 */
1285987, -2414, /* 207 */
12862407, 2874, /* 208 */
1287-2984, 1548, /* 209 */
1288-412, -1876, /* 210 */
12891753, 5072, /* 211 */
12904593, -4116, /* 212 */
1291-1085, 944, /* 213 */
1292-3035, 1178, /* 214 */
12932871, -1337, /* 215 */
1294-2374, 4136, /* 216 */
1295423, 862, /* 217 */
12964332, 1692, /* 218 */
129746, 1176, /* 219 */
1298597, -797, /* 220 */
12991559, 2046, /* 221 */
13003589, -771, /* 222 */
13011386, 1181, /* 223 */
13024235, -1765, /* 224 */
13033422, 1777, /* 225 */
1304732, -4763, /* 226 */
1305-595, -4081, /* 227 */
1306-1318, -3590, /* 228 */
1307-424, 3833, /* 229 */
13081274, -4884, /* 230 */
1309644, -657, /* 231 */
13103171, -2591, /* 232 */
13113551, -87, /* 233 */
1312-1580, -437, /* 234 */
1313907, 3149, /* 235 */
1314-1367, -206, /* 236 */
1315-383, -4192, /* 237 */
1316-2992, 947, /* 238 */
1317-375, 1578, /* 239 */
1318-2663, 436, /* 240 */
13191570, -773, /* 241 */
1320-226, -1231, /* 242 */
1321-1360, -2987, /* 243 */
13221024, -1342, /* 244 */
1323-4528, 2941, /* 245 */
13241626, 195, /* 246 */
1325-2700, -1005, /* 247 */
13263119, -646, /* 248 */
1327-3679, 3013, /* 249 */
1328-108, 3839, /* 250 */
1329-607, -48, /* 251 */
1330-1344, 668, /* 252 */
1331-642, -3156, /* 253 */
1332-2284, -2147, /* 254 */
1333-3167, 1094, /* 255 */
1334-1831, -684, /* 256 */
1335879, -123, /* 257 */
1336-994, 1462, /* 258 */
1337-3812, 378, /* 259 */
1338-992, 2998, /* 260 */
1339359, 96, /* 261 */
13402375, -188, /* 262 */
1341458, 300, /* 263 */
1342-1423, -2441, /* 264 */
13431272, 1327, /* 265 */
134421, 709, /* 266 */
1345183, -2227, /* 267 */
1346-1703, 2069, /* 268 */
1347956, 1090, /* 269 */
13483298, -654, /* 270 */
1349745, -689, /* 271 */
1350-3113, -2090, /* 272 */
1351-1719, -4337, /* 273 */
13522667, 341, /* 274 */
13531871, -5702, /* 275 */
1354-2405, 1975, /* 276 */
13554603, -49, /* 277 */
1356-506, -4037, /* 278 */
1357-5, -4727, /* 279 */
1358-186, -1609, /* 280 */
1359-356, -553, /* 281 */
13601546, 3197, /* 282 */
13615094, -825, /* 283 */
1362-7, 372, /* 284 */
1363964, -2469, /* 285 */
1364-2756, 1645, /* 286 */
13651505, -414, /* 287 */
1366-1854, -1940, /* 288 */
13671521, -3067, /* 289 */
1368-345, -229, /* 290 */
13691360, -2140, /* 291 */
1370958, -1812, /* 292 */
137111, -4199, /* 293 */
13721820, -1900, /* 294 */
13731971, 2937, /* 295 */
13742024, -1929, /* 296 */
1375-140, -4653, /* 297 */
13761621, -400, /* 298 */
13772547, -1396, /* 299 */
1378105, 697, /* 300 */
1379-581, 245, /* 301 */
13802998, 2354, /* 302 */
13814179, 3984, /* 303 */
1382-2832, -507, /* 304 */
1383-3712, -1305, /* 305 */
1384825, 3821, /* 306 */
13852459, 224, /* 307 */
13861802, -928, /* 308 */
13871137, 160, /* 309 */
13881463, -673, /* 310 */
1389716, 2047, /* 311 */
13903082, -2186, /* 312 */
1391-1525, -2737, /* 313 */
1392822, 4221, /* 314 */
1393258, 5388, /* 315 */
139497, 2946, /* 316 */
1395-1602, -88, /* 317 */
1396870, 69, /* 318 */
13974382, -7592, /* 319 */
1398-989, 2609, /* 320 */
1399-806, -734, /* 321 */
1400-5816, 1912, /* 322 */
14011315, 706, /* 323 */
14022641, 6327, /* 324 */
1403-1258, 2588, /* 325 */
14042815, -1015, /* 326 */
1405-695, -9499, /* 327 */
1406-1056, -253, /* 328 */
1407892, 1106, /* 329 */
1408-1478, -137, /* 330 */
1409-947, 1170, /* 331 */
1410-729, -230, /* 332 */
14111108, -274, /* 333 */
14122408, -626, /* 334 */
1413645, -1189, /* 335 */
14142904, -3077, /* 336 */
14154029, 1943, /* 337 */
1416-53, 415, /* 338 */
14171806, 3090, /* 339 */
1418-2026, 75, /* 340 */
1419217, -932, /* 341 */
1420-2060, -12, /* 342 */
14213726, 2741, /* 343 */
14221994, -1682, /* 344 */
14232984, 3920, /* 345 */
14241801, 785, /* 346 */
1425-3356, 1133, /* 347 */
1426-1309, -2688, /* 348 */
14273225, 5390, /* 349 */
1428-5995, 403, /* 350 */
142915, -3459, /* 351 */
1430-3833, 1938, /* 352 */
1431-6464, -143, /* 353 */
1432-456, 3997, /* 354 */
1433-1828, -1457, /* 355 */
1434-51, 1004, /* 356 */
14354273, 1971, /* 357 */
14362455, -1369, /* 358 */
1437504, 2147, /* 359 */
14383990, -2571, /* 360 */
1439-114, -4603, /* 361 */
1440-1168, 2404, /* 362 */
14411667, -2087, /* 363 */
1442-679, -1938, /* 364 */
1443-1529, 1287, /* 365 */
1444-2135, -1451, /* 366 */
1445270, 2190, /* 367 */
1446-1429, 2100, /* 368 */
1447918, 243, /* 369 */
1448-4550, -752, /* 370 */
14493544, -2159, /* 371 */
1450-1095, -5364, /* 372 */
14512642, 2694, /* 373 */
14522850, -1191, /* 374 */
1453-1977, 344, /* 375 */
1454144, -1185, /* 376 */
1455-985, -2626, /* 377 */
1456-21, 1851, /* 378 */
1457-4049, 1747, /* 379 */
1458-2237, 4583, /* 380 */
1459-2873, 492, /* 381 */
14604124, 951, /* 382 */
1461-961, -23, /* 383 */
14624229, -1827, /* 384 */
1463-2724, -3088, /* 385 */
1464-4693, -5944, /* 386 */
1465-389, 209, /* 387 */
14661565, 2248, /* 388 */
1467-305, -525, /* 389 */
14683316, 402, /* 390 */
14692046, 3804, /* 391 */
14703315, 1236, /* 392 */
14712718, 1186, /* 393 */
1472389, -4316, /* 394 */
1473-952, -3495, /* 395 */
1474-487, -2027, /* 396 */
14753041, -3098, /* 397 */
1476834, 288, /* 398 */
1477-2509, -7, /* 399 */
1478-781, 606, /* 400 */
14792465, 3661, /* 401 */
1480-4241, 1340, /* 402 */
1481-504, 3810, /* 403 */
1482-25, -538, /* 404 */
14831288, 5257, /* 405 */
148485, 1119, /* 406 */
14854752, -486, /* 407 */
1486-2587, 17, /* 408 */
14872624, -830, /* 409 */
1488335, 1533, /* 410 */
1489784, 556, /* 411 */
14903913, -1699, /* 412 */
14911167, -3737, /* 413 */
14921576, -2539, /* 414 */
1493-410, 207, /* 415 */
1494-352, 1299, /* 416 */
1495-4092, 1399, /* 417 */
1496-68, -1505, /* 418 */
14971545, -1131, /* 419 */
1498-1565, -2411, /* 420 */
1499538, -2923, /* 421 */
1500-1900, -2211, /* 422 */
1501186, 997, /* 423 */
1502-1418, 5869, /* 424 */
1503-561, -2996, /* 425 */
1504-1180, 1346, /* 426 */
1505-1727, -2084, /* 427 */
1506-4340, -84, /* 428 */
15071201, -450, /* 429 */
1508-3374, -2478, /* 430 */
1509-2654, -563, /* 431 */
1510527, -434, /* 432 */
1511-4036, -653, /* 433 */
1512-1202, 888, /* 434 */
1513-2402, 456, /* 435 */
1514795, -309, /* 436 */
15154608, -5055, /* 437 */
15165291, -2619, /* 438 */
1517-3027, 555, /* 439 */
1518-377, -1082, /* 440 */
15194357, 1301, /* 441 */
15201123, -18, /* 442 */
1521-219, -4315, /* 443 */
1522-816, 618, /* 444 */
1523-2236, -934, /* 445 */
1524715, -14, /* 446 */
1525-2702, 1452, /* 447 */
1526-2069, -697, /* 448 */
1527-4861, 182, /* 449 */
1528-4894, -689, /* 450 */
1529-1092, -6, /* 451 */
15303251, 1729, /* 452 */
15311018, -74, /* 453 */
1532973, 1178, /* 454 */
15331082, -224, /* 455 */
15341366, 5774, /* 456 */
1535-1001, -1056, /* 457 */
1536-187, 4109, /* 458 */
15371975, 3028, /* 459 */
1538-1988, -4385, /* 460 */
1539441, 3764, /* 461 */
1540-948, -987, /* 462 */
15413842, -1407, /* 463 */
15422362, 4836, /* 464 */
1543-3138, 3278, /* 465 */
1544-2084, -12, /* 466 */
1545-2884, -89, /* 467 */
1546-1254, 1503, /* 468 */
15471504, -1757, /* 469 */
1548-643, -1035, /* 470 */
1549-482, -2593, /* 471 */
1550-6548, -2161, /* 472 */
1551560, -622, /* 473 */
1552287, 809, /* 474 */
15531474, 1772, /* 475 */
15542685, -4693, /* 476 */
1555-3514, 278, /* 477 */
15563725, 1952, /* 478 */
15572605, 222, /* 479 */
1558-1434, -2208, /* 480 */
1559445, 320, /* 481 */
1560296, 4078, /* 482 */
15611697, 740, /* 483 */
1562-3480, -751, /* 484 */
15632487, -1165, /* 485 */
15641133, 1159, /* 486 */
1565-3541, -2231, /* 487 */
15661572, 382, /* 488 */
15672412, -3200, /* 489 */
1568-2966, -2062, /* 490 */
1569-696, -1358, /* 491 */
15701466, 962, /* 492 */
1571-1856, -1670, /* 493 */
1572-1831, 2098, /* 494 */
15731527, -458, /* 495 */
1574-1649, -1464, /* 496 */
15752418, -1835, /* 497 */
1576-1418, -1479, /* 498 */
1577-196, 2011, /* 499 */
1578-945, 1038, /* 500 */
1579-3238, 50, /* 501 */
1580-2595, 2285, /* 502 */
15813476, 2503, /* 503 */
1582-826, -4248, /* 504 */
15834741, 80, /* 505 */
1584-1845, 2021, /* 506 */
1585269, 4121, /* 507 */
1586-949, -4455, /* 508 */
1587-334, 2339, /* 509 */
1588-2669, -3221, /* 510 */
15893409, 4930, /* 511 */
15904284, -3161, /* 512 */
1591-911, -383, /* 513 */
159270, -3347, /* 514 */
15931592, 2315, /* 515 */
1594-2016, -1193, /* 516 */
1595-8238, 242, /* 517 */
1596841, 2035, /* 518 */
15973754, 92, /* 519 */
1598-2130, 1212, /* 520 */
15991348, 7303, /* 521 */
1600-895, 629, /* 522 */
16011476, 1450, /* 523 */
16023372, -899, /* 524 */
1603-624, -4116, /* 525 */
1604715, 116, /* 526 */
1605558, 1411, /* 527 */
1606-1023, 3699, /* 528 */
1607-2107, -3473, /* 529 */
1608682, 2119, /* 530 */
16094372, -2652, /* 531 */
16101383, 3590, /* 532 */
1611-2322, 3861, /* 533 */
1612-3087, -1841, /* 534 */
16132449, 1179, /* 535 */
1614-1318, 1708, /* 536 */
1615-595, 1644, /* 537 */
1616-1294, 114, /* 538 */
1617-4004, -838, /* 539 */
1618405, 5460, /* 540 */
16191180, -3983, /* 541 */
16203340, 550, /* 542 */
16212197, -363, /* 543 */
16222767, 331, /* 544 */
1623-5085, -2127, /* 545 */
1624-2917, -2361, /* 546 */
16252066, -623, /* 547 */
1626-1246, -153, /* 548 */
1627-2366, 4841, /* 549 */
1628357, -2453, /* 550 */
16291843, -6562, /* 551 */
1630-3865, 1539, /* 552 */
1631-965, -876, /* 553 */
1632-1789, -2142, /* 554 */
16331688, -3301, /* 555 */
1634-445, 1410, /* 556 */
1635-1275, -803, /* 557 */
16362245, -976, /* 558 */
16372272, 676, /* 559 */
16381894, 3178, /* 560 */
1639-2570, -715, /* 561 */
1640-139, -897, /* 562 */
16412234, 439, /* 563 */
1642-2548, 1015, /* 564 */
16432919, 820, /* 565 */
16443477, 828, /* 566 */
16452784, 1321, /* 567 */
1646215, 611, /* 568 */
16471690, -262, /* 569 */
1648531, 1574, /* 570 */
16492530, -1019, /* 571 */
1650169, 469, /* 572 */
1651-3569, -2727, /* 573 */
1652207, -487, /* 574 */
1653-231, 2040, /* 575 */
1654816, 2807, /* 576 */
1655-932, -5781, /* 577 */
1656-518, 996, /* 578 */
16574823, -406, /* 579 */
1658-2803, 2069, /* 580 */
1659-3364, -1272, /* 581 */
16603455, 2126, /* 582 */
16612817, -780, /* 583 */
1662-107, -1490, /* 584 */
1663-51, -1996, /* 585 */
1664-1365, 302, /* 586 */
16652708, -2284, /* 587 */
16664750, -3670, /* 588 */
16672425, 2935, /* 589 */
1668-3566, 367, /* 590 */
1669-1045, 265, /* 591 */
16702275, -2854, /* 592 */
1671-3465, 1299, /* 593 */
1672354, 190, /* 594 */
16732705, -1833, /* 595 */
1674-468, -1520, /* 596 */
1675-1952, -1949, /* 597 */
1676-963, -2230, /* 598 */
16771738, -101, /* 599 */
1678-1932, 1612, /* 600 */
1679-1145, -5265, /* 601 */
16801180, 4159, /* 602 */
1681-2800, 1216, /* 603 */
1682-2003, -127, /* 604 */
16832516, 1214, /* 605 */
1684-2729, -758, /* 606 */
1685158, -763, /* 607 */
16861624, 5071, /* 608 */
1687710, -151, /* 609 */
16881389, 2747, /* 610 */
168940, -386, /* 611 */
1690-2883, 3889, /* 612 */
169115, 470, /* 613 */
1692-272, 350, /* 614 */
16934526, 845, /* 615 */
1694-1812, -3552, /* 616 */
1695647, -4022, /* 617 */
1696-1464, 2536, /* 618 */
1697-2410, 2278, /* 619 */
1698-1129, 413, /* 620 */
1699-176, 2219, /* 621 */
1700338, -679, /* 622 */
1701-2275, 995, /* 623 */
1702863, -2072, /* 624 */
1703-2773, -1976, /* 625 */
1704-1548, 153, /* 626 */
1705-1741, 2190, /* 627 */
1706-1624, 3808, /* 628 */
17071367, -3771, /* 629 */
17082202, 142, /* 630 */
1709-2864, -1620, /* 631 */
1710-2324, -1556, /* 632 */
1711-1040, 972, /* 633 */
1712360, 784, /* 634 */
1713-1210, 3022, /* 635 */
1714-3883, 2207, /* 636 */
17151046, 2938, /* 637 */
1716-1170, 3784, /* 638 */
1717-898, -1050, /* 639 */
17181823, -2564, /* 640 */
1719-2478, 1992, /* 641 */
1720-1008, -3649, /* 642 */
1721101, -3343, /* 643 */
1722901, -1714, /* 644 */
1723-3186, 1483, /* 645 */
1724448, -4102, /* 646 */
1725-718, -1628, /* 647 */
1726-984, 1645, /* 648 */
17271651, -298, /* 649 */
1728-954, 390, /* 650 */
1729-807, 1460, /* 651 */
17301405, -1685, /* 652 */
1731-1495, 752, /* 653 */
1732-3917, -4979, /* 654 */
17331857, -5174, /* 655 */
1734-361, 1788, /* 656 */
17351719, -1977, /* 657 */
1736-4334, -3636, /* 658 */
17371396, 4124, /* 659 */
1738-2224, 1479, /* 660 */
17392095, -760, /* 661 */
1740-3180, 640, /* 662 */
1741-856, -271, /* 663 */
1742-1075, 2533, /* 664 */
1743-2294, 1293, /* 665 */
1744-1072, 2750, /* 666 */
1745542, -3828, /* 667 */
1746-719, -165, /* 668 */
1747-1851, 3797, /* 669 */
1748-78, 2723, /* 670 */
1749-3977, 907, /* 671 */
1750-1372, -1574, /* 672 */
1751-1109, -927, /* 673 */
1752476, -2104, /* 674 */
1753-2485, 413, /* 675 */
17542298, 1581, /* 676 */
1755-1064, -2102, /* 677 */
1756-2342, -2294, /* 678 */
17573177, -1737, /* 679 */
1758-3600, 1131, /* 680 */
1759-2741, 3738, /* 681 */
1760-47, -151, /* 682 */
1761-3418, 1193, /* 683 */
1762105, 1397, /* 684 */
1763-5927, -865, /* 685 */
1764905, -815, /* 686 */
17651184, -3589, /* 687 */
1766187, 1532, /* 688 */
1767-1064, 1080, /* 689 */
1768884, -443, /* 690 */
1769-966, 313, /* 691 */
17701816, 2322, /* 692 */
17711544, 1088, /* 693 */
17721070, 643, /* 694 */
1773-1696, -5918, /* 695 */
1774914, -269, /* 696 */
17751165, 986, /* 697 */
1776-393, -1890, /* 698 */
1777-1105, 5255, /* 699 */
1778-2615, -1986, /* 700 */
1779-1444, 5472, /* 701 */
17801268, 2640, /* 702 */
17811253, -185, /* 703 */
17822676, -1439, /* 704 */
17832020, -9, /* 705 */
17842423, -676, /* 706 */
1785-532, -421, /* 707 */
17863561, -7, /* 708 */
17873620, -216, /* 709 */
1788-4141, -4459, /* 710 */
1789-1857, 3586, /* 711 */
17903864, 817, /* 712 */
1791-1829, 1206, /* 713 */
17922177, 2138, /* 714 */
17933263, 4970, /* 715 */
1794567, -46, /* 716 */
1795552, -434, /* 717 */
1796-228, 1685, /* 718 */
1797-1661, 2895, /* 719 */
17981290, -264, /* 720 */
17992281, 729, /* 721 */
18002762, -3740, /* 722 */
18012545, -1579, /* 723 */
1802239, 3681, /* 724 */
1803-587, -880, /* 725 */
18041797, -260, /* 726 */
1805-918, 2045, /* 727 */
18065577, 2799, /* 728 */
1807-885, 2950, /* 729 */
18084075, -2227, /* 730 */
1809249, -383, /* 731 */
1810-457, -3518, /* 732 */
1811-1791, 162, /* 733 */
1812359, -2739, /* 734 */
18133796, 787, /* 735 */
1814944, 1074, /* 736 */
18152603, 1570, /* 737 */
18161011, 1270, /* 738 */
18172050, -2783, /* 739 */
1818677, -84, /* 740 */
1819-3028, 2394, /* 741 */
1820-5736, -2700, /* 742 */
18212395, 3079, /* 743 */
1822-180, 81, /* 744 */
18231231, -1936, /* 745 */
1824-99, 6530, /* 746 */
182520, 1209, /* 747 */
18263721, 454, /* 748 */
1827-2714, -1467, /* 749 */
1828-1312, 1068, /* 750 */
18292139, -1899, /* 751 */
1830244, -2402, /* 752 */
18312778, 1040, /* 753 */
18323777, 1000, /* 754 */
1833-939, 415, /* 755 */
18341293, -1385, /* 756 */
18353095, -4622, /* 757 */
1836897, 954, /* 758 */
1837-5466, 2376, /* 759 */
18381012, 2337, /* 760 */
1839-773, 78, /* 761 */
18401075, 589, /* 762 */
1841-1420, -4686, /* 763 */
1842-144, 160, /* 764 */
1843-1755, -2700, /* 765 */
1844-2152, -3229, /* 766 */
1845162, -2177, /* 767 */
1846-3858, 322, /* 768 */
18471803, 113, /* 769 */
1848-716, 3207, /* 770 */
18491376, 1467, /* 771 */
1850453, -990, /* 772 */
1851-1940, -1684, /* 773 */
1852-503, -882, /* 774 */
18531663, 1631, /* 775 */
1854183, 199, /* 776 */
1855-1005, 4017, /* 777 */
18561061, 5486, /* 778 */
1857-5301, 1406, /* 779 */
18581465, -1001, /* 780 */
18593398, -4783, /* 781 */
1860-606, 44, /* 782 */
1861-959, 4868, /* 783 */
18624985, 4007, /* 784 */
1863112, 307, /* 785 */
18644610, 208, /* 786 */
1865-5579, -1587, /* 787 */
18661931, 3523, /* 788 */
1867-2820, 1300, /* 789 */
1868-1165, 2600, /* 790 */
1869-1640, -3717, /* 791 */
1870-3491, 3241, /* 792 */
1871-308, -1382, /* 793 */
18723171, -1351, /* 794 */
1873988, 90, /* 795 */
1874-2581, -691, /* 796 */
1875-1384, 904, /* 797 */
18762229, -2470, /* 798 */
1877-1394, -2861, /* 799 */
18783816, -1321, /* 800 */
1879612, 1732, /* 801 */
1880-979, 3308, /* 802 */
1881-3083, 2627, /* 803 */
1882-231, 1255, /* 804 */
18832860, 1983, /* 805 */
18844, 3012, /* 806 */
18854058, 1279, /* 807 */
18861521, 2535, /* 808 */
18873545, 528, /* 809 */
18886345, 1843, /* 810 */
1889-696, 1025, /* 811 */
1890-575, 3506, /* 812 */
1891-1366, 1882, /* 813 */
1892-482, -335, /* 814 */
1893-238, 306, /* 815 */
1894-2973, -187, /* 816 */
1895-4125, -2006, /* 817 */
1896209, -2289, /* 818 */
1897109, 853, /* 819 */
1898490, 2760, /* 820 */
18991778, -1392, /* 821 */
1900-789, 1711, /* 822 */
1901-1318, 284, /* 823 */
1902-207, -1361, /* 824 */
19031378, -3558, /* 825 */
1904-1485, -2822, /* 826 */
19054277, 501, /* 827 */
1906-1219, -141, /* 828 */
1907-4282, -785, /* 829 */
19083590, 1023, /* 830 */
19092361, 883, /* 831 */
1910-2231, 1375, /* 832 */
1911673, -1640, /* 833 */
1912-1061, -1199, /* 834 */
1913-1681, -1505, /* 835 */
1914-1483, 4501, /* 836 */
19152565, -1335, /* 837 */
1916485, -2362, /* 838 */
1917-2781, 2723, /* 839 */
19185585, 1998, /* 840 */
19192831, 4784, /* 841 */
1920-2628, 2136, /* 842 */
19211169, -853, /* 843 */
19221459, 2031, /* 844 */
1923-422, -2579, /* 845 */
19241806, -651, /* 846 */
1925852, 2547, /* 847 */
1926-1014, 2826, /* 848 */
19274561, -1287, /* 849 */
1928-3958, 660, /* 850 */
1929-2389, -674, /* 851 */
1930-992, -814, /* 852 */
1931-3183, -5049, /* 853 */
19323717, 999, /* 854 */
1933-101, -2629, /* 855 */
19343735, -677, /* 856 */
1935119, -289, /* 857 */
1936-3456, -1721, /* 858 */
1937-305, 1629, /* 859 */
19381386, 501, /* 860 */
1939-1034, 4339, /* 861 */
19401247, -1993, /* 862 */
1941-1791, -1940, /* 863 */
19421016, -3092, /* 864 */
1943-2858, -2264, /* 865 */
1944-5239, -1918, /* 866 */
1945258, 2474, /* 867 */
1946-3241, -3769, /* 868 */
19474485, 1390, /* 869 */
1948-528, -4507, /* 870 */
1949-3147, 2383, /* 871 */
1950-4627, -3021, /* 872 */
1951872, -2527, /* 873 */
19521451, -2459, /* 874 */
1953250, -710, /* 875 */
19542774, 885, /* 876 */
1955-3338, -251, /* 877 */
1956-110, 616, /* 878 */
1957602, 1037, /* 879 */
19581801, -1583, /* 880 */
1959-1212, 675, /* 881 */
19602189, 313, /* 882 */
1961129, 770, /* 883 */
1962-1096, 4793, /* 884 */
19633615, -1560, /* 885 */
19644265, -1557, /* 886 */
1965-708, 3412, /* 887 */
1966-2417, -311, /* 888 */
19671335, 3647, /* 889 */
1968-2390, 1951, /* 890 */
1969-4104, -1093, /* 891 */
19701240, -3903, /* 892 */
1971-4955, 3408, /* 893 */
19721673, -3557, /* 894 */
19733733, 1219, /* 895 */
1974-2551, 1336, /* 896 */
19751251, 473, /* 897 */
1976-116, 1566, /* 898 */
19771129, -2033, /* 899 */
19781405, -246, /* 900 */
1979-141, -820, /* 901 */
1980-3589, 261, /* 902 */
1981-1506, -1765, /* 903 */
19822884, 1102, /* 904 */
1983664, 242, /* 905 */
19844452, -3628, /* 906 */
1985135, -216, /* 907 */
1986-637, 283, /* 908 */
1987-6407, -2781, /* 909 */
19882738, -1788, /* 910 */
1989622, 3229, /* 911 */
1990498, 2146, /* 912 */
1991-1138, -1727, /* 913 */
1992-707, -164, /* 914 */
1993-384, 2321, /* 915 */
1994599, -994, /* 916 */
1995-3398, 2803, /* 917 */
1996482, 2047, /* 918 */
1997-893, -1123, /* 919 */
1998-2509, 1991, /* 920 */
1999564, 989, /* 921 */
2000-1187, 2086, /* 922 */
20012786, 2774, /* 923 */
2002-4893, -1488, /* 924 */
20034185, -4652, /* 925 */
2004-1971, 280, /* 926 */
2005-1734, 2769, /* 927 */
20061754, -2627, /* 928 */
2007-4678, -69, /* 929 */
2008267, 1248, /* 930 */
2009670, -1373, /* 931 */
2010-363, -1927, /* 932 */
2011991, -42, /* 933 */
20122195, 148, /* 934 */
2013-768, 1118, /* 935 */
2014-893, -3118, /* 936 */
2015558, 733, /* 937 */
2016-3519, -836, /* 938 */
2017-2403, 1347, /* 939 */
2018883, 432, /* 940 */
20191518, -4135, /* 941 */
2020-2929, 2691, /* 942 */
2021-640, -910, /* 943 */
2022-1338, 150, /* 944 */
20233646, -6, /* 945 */
2024299, -537, /* 946 */
2025-2574, -4185, /* 947 */
2026-1291, 4588, /* 948 */
20271522, 976, /* 949 */
2028-5563, -234, /* 950 */
20291398, -1427, /* 951 */
20302371, -2584, /* 952 */
2031899, -1369, /* 953 */
2032-1630, -766, /* 954 */
2033-565, -2076, /* 955 */
2034270, -859, /* 956 */
2035-3141, 4966, /* 957 */
20361214, -158, /* 958 */
20372730, 839, /* 959 */
2038104, -1899, /* 960 */
20391153, -1173, /* 961 */
2040-296, -170, /* 962 */
2041-2056, 1938, /* 963 */
20422360, -3469, /* 964 */
2043-2823, -3113, /* 965 */
2044-766, -1757, /* 966 */
20455157, -4619, /* 967 */
2046-516, -2083, /* 968 */
20471011, -2517, /* 969 */
20483258, 898, /* 970 */
20491041, -3283, /* 971 */
20504732, -1249, /* 972 */
2051614, -1063, /* 973 */
2052-636, -1317, /* 974 */
2053-2814, -2028, /* 975 */
2054-1887, -3103, /* 976 */
2055665, 3168, /* 977 */
20565218, 258, /* 978 */
2057-5980, 4248, /* 979 */
2058-1100, 3325, /* 980 */
2059-1937, -4363, /* 981 */
20601441, -4445, /* 982 */
20611339, 4418, /* 983 */
20626405, 2002, /* 984 */
2063-940, -1024, /* 985 */
20642383, 741, /* 986 */
2065822, 1234, /* 987 */
20661968, -1417, /* 988 */
2067-1016, -195, /* 989 */
20681551, 95, /* 990 */
20691944, -6506, /* 991 */
20701776, 3, /* 992 */
2071-349, 3092, /* 993 */
2072-333, -1765, /* 994 */
2073585, 17, /* 995 */
2074-1964, 3290, /* 996 */
20752028, -2097, /* 997 */
20762783, 5490, /* 998 */
20773185, -144, /* 999 */
2078-445, 812, /* 1000 */
2079989, 1588, /* 1001 */
2080-41, -134, /* 1002 */
20813120, 1434, /* 1003 */
2082-340, -2585, /* 1004 */
20831271, 1072, /* 1005 */
2084850, 3457, /* 1006 */
2085-4923, 1334, /* 1007 */
2086779, -3632, /* 1008 */
20872304, -3166, /* 1009 */
20881314, -1810, /* 1010 */
2089235, -3451, /* 1011 */
20901058, 29, /* 1012 */
2091-3126, 2144, /* 1013 */
2092346, -346, /* 1014 */
2093-2402, -1894, /* 1015 */
20942132, -738, /* 1016 */
2095774, -1496, /* 1017 */
2096-3940, -706, /* 1018 */
2097752, 2583, /* 1019 */
2098-1716, -564, /* 1020 */
2099-3520, 1871, /* 1021 */
21001054, 614, /* 1022 */
21011202, 2829, /* 1023 */
2102};
2103
2104DATA error;
2105
diff --git a/dsplib_benchmarks/cfft1/t8_SCALE.h b/dsplib_benchmarks/cfft1/t8_SCALE.h
new file mode 100644
index 0000000..1621816
--- /dev/null
+++ b/dsplib_benchmarks/cfft1/t8_SCALE.h
@@ -0,0 +1,2106 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* Test for cfft: rand */
36#define NX 1024
37#define FNAME "t8"
38#define MAXERROR 16
39#define SCALING 1
40#pragma DATA_SECTION (x_br,".input")
41#pragma DATA_ALIGN (x_br, 2048)
42DATA x_br[2*NX] ;
43
44#pragma DATA_SECTION (scratch,".input")
45#pragma DATA_ALIGN (scratch, 2048)
46DATA scratch[2*NX] ;
47#pragma DATA_SECTION (x,".input")
48
49DATA x[2*NX] ={
50-559, 11885, /* 0 */
511062, -16518, /* 1 */
5213279, 7574, /* 2 */
534295, -12386, /* 3 */
54-17590, 10716, /* 4 */
55-18375, -11369, /* 5 */
567669, -1436, /* 6 */
5723403, 16832, /* 7 */
58-7243, 15697, /* 8 */
59-15252, -1132, /* 9 */
60-20345, -7527, /* 10 */
61-8974, 1987, /* 11 */
62-7780, 2895, /* 12 */
63-5831, 20019, /* 13 */
6421290, -10622, /* 14 */
6510325, -9622, /* 15 */
6613151, 5298, /* 16 */
675539, 18391, /* 17 */
687026, 10096, /* 18 */
6912066, -14054, /* 19 */
70-16581, -18448, /* 20 */
714682, 11206, /* 21 */
7218767, 12336, /* 22 */
73-15446, -10407, /* 23 */
7415015, 16253, /* 24 */
75-20279, 5856, /* 25 */
7621454, 5728, /* 26 */
77-8600, 21416, /* 27 */
78-23296, -9633, /* 28 */
7912238, 6206, /* 29 */
80-9008, 1473, /* 30 */
8110134, 17474, /* 31 */
82-19730, 3976, /* 32 */
8316284, 4832, /* 33 */
8410281, -558, /* 34 */
8517438, 20840, /* 35 */
8617521, -7226, /* 36 */
8712314, -14139, /* 37 */
887978, -18922, /* 38 */
8918928, 7161, /* 39 */
9015134, 4989, /* 40 */
9115661, 14645, /* 41 */
926587, -1801, /* 42 */
93-16187, -19129, /* 43 */
9413331, -18706, /* 44 */
9510894, 17634, /* 45 */
963047, -20681, /* 46 */
9710515, 16348, /* 47 */
98-12254, -2161, /* 48 */
99-478, -11856, /* 49 */
100-3597, 23003, /* 50 */
10113920, 3028, /* 51 */
10212401, -13158, /* 52 */
103-12294, 17773, /* 53 */
1046361, 10713, /* 54 */
105-12640, 16623, /* 55 */
1065458, -15176, /* 56 */
107-10900, 1897, /* 57 */
10823126, -1310, /* 58 */
10912256, 10941, /* 59 */
110-840, 22627, /* 60 */
11120960, 7854, /* 61 */
112-6557, 8622, /* 62 */
113-19568, 17674, /* 63 */
11421116, 362, /* 64 */
1158984, -1512, /* 65 */
1165438, -12014, /* 66 */
11718596, 3108, /* 67 */
118-22951, 12275, /* 68 */
119-9374, -7290, /* 69 */
12021896, -2470, /* 70 */
121-18735, 743, /* 71 */
1224520, -16133, /* 72 */
123-1461, 22640, /* 73 */
12410231, -9475, /* 74 */
12516896, -16262, /* 75 */
126-14803, 20515, /* 76 */
127-1772, 8185, /* 77 */
12818987, -3395, /* 78 */
129-22500, 15669, /* 79 */
13012260, -15475, /* 80 */
13113929, -2795, /* 81 */
132-8765, 11885, /* 82 */
133-12438, 5437, /* 83 */
134-262, -11575, /* 84 */
1358722, -7043, /* 85 */
13620933, 5320, /* 86 */
137-2858, -7641, /* 87 */
138-121, 6402, /* 88 */
139-18898, 781, /* 89 */
1402562, 919, /* 90 */
141-3028, 5953, /* 91 */
142-15007, 21148, /* 92 */
143-16299, -13019, /* 93 */
14420420, 23288, /* 94 */
145-17126, 17768, /* 95 */
14623472, 5929, /* 96 */
1478974, -13566, /* 97 */
14821706, 19564, /* 98 */
14912970, -17220, /* 99 */
150-23507, 22037, /* 100 */
151-8218, 5645, /* 101 */
1522076, 6627, /* 102 */
153-9110, -22902, /* 103 */
1548131, 13631, /* 104 */
155-7265, 18811, /* 105 */
15622627, -23439, /* 106 */
157-6876, 769, /* 107 */
158-22622, 5858, /* 108 */
15914724, -11056, /* 109 */
16022731, -4757, /* 110 */
161-8860, 22487, /* 111 */
162-5702, -9242, /* 112 */
16311677, 3142, /* 113 */
164-2692, -13366, /* 114 */
165-18838, -17166, /* 115 */
16623193, 22534, /* 116 */
1671707, -13450, /* 117 */
168-17206, -17148, /* 118 */
169-17359, -21062, /* 119 */
17017137, -11082, /* 120 */
1719805, 12115, /* 121 */
17223457, -3028, /* 122 */
17314866, 313, /* 123 */
17413288, -249, /* 124 */
17512411, -19106, /* 125 */
17619066, 22185, /* 126 */
177-18686, -3536, /* 127 */
178-13574, -10820, /* 128 */
17916529, 20492, /* 129 */
18011439, -13148, /* 130 */
181-4470, -14614, /* 131 */
182-9179, -10330, /* 132 */
183-1215, 8194, /* 133 */
184-16727, 4623, /* 134 */
185-267, -5234, /* 135 */
1861418, 20520, /* 136 */
187482, 15392, /* 137 */
188-12832, -21127, /* 138 */
18920480, 15428, /* 139 */
190832, -5283, /* 140 */
191-1919, -2555, /* 141 */
19213029, -23109, /* 142 */
19311007, -10350, /* 143 */
1944820, -9793, /* 144 */
195-20861, -3301, /* 145 */
196-20151, 9479, /* 146 */
1976388, -23054, /* 147 */
19817718, -12383, /* 148 */
199-3415, -4639, /* 149 */
2009811, -19413, /* 150 */
201-20237, 18057, /* 151 */
202-22644, -2990, /* 152 */
203391, -9003, /* 153 */
20417392, 15266, /* 154 */
20514056, 8827, /* 155 */
20614088, 1431, /* 156 */
207-14308, -15180, /* 157 */
20810093, 18691, /* 158 */
209-13418, 14593, /* 159 */
21013489, -5220, /* 160 */
211-15436, -989, /* 161 */
212-13835, 5056, /* 162 */
213-1673, 7151, /* 163 */
214-20032, 12359, /* 164 */
2154547, -2462, /* 165 */
216-14549, 6731, /* 166 */
21720471, -10331, /* 167 */
218-9063, -2671, /* 168 */
219-1795, -11855, /* 169 */
22015525, -16403, /* 170 */
221-9410, -13818, /* 171 */
2229869, 19499, /* 172 */
223-20029, 3889, /* 173 */
22411780, 9100, /* 174 */
225-1464, 16784, /* 175 */
22620947, -637, /* 176 */
227-22883, -7405, /* 177 */
228-20989, -3831, /* 178 */
22911226, -17952, /* 179 */
2306382, 874, /* 180 */
23120290, 22202, /* 181 */
232-1839, -8048, /* 182 */
233606, -7573, /* 183 */
234-3556, 14212, /* 184 */
235-3959, -16022, /* 185 */
236-5263, -16044, /* 186 */
23716739, -15836, /* 187 */
23815208, 19508, /* 188 */
23919487, 12948, /* 189 */
24015821, -3302, /* 190 */
24117330, -11340, /* 191 */
24212975, 5762, /* 192 */
243-3205, 22846, /* 193 */
244-3009, 6446, /* 194 */
245-12981, -12568, /* 195 */
246-22920, 13394, /* 196 */
247-5840, -23381, /* 197 */
24815939, 14002, /* 198 */
249-10064, -13765, /* 199 */
250-10164, -14147, /* 200 */
251-8142, 22485, /* 201 */
252-1121, 5794, /* 202 */
253-12902, -20942, /* 203 */
25421751, -16842, /* 204 */
255-9113, -4339, /* 205 */
25613132, 13095, /* 206 */
25718613, -15878, /* 207 */
258-11596, -22307, /* 208 */
259-16679, 16542, /* 209 */
260-7463, -11633, /* 210 */
26110976, -4937, /* 211 */
262-21947, 8817, /* 212 */
2632082, 17466, /* 213 */
2642751, 8520, /* 214 */
2657988, -16987, /* 215 */
2663951, 3624, /* 216 */
2678752, 8682, /* 217 */
26812522, -8654, /* 218 */
26918722, 557, /* 219 */
27021977, -2538, /* 220 */
27119105, 950, /* 221 */
272-15133, -6308, /* 222 */
27322527, 7170, /* 223 */
27418737, 17493, /* 224 */
275-22159, 17324, /* 225 */
276-10263, 1403, /* 226 */
277-14695, 21625, /* 227 */
2785120, 4285, /* 228 */
279-13684, -22444, /* 229 */
28023433, -14961, /* 230 */
281-22752, -1532, /* 231 */
282-2843, 5339, /* 232 */
283-16555, -16966, /* 233 */
2845717, -13571, /* 234 */
28511976, 23073, /* 235 */
286-10330, -8002, /* 236 */
2871279, -3492, /* 237 */
288-8831, -16655, /* 238 */
289-14985, 2153, /* 239 */
29013147, -19211, /* 240 */
29114572, -3063, /* 241 */
29210513, -19601, /* 242 */
293-21408, 2585, /* 243 */
2945334, -22702, /* 244 */
295-7759, 6784, /* 245 */
2963948, -5073, /* 246 */
29719452, -8163, /* 247 */
29859, -11073, /* 248 */
299-3884, 483, /* 249 */
30014098, -2095, /* 250 */
30118390, 14612, /* 251 */
302628, -1539, /* 252 */
303-5192, 871, /* 253 */
30420275, -13980, /* 254 */
305-10230, 3796, /* 255 */
30612708, 4599, /* 256 */
30710714, 7371, /* 257 */
30819520, 3836, /* 258 */
309-18545, 12422, /* 259 */
31018311, -15841, /* 260 */
3114474, 15995, /* 261 */
312-22972, 23367, /* 262 */
313-12321, 7539, /* 263 */
314-17721, -17738, /* 264 */
31517927, 4102, /* 265 */
31614747, -16656, /* 266 */
31712398, 21173, /* 267 */
31814613, 11392, /* 268 */
3198580, 17542, /* 269 */
3205875, -15792, /* 270 */
321-6212, -1235, /* 271 */
322-13994, -7221, /* 272 */
323-10591, -9506, /* 273 */
324-869, -21649, /* 274 */
325-4700, -5575, /* 275 */
3269524, -17330, /* 276 */
327-8411, -16809, /* 277 */
328-21260, -5558, /* 278 */
32913064, 6441, /* 279 */
3302514, 13199, /* 280 */
331-20351, -3397, /* 281 */
332-181, -15479, /* 282 */
33315824, -6277, /* 283 */
334-1840, 22496, /* 284 */
33513183, -1917, /* 285 */
336-389, 17614, /* 286 */
3379214, -16381, /* 287 */
33822837, -2710, /* 288 */
339-6913, 19811, /* 289 */
3405743, 22617, /* 290 */
341748, -1717, /* 291 */
34214832, -7322, /* 292 */
343-515, -13680, /* 293 */
34410897, -8653, /* 294 */
3459914, 18730, /* 295 */
34615744, -20215, /* 296 */
347-23027, -11869, /* 297 */
348-21263, -22606, /* 298 */
34959, 23392, /* 299 */
350-9808, -18827, /* 300 */
351-22892, 19720, /* 301 */
35213850, -17232, /* 302 */
353-20373, -13887, /* 303 */
354-8938, -15813, /* 304 */
355-7533, 13043, /* 305 */
35614914, 2831, /* 306 */
357-23335, 7773, /* 307 */
358-292, 17587, /* 308 */
3595341, 5170, /* 309 */
360-5929, 20661, /* 310 */
361-14205, -10096, /* 311 */
36218600, 12471, /* 312 */
36322921, -16511, /* 313 */
36419857, 5620, /* 314 */
365-4971, 5800, /* 315 */
3667640, 14517, /* 316 */
3671888, -8576, /* 317 */
368-13603, -7130, /* 318 */
369-9166, -11603, /* 319 */
370-22910, 19844, /* 320 */
371-23326, 9580, /* 321 */
37222965, 9709, /* 322 */
37314679, -16450, /* 323 */
37412731, 9592, /* 324 */
37518987, -20067, /* 325 */
376-17714, -21068, /* 326 */
377-19018, 1112, /* 327 */
3782423, 7040, /* 328 */
379-23234, -12553, /* 329 */
380-17623, -16943, /* 330 */
381-20915, -12355, /* 331 */
38212367, 17616, /* 332 */
383-20179, 16983, /* 333 */
38410274, 7137, /* 334 */
385-16931, 17615, /* 335 */
3865447, 21830, /* 336 */
387-1342, 21024, /* 337 */
388487, 18188, /* 338 */
389-7296, 1773, /* 339 */
390-19551, 14744, /* 340 */
391-11498, -12124, /* 341 */
3921203, -6406, /* 342 */
393-16925, 8358, /* 343 */
394-17869, -14262, /* 344 */
395128, -14383, /* 345 */
396-10080, 2372, /* 346 */
397-18270, -22676, /* 347 */
3982, -15960, /* 348 */
399-5749, 1655, /* 349 */
400-10803, -3385, /* 350 */
40121501, -4375, /* 351 */
402-1975, 15643, /* 352 */
403-12005, -14469, /* 353 */
40415558, 8471, /* 354 */
405-9267, 19695, /* 355 */
406-21977, -21366, /* 356 */
40722954, 17931, /* 357 */
408-953, -3655, /* 358 */
4094874, -2087, /* 359 */
410765, 5526, /* 360 */
41122470, 11427, /* 361 */
412-11903, 23351, /* 362 */
4137918, 20148, /* 363 */
414-16633, -22641, /* 364 */
415-4467, -5592, /* 365 */
416-16853, 7391, /* 366 */
417-7334, -22213, /* 367 */
4182350, 5250, /* 368 */
419-21543, 1127, /* 369 */
420-12620, 5787, /* 370 */
421-4766, -16976, /* 371 */
422-17859, -2296, /* 372 */
423-2702, -4277, /* 373 */
424-21119, 19253, /* 374 */
42523382, -4655, /* 375 */
4269151, -14561, /* 376 */
4275415, 14906, /* 377 */
4285515, -3647, /* 378 */
42915524, -5378, /* 379 */
43022565, 10173, /* 380 */
431-2946, 4956, /* 381 */
43216300, -19689, /* 382 */
433-4846, -17401, /* 383 */
434-3749, -6221, /* 384 */
43518455, 2827, /* 385 */
436-7267, 11308, /* 386 */
43714520, 22714, /* 387 */
43823271, -670, /* 388 */
43913232, -23523, /* 389 */
44016563, 13260, /* 390 */
4417561, -7196, /* 391 */
442-10730, -9610, /* 392 */
443-12202, 15608, /* 393 */
444-3488, -18929, /* 394 */
4454593, -5940, /* 395 */
446-3765, 6603, /* 396 */
44712595, -21937, /* 397 */
448-22332, -8504, /* 398 */
4499076, 21735, /* 399 */
45011932, 7834, /* 400 */
45121354, -19469, /* 401 */
452-5306, -11509, /* 402 */
453-20897, -16821, /* 403 */
454-5870, -10486, /* 404 */
4557415, 13015, /* 405 */
4569499, 9792, /* 406 */
457-19269, 4845, /* 407 */
45821091, -21685, /* 408 */
4591640, 16275, /* 409 */
46019314, -12725, /* 410 */
461-8978, -233, /* 411 */
46210588, -22126, /* 412 */
463-5487, 6965, /* 413 */
46418779, -4688, /* 414 */
465-20319, 12594, /* 415 */
466-11065, -5468, /* 416 */
4675864, 18428, /* 417 */
4688487, -4342, /* 418 */
46911153, -5799, /* 419 */
47020385, -19377, /* 420 */
4715398, 22720, /* 421 */
47211219, 19853, /* 422 */
4736427, -1794, /* 423 */
474-15531, 2893, /* 424 */
475-10719, -312, /* 425 */
47614710, 23257, /* 426 */
477-4555, -22332, /* 427 */
4787536, -11323, /* 428 */
479-10073, -8138, /* 429 */
48021722, -17756, /* 430 */
4813604, 11578, /* 431 */
48221969, 6090, /* 432 */
483655, -14285, /* 433 */
48417148, -1706, /* 434 */
485-12932, -11020, /* 435 */
486-12079, -23371, /* 436 */
48718777, -18091, /* 437 */
4889849, 2773, /* 438 */
48922370, 18468, /* 439 */
490-1904, 18889, /* 440 */
49111383, 9410, /* 441 */
4927955, -12535, /* 442 */
493-22147, 1388, /* 443 */
494-7046, 14348, /* 444 */
495-19677, 9407, /* 445 */
496-20677, -23522, /* 446 */
49712245, -10119, /* 447 */
4986018, -15500, /* 448 */
4991434, -13973, /* 449 */
50023035, -19083, /* 450 */
501-9277, -21720, /* 451 */
502-15034, -5021, /* 452 */
5033260, -12551, /* 453 */
504-1574, -18239, /* 454 */
505-5074, -3133, /* 455 */
506-22251, -10259, /* 456 */
507-7464, 16699, /* 457 */
50822427, -21902, /* 458 */
5093622, 22711, /* 459 */
51012742, 21430, /* 460 */
5115951, 22805, /* 461 */
51210972, 15009, /* 462 */
513-16510, -21503, /* 463 */
514-4019, -9790, /* 464 */
515-20293, 10466, /* 465 */
51618088, -18626, /* 466 */
51715630, 20499, /* 467 */
518-8701, -1942, /* 468 */
51918740, 22935, /* 469 */
52011916, -4051, /* 470 */
521-16359, 14602, /* 471 */
52210141, -21196, /* 472 */
52316084, 5468, /* 473 */
52413345, -4568, /* 474 */
52523438, 4789, /* 475 */
5264054, -12645, /* 476 */
527-6555, 15534, /* 477 */
528-5937, -20277, /* 478 */
52922938, -12594, /* 479 */
53018230, -618, /* 480 */
531-14801, 21167, /* 481 */
532-12047, -20343, /* 482 */
533-11918, -2631, /* 483 */
534-15358, -13724, /* 484 */
535-7802, 14493, /* 485 */
536-4416, 211, /* 486 */
5375827, 12638, /* 487 */
53818738, -13071, /* 488 */
5398435, 14112, /* 489 */
540-17348, -21739, /* 490 */
541-1277, 10919, /* 491 */
54222008, 21421, /* 492 */
543-59, -7862, /* 493 */
544-4846, -8124, /* 494 */
54522986, 2787, /* 495 */
54612633, 10762, /* 496 */
54722747, -9197, /* 497 */
548-12276, 14960, /* 498 */
549-1576, 14661, /* 499 */
550-21877, -640, /* 500 */
55111165, -3196, /* 501 */
55216464, -16928, /* 502 */
553786, 3551, /* 503 */
554-16781, -13981, /* 504 */
55513040, -3879, /* 505 */
556-2474, -13938, /* 506 */
557-15751, 8737, /* 507 */
558-11461, 15586, /* 508 */
55910797, -10152, /* 509 */
560-20655, -6025, /* 510 */
561-18208, 2673, /* 511 */
56214813, -7632, /* 512 */
563-1812, 18975, /* 513 */
56419246, -12503, /* 514 */
56518659, -4529, /* 515 */
566-13796, -8188, /* 516 */
56717612, -4936, /* 517 */
568-12369, -10341, /* 518 */
5698677, 6696, /* 519 */
57021663, -9837, /* 520 */
571-3457, 21936, /* 521 */
572-15341, -4446, /* 522 */
573-4832, -13664, /* 523 */
5748047, -22411, /* 524 */
575-704, 12458, /* 525 */
576-5528, -2768, /* 526 */
5772990, -19075, /* 527 */
578-477, -23382, /* 528 */
579-16238, -13489, /* 529 */
5807116, 13547, /* 530 */
58110687, 15030, /* 531 */
582-23368, -16556, /* 532 */
58319262, 6415, /* 533 */
5847620, 3924, /* 534 */
585-21204, -13839, /* 535 */
586-2250, 9675, /* 536 */
587-15815, 23420, /* 537 */
588-1381, 15246, /* 538 */
58915229, 12635, /* 539 */
59016477, -5209, /* 540 */
59121856, -23342, /* 541 */
59214721, -3322, /* 542 */
593-11093, -8116, /* 543 */
594-13826, 13432, /* 544 */
59520349, -3048, /* 545 */
596-5022, 9907, /* 546 */
597-20605, 21222, /* 547 */
598-21479, 9757, /* 548 */
599-23252, -17040, /* 549 */
60014930, -8288, /* 550 */
60119547, 13600, /* 551 */
60211376, -9995, /* 552 */
603-13945, 14021, /* 553 */
604-12514, -13429, /* 554 */
60518761, -5395, /* 555 */
60613547, 20374, /* 556 */
607-14926, 22764, /* 557 */
608270, 11827, /* 558 */
609-20670, 5635, /* 559 */
610-17172, -20922, /* 560 */
611-22494, -7603, /* 561 */
61217411, -12254, /* 562 */
6135373, 1613, /* 563 */
614-7574, 8332, /* 564 */
6158741, -13185, /* 565 */
616-13307, 7668, /* 566 */
617-12645, -17922, /* 567 */
618-2721, 16653, /* 568 */
619-7822, -15635, /* 569 */
620-10994, 5388, /* 570 */
62112005, 6430, /* 571 */
622-3941, 12682, /* 572 */
62321208, 2159, /* 573 */
62415846, -4353, /* 574 */
62518638, -13537, /* 575 */
626-11522, 6004, /* 576 */
627993, 15624, /* 577 */
628-7686, 12367, /* 578 */
6297353, 12397, /* 579 */
630-4951, 9480, /* 580 */
631-18801, 14969, /* 581 */
632-1794, -14700, /* 582 */
6332653, -14271, /* 583 */
634-9307, -13578, /* 584 */
6356156, 12532, /* 585 */
6361143, 19490, /* 586 */
637-8998, -12672, /* 587 */
638-1738, -7201, /* 588 */
639-17299, 9366, /* 589 */
64012290, -22746, /* 590 */
641-17189, 2754, /* 591 */
642-3243, 5000, /* 592 */
64316915, -2351, /* 593 */
644-1555, -22109, /* 594 */
645-10065, 23030, /* 595 */
646-20468, -21610, /* 596 */
6477392, -21298, /* 597 */
6486132, -18174, /* 598 */
64910900, -8967, /* 599 */
65021417, 9873, /* 600 */
651-6153, -17736, /* 601 */
652-20274, 586, /* 602 */
65317303, -19012, /* 603 */
654-9668, 9114, /* 604 */
6552512, -10591, /* 605 */
65613284, -1783, /* 606 */
657-20237, 6739, /* 607 */
6586278, -21778, /* 608 */
659-21606, 18581, /* 609 */
660-22400, 21939, /* 610 */
66110439, -14380, /* 611 */
66218163, -16294, /* 612 */
66320583, -13287, /* 613 */
66419996, 2577, /* 614 */
66512067, 18327, /* 615 */
666-5772, -8556, /* 616 */
66715733, -2277, /* 617 */
6688787, -2255, /* 618 */
6692598, 4178, /* 619 */
670-19485, 10043, /* 620 */
6712578, 10051, /* 621 */
6728446, -11534, /* 622 */
673-3413, -18129, /* 623 */
674-15871, -18429, /* 624 */
6759109, -18084, /* 625 */
676902, -7004, /* 626 */
67714150, 10695, /* 627 */
67813109, -5563, /* 628 */
67920152, 9639, /* 629 */
68010650, -6662, /* 630 */
681-19050, -22851, /* 631 */
682-2388, -15768, /* 632 */
68322439, 17188, /* 633 */
68422078, 2728, /* 634 */
6856839, -21912, /* 635 */
686-19174, -15667, /* 636 */
68712807, -15517, /* 637 */
688-4522, -18996, /* 638 */
689-10372, 12049, /* 639 */
690-12880, -12082, /* 640 */
691-16723, 12372, /* 641 */
692-19172, 1828, /* 642 */
6939544, 21084, /* 643 */
6948531, 23092, /* 644 */
695-1995, -21388, /* 645 */
6961522, 22775, /* 646 */
697-9495, -8555, /* 647 */
698-4568, -2202, /* 648 */
699-16363, 10201, /* 649 */
70013663, 20409, /* 650 */
701-14193, 2370, /* 651 */
702-261, -18003, /* 652 */
703-9263, 1149, /* 653 */
704-16576, 2947, /* 654 */
70521846, -14646, /* 655 */
70611153, -8914, /* 656 */
707882, 21668, /* 657 */
70818751, 20684, /* 658 */
7099745, -13310, /* 659 */
710-4953, 14391, /* 660 */
7116694, -10926, /* 661 */
712-9213, 14550, /* 662 */
713-19547, -4102, /* 663 */
71418145, 5806, /* 664 */
715-19117, 2258, /* 665 */
71621243, 690, /* 666 */
7175564, -22535, /* 667 */
71812268, -3385, /* 668 */
7195683, -22590, /* 669 */
7203730, -22400, /* 670 */
721-10318, -1128, /* 671 */
722-18844, 1262, /* 672 */
72310431, 21435, /* 673 */
72416075, 12899, /* 674 */
72515124, -15985, /* 675 */
7262051, 5723, /* 676 */
727-6385, 11648, /* 677 */
72844, -16325, /* 678 */
729-7986, 4018, /* 679 */
730-12687, 20240, /* 680 */
7314940, -1422, /* 681 */
732-21312, 13342, /* 682 */
73311137, 5761, /* 683 */
734-578, -21462, /* 684 */
73522870, -19842, /* 685 */
73622527, -1359, /* 686 */
737-16841, -3493, /* 687 */
73820195, 23080, /* 688 */
739-22796, 2187, /* 689 */
74010721, 20841, /* 690 */
74111005, -18416, /* 691 */
742-20342, -15633, /* 692 */
74314005, -6097, /* 693 */
744-2199, 8707, /* 694 */
745-13620, 22580, /* 695 */
74611075, -21097, /* 696 */
7473643, -19270, /* 697 */
74813628, -19725, /* 698 */
749-19645, 8414, /* 699 */
750-5849, 19629, /* 700 */
751-14080, -20223, /* 701 */
7526861, 4353, /* 702 */
753-17709, -12808, /* 703 */
754354, 22344, /* 704 */
755-18571, -4606, /* 705 */
756-22171, 727, /* 706 */
757-21155, 477, /* 707 */
758-14938, 4403, /* 708 */
759455, -6227, /* 709 */
7606949, -18256, /* 710 */
761451, 5119, /* 711 */
7624669, 1291, /* 712 */
763-7702, 341, /* 713 */
76410522, -16919, /* 714 */
765-17982, -8346, /* 715 */
766934, 461, /* 716 */
76723313, 11562, /* 717 */
768-8788, 10645, /* 718 */
769273, 10027, /* 719 */
77015055, -3806, /* 720 */
771-9478, 3747, /* 721 */
7729820, -11527, /* 722 */
77317396, 5199, /* 723 */
7747367, 5792, /* 724 */
77517052, 18961, /* 725 */
77620084, 5022, /* 726 */
77720656, 23319, /* 727 */
7787802, 19704, /* 728 */
7794601, -23358, /* 729 */
780-4496, 20370, /* 730 */
781-17231, -12222, /* 731 */
782-9325, 22794, /* 732 */
783-1868, 9687, /* 733 */
784154, 10772, /* 734 */
78512379, 18591, /* 735 */
78620917, -2826, /* 736 */
7877054, 22751, /* 737 */
78821015, 13314, /* 738 */
789-1709, 2570, /* 739 */
790-10774, -14199, /* 740 */
791-20274, 1449, /* 741 */
792-14719, -18933, /* 742 */
793-7108, -2755, /* 743 */
79419505, -8984, /* 744 */
795-22893, 13542, /* 745 */
79622953, 13864, /* 746 */
797-15348, 2690, /* 747 */
798-4569, 9486, /* 748 */
799-4743, -20793, /* 749 */
80013449, -9413, /* 750 */
801277, -21300, /* 751 */
8022936, 19224, /* 752 */
8039474, -10026, /* 753 */
804-10105, 17083, /* 754 */
80522911, -5194, /* 755 */
806-12980, -2700, /* 756 */
80744, -3828, /* 757 */
808-3300, 22547, /* 758 */
809753, 4786, /* 759 */
810-21335, -14255, /* 760 */
81121876, 3562, /* 761 */
812-20445, 21980, /* 762 */
813471, 8279, /* 763 */
8149670, -22620, /* 764 */
8155880, -4336, /* 765 */
816-12830, 5367, /* 766 */
8176152, -11190, /* 767 */
818-16330, 16072, /* 768 */
819-8909, -9821, /* 769 */
8207030, -13034, /* 770 */
82115799, -12904, /* 771 */
822-22708, -10206, /* 772 */
823-4501, 15499, /* 773 */
82414101, 2472, /* 774 */
825-16028, 346, /* 775 */
826-8832, 4850, /* 776 */
8276171, 7605, /* 777 */
8284285, 4078, /* 778 */
829-20976, 19886, /* 779 */
83017395, -39, /* 780 */
83110733, 15939, /* 781 */
832-22762, 19748, /* 782 */
83311491, 4991, /* 783 */
834-9809, 16739, /* 784 */
83512075, -13896, /* 785 */
836-18656, -1035, /* 786 */
837-12833, -5594, /* 787 */
838-568, -3572, /* 788 */
83917573, -121, /* 789 */
8403722, -19378, /* 790 */
841-3706, 3864, /* 791 */
84214749, -22548, /* 792 */
8439193, -23319, /* 793 */
844-2764, 2546, /* 794 */
845-1380, -18268, /* 795 */
84617957, 9331, /* 796 */
8476832, 11820, /* 797 */
848-16656, -11778, /* 798 */
849-13542, -11811, /* 799 */
850-17610, 21855, /* 800 */
8511699, -7167, /* 801 */
85216000, -1227, /* 802 */
853-12246, 16995, /* 803 */
854-22490, -18287, /* 804 */
855-16557, -4978, /* 805 */
856-1145, 16632, /* 806 */
85717797, 11268, /* 807 */
85817100, 12358, /* 808 */
85923358, -12455, /* 809 */
86012114, 12101, /* 810 */
86118162, -12611, /* 811 */
862-6183, -1843, /* 812 */
86310167, -21875, /* 813 */
864-10089, 1140, /* 814 */
86513629, -4745, /* 815 */
866-13870, 18805, /* 816 */
867-3303, -15470, /* 817 */
8686065, -22377, /* 818 */
8692794, 4340, /* 819 */
870-11943, 3306, /* 820 */
8717369, 3882, /* 821 */
872-17311, -7471, /* 822 */
873631, 2804, /* 823 */
874-10641, -4818, /* 824 */
8754112, 20983, /* 825 */
876-10903, 17726, /* 826 */
87713384, 22996, /* 827 */
878-16544, -5115, /* 828 */
87912866, 19779, /* 829 */
880937, -2001, /* 830 */
8814082, 7610, /* 831 */
882893, 1009, /* 832 */
883-16923, 22735, /* 833 */
884-8667, 18816, /* 834 */
88517009, 6130, /* 835 */
886-3134, -7212, /* 836 */
887-20741, -9142, /* 837 */
88818166, 18890, /* 838 */
889-11489, -18522, /* 839 */
890-10003, -9590, /* 840 */
891-12998, 16551, /* 841 */
8924294, 10801, /* 842 */
8933028, 6722, /* 843 */
89417229, -10915, /* 844 */
895-13200, 10740, /* 845 */
896-9358, 18465, /* 846 */
8974098, 467, /* 847 */
89818928, 2499, /* 848 */
8991117, 17931, /* 849 */
9007944, 16773, /* 850 */
9018327, 4686, /* 851 */
90221324, -836, /* 852 */
9035835, -22976, /* 853 */
904-1983, -10415, /* 854 */
9056956, 3490, /* 855 */
90622545, 15438, /* 856 */
907-3699, 9631, /* 857 */
90822400, -7446, /* 858 */
909876, -4613, /* 859 */
9102019, 1831, /* 860 */
911-5691, -14608, /* 861 */
91216439, -3075, /* 862 */
9132145, -4300, /* 863 */
91414837, -13860, /* 864 */
915-671, -9728, /* 865 */
916-18071, -11483, /* 866 */
917-16788, -8823, /* 867 */
91813403, 2291, /* 868 */
919-10879, 15575, /* 869 */
9202672, -9535, /* 870 */
921-17152, 17757, /* 871 */
922-3553, 12000, /* 872 */
923-20828, -8229, /* 873 */
92413974, -11389, /* 874 */
9252801, 11023, /* 875 */
92612775, -2946, /* 876 */
92723305, -8830, /* 877 */
928-19324, 19004, /* 878 */
92910420, 9184, /* 879 */
93023414, 12090, /* 880 */
931-18452, -10987, /* 881 */
932-2036, 5236, /* 882 */
933-17277, -15430, /* 883 */
9349596, -16391, /* 884 */
935-9121, 8660, /* 885 */
936-20513, -13280, /* 886 */
937-15360, 12414, /* 887 */
938-14478, -20389, /* 888 */
9398020, -12233, /* 889 */
940-5318, -6864, /* 890 */
941-20233, 5068, /* 891 */
9428524, -4102, /* 892 */
94316768, 5467, /* 893 */
944-18970, -3210, /* 894 */
945-5092, -3960, /* 895 */
946-5841, 10160, /* 896 */
947730, 17725, /* 897 */
94818562, -11194, /* 898 */
9496677, -22108, /* 899 */
950-13971, 6747, /* 900 */
951-20298, 15280, /* 901 */
95214131, 13118, /* 902 */
953-3623, -1165, /* 903 */
95418470, 16161, /* 904 */
95523159, -12119, /* 905 */
956-4667, -6123, /* 906 */
957-7501, 21876, /* 907 */
958-8629, -1457, /* 908 */
959-6390, 1550, /* 909 */
9605448, -20997, /* 910 */
9614588, 5757, /* 911 */
9628721, 7776, /* 912 */
96322308, 12218, /* 913 */
964-10343, 8263, /* 914 */
965-15351, -8139, /* 915 */
96619864, 22802, /* 916 */
967-11289, 577, /* 917 */
968-5883, 14942, /* 918 */
9696814, -4966, /* 919 */
970-8641, -854, /* 920 */
971-14482, 10492, /* 921 */
972-12563, 3730, /* 922 */
973-13191, -13067, /* 923 */
974-19801, -12904, /* 924 */
975-17709, -6809, /* 925 */
9761769, 6688, /* 926 */
9778891, 6733, /* 927 */
97810363, -21086, /* 928 */
97920659, 23188, /* 929 */
980-23154, -5281, /* 930 */
9813845, -9461, /* 931 */
9822652, -11886, /* 932 */
9838916, -21170, /* 933 */
98412285, 2552, /* 934 */
98515268, 6549, /* 935 */
9861303, -13519, /* 936 */
987-7462, -12880, /* 937 */
988-20326, -20411, /* 938 */
989-11110, 2210, /* 939 */
99023266, -7041, /* 940 */
991-5394, -20747, /* 941 */
99213477, 6920, /* 942 */
99317401, 22273, /* 943 */
994-19530, -300, /* 944 */
995-768, -4116, /* 945 */
99616221, 22610, /* 946 */
997-1609, 2211, /* 947 */
9984672, 8383, /* 948 */
999-13741, 434, /* 949 */
1000803, 15506, /* 950 */
1001-16102, 14909, /* 951 */
100211505, -13175, /* 952 */
1003-515, -19234, /* 953 */
10047045, -2233, /* 954 */
1005-21575, 12532, /* 955 */
1006-7778, -11156, /* 956 */
1007-3138, 20869, /* 957 */
1008-18899, -1704, /* 958 */
10098518, -497, /* 959 */
1010-22264, 10719, /* 960 */
1011-8435, 19447, /* 961 */
1012-21070, 2531, /* 962 */
1013-6142, -2504, /* 963 */
1014-5468, 12137, /* 964 */
1015-7728, 9014, /* 965 */
101618394, 4804, /* 966 */
1017-12329, -17782, /* 967 */
1018-19730, -5140, /* 968 */
1019-9347, 8297, /* 969 */
1020-15065, 14400, /* 970 */
102110177, -19041, /* 971 */
102213666, -10506, /* 972 */
1023-7942, -21882, /* 973 */
102413258, -2147, /* 974 */
102513025, 1535, /* 975 */
1026-18612, -11020, /* 976 */
1027-8052, -18707, /* 977 */
1028-11248, 2312, /* 978 */
1029-5255, 20516, /* 979 */
103018708, -16778, /* 980 */
103112560, 1875, /* 981 */
1032-12040, -13886, /* 982 */
1033-2136, 3570, /* 983 */
1034-10718, -11620, /* 984 */
1035-3617, 7053, /* 985 */
10369368, -23226, /* 986 */
103714945, -23022, /* 987 */
103815323, 11032, /* 988 */
1039-4555, -18809, /* 989 */
10407137, 12950, /* 990 */
1041-16364, 11571, /* 991 */
1042-7538, -16483, /* 992 */
1043-22633, -22829, /* 993 */
104412631, -21120, /* 994 */
1045-1984, -5482, /* 995 */
1046-21490, -2868, /* 996 */
1047-18854, -21853, /* 997 */
104821512, 15782, /* 998 */
10495122, 13287, /* 999 */
1050-11924, 16866, /* 1000 */
105120222, 10019, /* 1001 */
1052-3300, 4453, /* 1002 */
1053-21235, 11788, /* 1003 */
105419062, -13855, /* 1004 */
105522515, -19078, /* 1005 */
10567428, -13148, /* 1006 */
105710685, -16007, /* 1007 */
1058-536, 6609, /* 1008 */
10598746, 6625, /* 1009 */
1060-6453, -11819, /* 1010 */
1061-4662, -17584, /* 1011 */
1062675, 14827, /* 1012 */
1063-21398, 5381, /* 1013 */
106423133, 667, /* 1014 */
1065-8964, -23237, /* 1015 */
1066-11466, -22351, /* 1016 */
10675183, 15747, /* 1017 */
1068-2497, -16392, /* 1018 */
1069-3840, 18779, /* 1019 */
1070-4151, 15090, /* 1020 */
107110078, 2416, /* 1021 */
1072-18702, 22939, /* 1022 */
1073-5642, 2964, /* 1023 */
1074};
1075
1076#pragma DATA_SECTION (rtest,".test")
1077
1078DATA rtest[2*NX] ={
1079391, -191, /* 0 */
1080-284, 123, /* 1 */
1081145, -470, /* 2 */
1082187, -403, /* 3 */
1083491, 313, /* 4 */
1084493, -1026, /* 5 */
1085147, 77, /* 6 */
1086235, 27, /* 7 */
1087355, -434, /* 8 */
1088-377, -226, /* 9 */
1089493, -16, /* 10 */
1090103, 492, /* 11 */
1091-584, 81, /* 12 */
1092330, 294, /* 13 */
1093-143, 192, /* 14 */
1094123, 729, /* 15 */
1095-202, 244, /* 16 */
10964, -6, /* 17 */
1097-438, 132, /* 18 */
1098-486, 274, /* 19 */
1099116, -180, /* 20 */
1100-220, 335, /* 21 */
1101-714, -409, /* 22 */
1102272, -534, /* 23 */
1103897, -127, /* 24 */
1104570, -18, /* 25 */
1105-70, -167, /* 26 */
1106423, 221, /* 27 */
1107-230, 926, /* 28 */
1108155, -504, /* 29 */
1109-1056, -396, /* 30 */
1110-820, 631, /* 31 */
1111111, 765, /* 32 */
1112-5, -525, /* 33 */
1113504, -465, /* 34 */
1114-207, 87, /* 35 */
1115-539, -387, /* 36 */
1116278, 780, /* 37 */
1117-101, -202, /* 38 */
1118-807, 415, /* 39 */
1119525, -48, /* 40 */
1120249, -201, /* 41 */
1121-254, 777, /* 42 */
1122243, -169, /* 43 */
1123-246, -631, /* 44 */
1124-106, 193, /* 45 */
1125139, 579, /* 46 */
1126316, 25, /* 47 */
1127-75, 210, /* 48 */
1128398, 452, /* 49 */
1129452, -155, /* 50 */
1130-882, 662, /* 51 */
1131322, -638, /* 52 */
1132-42, 314, /* 53 */
1133482, 24, /* 54 */
1134-95, -59, /* 55 */
1135366, -256, /* 56 */
1136-200, -313, /* 57 */
1137193, 611, /* 58 */
1138-46, 33, /* 59 */
1139-343, -326, /* 60 */
1140556, -882, /* 61 */
1141-292, -589, /* 62 */
1142-150, 292, /* 63 */
1143-43, 684, /* 64 */
1144427, 455, /* 65 */
1145227, -442, /* 66 */
1146-49, -110, /* 67 */
1147-304, 484, /* 68 */
1148-700, -234, /* 69 */
1149343, -15, /* 70 */
1150-476, -243, /* 71 */
1151-156, -574, /* 72 */
1152102, 636, /* 73 */
1153-457, -554, /* 74 */
1154632, -593, /* 75 */
1155212, 352, /* 76 */
1156-68, -167, /* 77 */
1157-261, -64, /* 78 */
115872, 655, /* 79 */
1159-173, -116, /* 80 */
1160-516, 274, /* 81 */
1161-51, -70, /* 82 */
1162314, 434, /* 83 */
1163172, -400, /* 84 */
11641213, 21, /* 85 */
1165-496, -28, /* 86 */
1166-149, 149, /* 87 */
1167-400, -82, /* 88 */
1168-61, -439, /* 89 */
1169-765, 424, /* 90 */
1170145, 211, /* 91 */
1171146, 360, /* 92 */
1172-191, -116, /* 93 */
1173-987, 86, /* 94 */
1174-290, -213, /* 95 */
1175-370, 237, /* 96 */
1176-630, -289, /* 97 */
117784, -391, /* 98 */
1178-1287, -223, /* 99 */
1179190, 135, /* 100 */
1180-651, -105, /* 101 */
1181-208, -437, /* 102 */
1182604, -7, /* 103 */
1183-620, -139, /* 104 */
118444, -378, /* 105 */
1185-547, -2, /* 106 */
1186587, 1043, /* 107 */
1187-196, -1329, /* 108 */
1188-8, -454, /* 109 */
1189-96, -330, /* 110 */
1190140, 178, /* 111 */
1191-335, -909, /* 112 */
1192-686, 373, /* 113 */
1193820, 405, /* 114 */
1194-283, -617, /* 115 */
1195-94, 94, /* 116 */
1196221, -184, /* 117 */
1197302, 836, /* 118 */
1198258, 355, /* 119 */
1199102, -518, /* 120 */
1200-205, 236, /* 121 */
1201-358, 581, /* 122 */
1202142, 332, /* 123 */
1203612, 37, /* 124 */
1204111, 263, /* 125 */
1205225, 85, /* 126 */
1206-135, -57, /* 127 */
1207125, 459, /* 128 */
1208-645, 480, /* 129 */
1209-22, 49, /* 130 */
1210-74, 159, /* 131 */
1211-391, -493, /* 132 */
1212-420, 173, /* 133 */
1213486, 36, /* 134 */
1214-295, -132, /* 135 */
1215464, 112, /* 136 */
1216375, -529, /* 137 */
1217641, 115, /* 138 */
1218757, -468, /* 139 */
1219461, 817, /* 140 */
1220-794, -224, /* 141 */
1221268, -390, /* 142 */
1222-191, -216, /* 143 */
1223-91, -636, /* 144 */
1224260, -335, /* 145 */
1225-92, -763, /* 146 */
1226846, 488, /* 147 */
1227-876, 598, /* 148 */
122849, 315, /* 149 */
1229-400, 255, /* 150 */
1230-133, 193, /* 151 */
1231-309, 194, /* 152 */
1232-287, -48, /* 153 */
1233560, -186, /* 154 */
1234-584, -89, /* 155 */
1235-3, -357, /* 156 */
1236621, -419, /* 157 */
1237412, -150, /* 158 */
123867, -610, /* 159 */
1239843, -531, /* 160 */
124049, -654, /* 161 */
1241-225, -222, /* 162 */
1242-734, -119, /* 163 */
1243649, 209, /* 164 */
1244212, 178, /* 165 */
124573, -514, /* 166 */
1246-129, 46, /* 167 */
1247-930, -228, /* 168 */
1248259, -402, /* 169 */
1249869, -6, /* 170 */
1250399, -197, /* 171 */
1251-789, -222, /* 172 */
1252702, 878, /* 173 */
1253-311, -205, /* 174 */
1254453, 442, /* 175 */
1255370, 655, /* 176 */
1256-300, 520, /* 177 */
1257233, -221, /* 178 */
1258305, -302, /* 179 */
1259620, 100, /* 180 */
1260-211, -372, /* 181 */
1261-109, -467, /* 182 */
1262-565, 296, /* 183 */
1263-1, 324, /* 184 */
1264-68, 372, /* 185 */
1265286, -191, /* 186 */
1266-208, 642, /* 187 */
1267518, -1072, /* 188 */
1268-292, -32, /* 189 */
1269-253, -868, /* 190 */
1270-157, 822, /* 191 */
1271608, -99, /* 192 */
1272-527, -309, /* 193 */
1273-474, -182, /* 194 */
1274-145, 264, /* 195 */
1275-517, -241, /* 196 */
1276168, -618, /* 197 */
1277-394, -52, /* 198 */
1278556, -179, /* 199 */
1279-139, 360, /* 200 */
1280-56, -436, /* 201 */
1281-118, 221, /* 202 */
1282208, -97, /* 203 */
128368, -17, /* 204 */
1284943, -33, /* 205 */
1285213, -571, /* 206 */
1286333, -29, /* 207 */
1287-624, 263, /* 208 */
1288-323, -735, /* 209 */
1289255, -185, /* 210 */
1290-1044, -146, /* 211 */
1291296, 859, /* 212 */
1292-120, -440, /* 213 */
129375, -761, /* 214 */
1294-184, 360, /* 215 */
1295-257, -1018, /* 216 */
1296-180, -263, /* 217 */
1297-829, -11, /* 218 */
1298-111, -371, /* 219 */
1299-39, -13, /* 220 */
1300-361, -454, /* 221 */
1301-582, 81, /* 222 */
1302-237, -363, /* 223 */
1303-722, 145, /* 224 */
1304-534, -545, /* 225 */
1305-242, 652, /* 226 */
1306-50, 577, /* 227 */
130738, 537, /* 228 */
1308463, -714, /* 229 */
1309-601, 467, /* 230 */
1310-83, -110, /* 231 */
1311-647, -195, /* 232 */
1312-329, -596, /* 233 */
1313183, 174, /* 234 */
1314514, -508, /* 235 */
1315153, 151, /* 236 */
1316-606, 202, /* 237 */
1317366, 419, /* 238 */
1318383, -29, /* 239 */
1319171, 417, /* 240 */
1320-19, -348, /* 241 */
1321-135, -51, /* 242 */
1322-497, 37, /* 243 */
1323-68, -297, /* 244 */
1324163, 937, /* 245 */
1325269, -248, /* 246 */
1326-374, 241, /* 247 */
1327383, -493, /* 248 */
1328-103, 826, /* 249 */
1329427, 576, /* 250 */
1330-45, 38, /* 251 */
1331-127, 200, /* 252 */
1332-230, -510, /* 253 */
1333-438, -298, /* 254 */
1334-512, 253, /* 255 */
1335-299, -121, /* 256 */
1336184, -5, /* 257 */
1337-206, 224, /* 258 */
1338-659, -134, /* 259 */
1339-360, 428, /* 260 */
134056, 43, /* 261 */
1341377, 204, /* 262 */
134229, 87, /* 263 */
1343126, -501, /* 264 */
1344-46, 315, /* 265 */
1345-113, 58, /* 266 */
1346357, -179, /* 267 */
1347-474, -163, /* 268 */
1348-152, 195, /* 269 */
1349215, 528, /* 270 */
1350120, 87, /* 271 */
1351359, -597, /* 272 */
1352789, -272, /* 273 */
1353-170, 413, /* 274 */
1354867, 570, /* 275 */
1355-176, -587, /* 276 */
1356-394, 678, /* 277 */
1357643, 269, /* 278 */
1358649, 476, /* 279 */
1359222, 116, /* 280 */
1360109, -30, /* 281 */
1361-550, -392, /* 282 */
1362-734, 491, /* 283 */
1363-18, -135, /* 284 */
1364-27, 401, /* 285 */
1365441, -461, /* 286 */
1366-245, 25, /* 287 */
1367353, 273, /* 288 */
1368-302, 446, /* 289 */
136980, -23, /* 290 */
1370-315, 222, /* 291 */
1371-249, 161, /* 292 */
1372-320, 592, /* 293 */
1373-420, 31, /* 294 */
1374105, -702, /* 295 */
1375-455, -79, /* 296 */
1376-580, 485, /* 297 */
1377-169, -265, /* 298 */
1378-382, -345, /* 299 */
1379165, -122, /* 300 */
1380131, 33, /* 301 */
1381370, -662, /* 302 */
1382700, -865, /* 303 */
1383-28, 464, /* 304 */
1384-235, 599, /* 305 */
1385766, -50, /* 306 */
1386231, -446, /* 307 */
138734, -394, /* 308 */
1388186, -195, /* 309 */
1389109, -311, /* 310 */
1390429, 112, /* 311 */
1391176, -688, /* 312 */
1392-463, -223, /* 313 */
1393603, 535, /* 314 */
1394555, 821, /* 315 */
1395275, 474, /* 316 */
1396-226, 62, /* 317 */
1397208, -23, /* 318 */
1398700, -1437, /* 319 */
1399-130, 468, /* 320 */
1400-85, -145, /* 321 */
1401-1048, 135, /* 322 */
1402230, 193, /* 323 */
140342, 1235, /* 324 */
1404-382, 308, /* 325 */
1405556, 134, /* 326 */
14061018, -1393, /* 327 */
1407-73, -161, /* 328 */
1408-25, 255, /* 329 */
1409-102, -230, /* 330 */
1410-243, -47, /* 331 */
14119, -133, /* 332 */
1412124, 179, /* 333 */
1413212, 404, /* 334 */
1414239, 95, /* 335 */
1415567, 521, /* 336 */
1416-406, 685, /* 337 */
1417-60, -26, /* 338 */
1418-615, 146, /* 339 */
1419136, -346, /* 340 */
1420137, 107, /* 341 */
1421214, -314, /* 342 */
1422-799, 196, /* 343 */
1423-34, 456, /* 344 */
1424-856, -216, /* 345 */
1425-343, 49, /* 346 */
1426440, -478, /* 347 */
1427406, 340, /* 348 */
1428-832, -776, /* 349 */
14291046, -300, /* 350 */
143062, 598, /* 351 */
1431692, -370, /* 352 */
14321157, 117, /* 353 */
1433224, -712, /* 354 */
1434242, 321, /* 355 */
143582, -189, /* 356 */
1436-506, -701, /* 357 */
1437-498, -69, /* 358 */
1438180, -385, /* 359 */
1439-828, -211, /* 360 */
1440-620, 508, /* 361 */
1441482, -98, /* 362 */
1442-465, -121, /* 363 */
1443-268, 211, /* 364 */
1444308, 159, /* 365 */
1445-173, 390, /* 366 */
1446395, -125, /* 367 */
1447386, 217, /* 368 */
144869, -201, /* 369 */
1449-282, 733, /* 370 */
1450-175, -765, /* 371 */
1451-954, -232, /* 372 */
1452663, -237, /* 373 */
1453120, -592, /* 374 */
1454-163, 265, /* 375 */
1455-116, -219, /* 376 */
1456-419, -304, /* 377 */
1457200, 225, /* 378 */
1458-473, 565, /* 379 */
1459-34, 858, /* 380 */
1460-445, 177, /* 381 */
1461785, -36, /* 382 */
1462-145, -47, /* 383 */
1463789, -389, /* 384 */
1464-401, -662, /* 385 */
1465-584, -1275, /* 386 */
1466-41, -49, /* 387 */
1467145, 415, /* 388 */
146839, -175, /* 389 */
1469501, 324, /* 390 */
1470-101, 694, /* 391 */
1471316, 510, /* 392 */
1472201, 445, /* 393 */
1473742, -441, /* 394 */
1474536, -514, /* 395 */
1475369, -287, /* 396 */
1476761, 295, /* 397 */
147753, 91, /* 398 */
147835, -513, /* 399 */
1479-27, -203, /* 400 */
1480-612, 315, /* 401 */
14812, -853, /* 402 */
1482-535, -342, /* 403 */
1483188, -22, /* 404 */
1484-841, -293, /* 405 */
1485-71, -148, /* 406 */
1486-366, 670, /* 407 */
1487438, -372, /* 408 */
1488-155, 377, /* 409 */
1489-85, -229, /* 410 */
1490-51, -51, /* 411 */
1491-410, 526, /* 412 */
1492119, 684, /* 413 */
1493-62, 488, /* 414 */
1494199, -54, /* 415 */
1495194, -237, /* 416 */
1496887, -176, /* 417 */
149791, 275, /* 418 */
1498-192, 127, /* 419 */
1499227, 527, /* 420 */
1500-200, 442, /* 421 */
1501195, 551, /* 422 */
1502219, -123, /* 423 */
15031055, -523, /* 424 */
1504-224, 468, /* 425 */
1505444, 96, /* 426 */
1506-61, 510, /* 427 */
1507405, 791, /* 428 */
1508-23, -113, /* 429 */
1509-205, 757, /* 430 */
151055, 565, /* 431 */
151127, -9, /* 432 */
1512-87, 799, /* 433 */
1513210, 337, /* 434 */
151444, 534, /* 435 */
151589, -52, /* 436 */
1516-330, -1054, /* 437 */
1517212, -944, /* 438 */
1518-199, 593, /* 439 */
1519-122, 22, /* 440 */
1520810, -202, /* 441 */
1521217, 0, /* 442 */
1522-355, -549, /* 443 */
1523-54, 275, /* 444 */
1524-400, 72, /* 445 */
1525152, 88, /* 446 */
1526-437, 423, /* 447 */
1527-357, -11, /* 448 */
1528-864, 60, /* 449 */
1529-835, -182, /* 450 */
1530-190, 51, /* 451 */
1531413, 617, /* 452 */
1532154, 179, /* 453 */
153310, 374, /* 454 */
1534153, 190, /* 455 */
1535-587, 1001, /* 456 */
15361, -169, /* 457 */
1537-667, 469, /* 458 */
1538-351, 652, /* 459 */
1539549, -553, /* 460 */
1540-668, 346, /* 461 */
154194, -133, /* 462 */
1542270, 726, /* 463 */
1543-920, 484, /* 464 */
1544-583, -564, /* 465 */
154522, -317, /* 466 */
1546111, -446, /* 467 */
1547-218, -271, /* 468 */
154896, 422, /* 469 */
1549164, 38, /* 470 */
1550360, 255, /* 471 */
15511052, -536, /* 472 */
1552-60, 168, /* 473 */
1553-175, -79, /* 474 */
1554-434, -147, /* 475 */
1555-171, 969, /* 476 */
1556543, -229, /* 477 */
1557-769, -215, /* 478 */
1558-511, 1, /* 479 */
1559218, 389, /* 480 */
1560-111, -76, /* 481 */
156157, -742, /* 482 */
1562-284, -231, /* 483 */
1563498, 346, /* 484 */
1564-518, -46, /* 485 */
1565-75, -307, /* 486 */
1566219, 691, /* 487 */
1567-167, -272, /* 488 */
1568-732, 5, /* 489 */
1569-21, 624, /* 490 */
1570-162, 200, /* 491 */
157156, -335, /* 492 */
1572-190, 380, /* 493 */
1573437, 223, /* 494 */
1574-103, -290, /* 495 */
1575-254, 271, /* 496 */
1576-274, -489, /* 497 */
1577-296, 174, /* 498 */
1578352, 116, /* 499 */
1579126, 207, /* 500 */
1580-245, 497, /* 501 */
1581106, 596, /* 502 */
1582769, -215, /* 503 */
1583-617, -451, /* 504 */
1584697, -544, /* 505 */
1585-43, 473, /* 506 */
1586424, 618, /* 507 */
1587-430, -684, /* 508 */
1588100, 412, /* 509 */
1589-547, -480, /* 510 */
1590734, 817, /* 511 */
1591808, -570, /* 512 */
1592-117, -85, /* 513 */
1593170, -586, /* 514 */
1594194, 484, /* 515 */
1595-211, -331, /* 516 */
1596-1283, -652, /* 517 */
1597-35, 397, /* 518 */
1598554, 452, /* 519 */
1599-381, -103, /* 520 */
1600-817, 1034, /* 521 */
1601-139, -54, /* 522 */
1602-61, 376, /* 523 */
1603425, 519, /* 524 */
1604719, -299, /* 525 */
160548, 155, /* 526 */
1606-199, 151, /* 527 */
1607-621, -155, /* 528 */
1608701, -285, /* 529 */
1609-355, 78, /* 530 */
1610270, 924, /* 531 */
1611-650, 19, /* 532 */
1612-375, -657, /* 533 */
1613623, -237, /* 534 */
1614-404, 247, /* 535 */
1615-12, -341, /* 536 */
1616-68, -251, /* 537 */
1617218, -99, /* 538 */
1618740, -157, /* 539 */
1619-409, -828, /* 540 */
162037, 798, /* 541 */
1621-577, 74, /* 542 */
1622-357, 159, /* 543 */
1623-469, -2, /* 544 */
1624897, 528, /* 545 */
1625455, 578, /* 546 */
1626-365, 61, /* 547 */
1627217, 174, /* 548 */
1628803, -503, /* 549 */
1629-282, 396, /* 550 */
1630-989, 767, /* 551 */
1631698, 363, /* 552 */
1632-2, 302, /* 553 */
1633-134, 550, /* 554 */
1634-661, 81, /* 555 */
1635267, 47, /* 556 */
1636-71, 331, /* 557 */
1637-253, -291, /* 558 */
163876, -347, /* 559 */
1639563, -269, /* 560 */
1640-183, 518, /* 561 */
1641-176, 64, /* 562 */
1642177, -291, /* 563 */
1643-24, 562, /* 564 */
1644357, -324, /* 565 */
1645448, -368, /* 566 */
1646475, -169, /* 567 */
164777, 117, /* 568 */
1648175, -164, /* 569 */
1649204, 246, /* 570 */
1650280, -313, /* 571 */
165124, 127, /* 572 */
1652-794, -223, /* 573 */
1653-21, -35, /* 574 */
1654-47, 425, /* 575 */
1655103, 558, /* 576 */
1656-110, -998, /* 577 */
1657-173, 208, /* 578 */
1658802, 230, /* 579 */
1659-656, 197, /* 580 */
1660-475, -442, /* 581 */
1661253, 704, /* 582 */
1662428, 252, /* 583 */
1663123, -165, /* 584 */
1664219, -199, /* 585 */
1665-234, -141, /* 586 */
1666538, 266, /* 587 */
1667882, 565, /* 588 */
1668-431, 597, /* 589 */
1669-243, -591, /* 590 */
1670-119, -159, /* 591 */
1671460, 430, /* 592 */
1672-223, -623, /* 593 */
1673-97, 73, /* 594 */
1674124, 576, /* 595 */
1675235, 41, /* 596 */
1676425, -131, /* 597 */
1677381, 90, /* 598 */
1678-231, 263, /* 599 */
1679-5, -441, /* 600 */
1680714, 609, /* 601 */
1681-635, -496, /* 602 */
1682298, -423, /* 603 */
1683300, -110, /* 604 */
1684-536, -72, /* 605 */
1685468, 43, /* 606 */
1686-53, 144, /* 607 */
1687-329, -906, /* 608 */
1688-166, 20, /* 609 */
1689-184, -527, /* 610 */
1690-61, 70, /* 611 */
1691712, -442, /* 612 */
16925, -70, /* 613 */
169344, -19, /* 614 */
1694-564, -626, /* 615 */
1695-252, 689, /* 616 */
1696-663, 377, /* 617 */
1697495, -25, /* 618 */
1698535, 199, /* 619 */
1699116, 170, /* 620 */
1700361, -74, /* 621 */
1701-162, -23, /* 622 */
1702188, 403, /* 623 */
1703-403, -141, /* 624 */
1704-433, 476, /* 625 */
1705-59, 294, /* 626 */
1706253, 430, /* 627 */
1707487, 549, /* 628 */
1708-516, -517, /* 629 */
1709205, -295, /* 630 */
1710-588, 233, /* 631 */
1711-531, 119, /* 632 */
1712-73, 275, /* 633 */
171391, 103, /* 634 */
171422, 604, /* 635 */
1715-537, 656, /* 636 */
1716287, 474, /* 637 */
1717-121, 731, /* 638 */
1718-229, -148, /* 639 */
1719275, -437, /* 640 */
1720-532, 336, /* 641 */
1721-106, -654, /* 642 */
1722133, -546, /* 643 */
1723206, -200, /* 644 */
1724-694, -13, /* 645 */
1725410, -547, /* 646 */
172617, -287, /* 647 */
1727-405, 103, /* 648 */
1728156, 213, /* 649 */
1729-230, -87, /* 650 */
1730-378, 11, /* 651 */
1731295, 131, /* 652 */
1732-291, -206, /* 653 */
1733653, -855, /* 654 */
1734868, 248, /* 655 */
1735-413, -60, /* 656 */
1736229, 344, /* 657 */
1737696, -637, /* 658 */
1738-881, 21, /* 659 */
1739-194, -478, /* 660 */
1740-161, 386, /* 661 */
1741116, -553, /* 662 */
174228, -106, /* 663 */
1743-295, -480, /* 664 */
174460, -467, /* 665 */
1745-227, -548, /* 666 */
1746124, 617, /* 667 */
174716, -62, /* 668 */
17484, -794, /* 669 */
1749-198, -533, /* 670 */
1750578, -288, /* 671 */
1751129, 222, /* 672 */
175264, 119, /* 673 */
1753-275, 282, /* 674 */
1754332, -19, /* 675 */
1755-388, -504, /* 676 */
1756-124, 333, /* 677 */
17578, 481, /* 678 */
1758-750, -222, /* 679 */
1759492, 206, /* 680 */
1760725, -159, /* 681 */
1761-122, -98, /* 682 */
1762378, 315, /* 683 */
1763128, -245, /* 684 */
176467, 926, /* 685 */
1765-264, -274, /* 686 */
1766-746, -297, /* 687 */
1767196, -188, /* 688 */
1768101, 50, /* 689 */
1769-115, -336, /* 690 */
1770-58, 13, /* 691 */
1771456, -316, /* 692 */
1772255, -331, /* 693 */
1773162, -278, /* 694 */
1774-1048, -625, /* 695 */
177557, -339, /* 696 */
1776257, -188, /* 697 */
1777-256, -437, /* 698 */
1778269, 730, /* 699 */
1779-562, -347, /* 700 */
178054, 817, /* 701 */
1781342, 221, /* 702 */
1782256, -254, /* 703 */
1783525, -457, /* 704 */
1784415, -164, /* 705 */
1785514, -230, /* 706 */
17863, -294, /* 707 */
1787673, 52, /* 708 */
1788682, 84, /* 709 */
1789-74, -1264, /* 710 */
1790-558, 106, /* 711 */
1791504, 419, /* 712 */
1792-251, -287, /* 713 */
179331, 374, /* 714 */
1794-370, 779, /* 715 */
1795195, -61, /* 716 */
1796259, -72, /* 717 */
1797-143, -118, /* 718 */
1798-379, -375, /* 719 */
1799221, 111, /* 720 */
18008, 283, /* 721 */
1801745, 515, /* 722 */
1802326, 426, /* 723 */
1803-437, -297, /* 724 */
1804383, -93, /* 725 */
180555, 230, /* 726 */
180618, -415, /* 727 */
1807-866, 308, /* 728 */
1808-15, -545, /* 729 */
1809-188, 715, /* 730 */
1810191, 67, /* 731 */
1811514, 547, /* 732 */
1812494, -117, /* 733 */
1813224, 509, /* 734 */
1814-504, -50, /* 735 */
181515, -161, /* 736 */
1816-258, -286, /* 737 */
181741, -210, /* 738 */
1818-328, 428, /* 739 */
181946, 32, /* 740 */
1820840, -52, /* 741 */
1821738, 1053, /* 742 */
1822162, -617, /* 743 */
1823170, 101, /* 744 */
1824-280, 143, /* 745 */
18251107, -539, /* 746 */
1826304, -4, /* 747 */
1827-75, -544, /* 748 */
1828-13, 650, /* 749 */
1829323, 302, /* 750 */
1830-296, -239, /* 751 */
1831-358, 66, /* 752 */
1832300, -368, /* 753 */
1833366, -521, /* 754 */
183472, 292, /* 755 */
1835-99, -203, /* 756 */
1836-435, -777, /* 757 */
1837260, 63, /* 758 */
1838-271, 1128, /* 759 */
1839441, 263, /* 760 */
1840-88, 190, /* 761 */
1841224, 67, /* 762 */
1842-622, -540, /* 763 */
1843-17, 114, /* 764 */
1844-450, -301, /* 765 */
1845-503, -427, /* 766 */
1846-23, -331, /* 767 */
1847-709, 113, /* 768 */
1848302, 102, /* 769 */
1849-257, 584, /* 770 */
1850140, 362, /* 771 */
1851124, -100, /* 772 */
1852-184, -404, /* 773 */
1853-5, -160, /* 774 */
185428, 433, /* 775 */
1855-17, 61, /* 776 */
1856-685, 326, /* 777 */
1857-723, 709, /* 778 */
1858-679, -722, /* 779 */
1859263, 170, /* 780 */
18601000, 327, /* 781 */
1861-25, -116, /* 782 */
1862-878, -99, /* 783 */
1863-707, 881, /* 784 */
1864-39, -1, /* 785 */
1865-176, 788, /* 786 */
1866591, -894, /* 787 */
1867-686, 61, /* 788 */
186869, -574, /* 789 */
1869-231, -449, /* 790 */
1870749, 181, /* 791 */
187182, -868, /* 792 */
1872255, 147, /* 793 */
1873-280, 511, /* 794 */
1874-102, 65, /* 795 */
1875542, -63, /* 796 */
1876260, -224, /* 797 */
1877-234, 521, /* 798 */
1878374, 499, /* 799 */
1879-609, 254, /* 800 */
1880-1, -299, /* 801 */
1881368, -522, /* 802 */
1882747, -259, /* 803 */
1883205, -155, /* 804 */
1884-205, -514, /* 805 */
1885380, -402, /* 806 */
1886-339, -586, /* 807 */
1887206, -456, /* 808 */
1888-255, -488, /* 809 */
1889-285, -1062, /* 810 */
1890292, 98, /* 811 */
1891689, -66, /* 812 */
1892458, 221, /* 813 */
189318, 185, /* 814 */
1894114, 130, /* 815 */
189517, 630, /* 816 */
1896-385, 802, /* 817 */
1897-355, -14, /* 818 */
1898187, 131, /* 819 */
1899521, 216, /* 820 */
1900-46, -290, /* 821 */
1901194, 400, /* 822 */
1902-99, 328, /* 823 */
1903-194, -34, /* 824 */
1904-215, -538, /* 825 */
1905-510, -161, /* 826 */
1906707, -171, /* 827 */
1907-231, 171, /* 828 */
1908-802, 197, /* 829 */
1909637, 161, /* 830 */
1910401, 221, /* 831 */
1911-443, 349, /* 832 */
1912102, -183, /* 833 */
1913-197, -153, /* 834 */
1914-268, -255, /* 835 */
1915-617, 732, /* 836 */
1916454, 89, /* 837 */
1917239, -226, /* 838 */
1918-770, 135, /* 839 */
1919379, 1032, /* 840 */
1920-421, 1002, /* 841 */
1921-663, -121, /* 842 */
1922150, 166, /* 843 */
1923-322, 429, /* 844 */
1924334, -165, /* 845 */
192590, 332, /* 846 */
1926-529, 228, /* 847 */
1927-596, -157, /* 848 */
192861, 858, /* 849 */
1929-66, -706, /* 850 */
1930153, -366, /* 851 */
1931117, -104, /* 852 */
1932984, -77, /* 853 */
1933-604, 450, /* 854 */
1934295, 276, /* 855 */
1935-468, 546, /* 856 */
1936-61, 35, /* 857 */
1937613, -111, /* 858 */
1938-162, -310, /* 859 */
1939-334, -18, /* 860 */
1940-115, -833, /* 861 */
1941-213, 358, /* 862 */
1942294, 276, /* 863 */
1943-239, 513, /* 864 */
1944418, 410, /* 865 */
1945806, 475, /* 866 */
194638, -487, /* 867 */
1947236, 798, /* 868 */
1948-632, -652, /* 869 */
1949-407, 672, /* 870 */
1950676, -27, /* 871 */
1951175, 916, /* 872 */
1952-476, 111, /* 873 */
1953-534, -28, /* 874 */
1954-153, -37, /* 875 */
1955-60, -579, /* 876 */
1956118, 529, /* 877 */
1957103, -60, /* 878 */
1958168, -184, /* 879 */
1959-288, -381, /* 880 */
196099, 171, /* 881 */
1961134, -432, /* 882 */
1962144, -39, /* 883 */
1963728, 455, /* 884 */
196469, -760, /* 885 */
1965206, -847, /* 886 */
1966409, 433, /* 887 */
1967-329, 214, /* 888 */
1968621, 302, /* 889 */
1969-140, 478, /* 890 */
1970-718, 124, /* 891 */
1971-35, -782, /* 892 */
1972-644, 796, /* 893 */
1973202, -733, /* 894 */
1974723, 106, /* 895 */
1975-422, 195, /* 896 */
1976253, 63, /* 897 */
1977-35, 230, /* 898 */
1978342, -332, /* 899 */
1979294, 16, /* 900 */
198093, -180, /* 901 */
1981-514, -355, /* 902 */
198242, -451, /* 903 */
1983278, 473, /* 904 */
198495, 89, /* 905 */
19851041, 274, /* 906 */
1986102, -24, /* 907 */
1987-33, -111, /* 908 */
1988204, -1269, /* 909 */
1989472, 399, /* 910 */
1990-504, 149, /* 911 */
1991-322, 73, /* 912 */
1992394, -187, /* 913 */
1993120, -130, /* 914 */
1994-312, -196, /* 915 */
1995191, 162, /* 916 */
1996-88, -779, /* 917 */
1997-285, -133, /* 918 */
1998327, 6, /* 919 */
1999135, -567, /* 920 */
2000-121, -66, /* 921 */
200139, -420, /* 922 */
2002-607, -191, /* 923 */
2003983, -74, /* 924 */
2004-408, 1036, /* 925 */
2005405, -97, /* 926 */
2006328, -502, /* 927 */
2007-249, 498, /* 928 */
2008900, 123, /* 929 */
200961, -198, /* 930 */
2010-124, 234, /* 931 */
2011-11, 380, /* 932 */
2012-101, -40, /* 933 */
2013-255, -202, /* 934 */
2014290, -27, /* 935 */
2015-228, 552, /* 936 */
201691, -117, /* 937 */
2017277, 655, /* 938 */
2018465, 313, /* 939 */
201957, -128, /* 940 */
2020-746, 3, /* 941 */
2021619, 471, /* 942 */
2022-111, 180, /* 943 */
202365, 290, /* 944 */
2024100, -602, /* 945 */
2025-50, -21, /* 946 */
2026-821, 274, /* 947 */
2027704, 580, /* 948 */
2028313, -109, /* 949 */
2029-562, 857, /* 950 */
2030-12, -308, /* 951 */
2031-2, -581, /* 952 */
2032-7, -245, /* 953 */
2033-296, 95, /* 954 */
2034-243, -236, /* 955 */
20358, -117, /* 956 */
2036-259, 1061, /* 957 */
2037230, -28, /* 958 */
2038524, 144, /* 959 */
203940, -300, /* 960 */
2040248, -149, /* 961 */
2041-24, -1, /* 962 */
2042-432, 265, /* 963 */
2043653, -375, /* 964 */
2044-160, -694, /* 965 */
204585, -301, /* 966 */
20461268, -16, /* 967 */
2047225, -292, /* 968 */
2048492, -109, /* 969 */
2049220, 615, /* 970 */
2050638, -74, /* 971 */
2051564, 739, /* 972 */
2052247, 91, /* 973 */
2053243, -117, /* 974 */
2054347, -496, /* 975 */
2055593, -295, /* 976 */
2056-541, 109, /* 977 */
2057-191, 958, /* 978 */
2058-380, -1200, /* 979 */
2059-437, -359, /* 980 */
2060894, 117, /* 981 */
2061559, 716, /* 982 */
2062-727, -258, /* 983 */
2063-1028, 621, /* 984 */
2064286, 100, /* 985 */
2065-391, 195, /* 986 */
2066-197, -55, /* 987 */
2067-192, 444, /* 988 */
2068220, 57, /* 989 */
2069-243, 117, /* 990 */
2070-201, 1279, /* 991 */
2071-289, 84, /* 992 */
2072145, -459, /* 993 */
207322, 412, /* 994 */
2074-77, 59, /* 995 */
2075572, -316, /* 996 */
2076-482, 257, /* 997 */
2077146, -999, /* 998 */
2078-449, -243, /* 999 */
2079166, 55, /* 1000 */
2080110, -215, /* 1001 */
2081-17, 124, /* 1002 */
2082-42, -511, /* 1003 */
2083-415, 339, /* 1004 */
2084104, -169, /* 1005 */
2085561, -166, /* 1006 */
2086303, 961, /* 1007 */
2087-679, -36, /* 1008 */
2088-556, -364, /* 1009 */
2089-307, -193, /* 1010 */
2090-619, -120, /* 1011 */
209135, -75, /* 1012 */
209229, 773, /* 1013 */
2093-66, 7, /* 1014 */
2094-589, 209, /* 1015 */
2095121, -276, /* 1016 */
2096-122, -211, /* 1017 */
2097-720, 369, /* 1018 */
2098274, 424, /* 1019 */
2099-389, 99, /* 1020 */
2100-575, 576, /* 1021 */
2101138, 138, /* 1022 */
2102195, 548, /* 1023 */
2103};
2104
2105DATA error;
2106
diff --git a/dsplib_benchmarks/convol2/55xConvolve2.cmd b/dsplib_benchmarks/convol2/55xConvolve2.cmd
new file mode 100644
index 0000000..94dce6b
--- /dev/null
+++ b/dsplib_benchmarks/convol2/55xConvolve2.cmd
@@ -0,0 +1,68 @@
1/**********************************************************/
2/* */
3/* LINKER command file for LEAD3 memory map */
4/* */
5/**********************************************************/
6
7-stack 0x1000 /* PRIMARY STACK SIZE */
8-sysstack 0x0400 /* SECONDARY STACK SIZE */
9-heap 0x1000 /* HEAP AREA SIZE */
10
11MEMORY
12{
13 PAGE 0:
14
15 MMR : origin = 0000000h, length = 00000c0h
16 SPRAM : origin = 00000c0h, length = 0000040
17 DARAM0 : origin = 0000100h, length = 0003F00h
18 DARAM1 : origin = 0004000h, length = 0004000h
19 DARAM2 : origin = 0008000h, length = 0004000h
20 DARAM3 : origin = 000c000h, length = 0004000h
21
22 SARAM01 : origin = 0010000h, length = 0008000h
23 SARAM2 : origin = 0018000h, length = 0004000h
24 SARAM3 : origin = 001c000h, length = 0004000h
25 SARAM4 : origin = 0020000h, length = 0004000h
26 SARAM5 : origin = 0024000h, length = 0004000h
27 SARAM6 : origin = 0028000h, length = 0004000h
28 SARAM7 : origin = 002c000h, length = 0004000h
29 SARAM8 : origin = 0030000h, length = 0004000h
30 SARAM9 : origin = 0034000h, length = 0004000h
31 SARAM10 : origin = 0038000h, length = 0004000h
32 SARAM11 : origin = 003c000h, length = 0004000h
33 SARAM12 : origin = 0040000h, length = 0004000h
34 SARAM13 : origin = 0044000h, length = 0004000h
35 SARAM14 : origin = 0048000h, length = 0004000h
36 SARAM15 : origin = 004c000h, length = 0004000h
37
38 CE0 : origin = 0050000h, length = 03b0000h
39 CE1 : origin = 0400000h, length = 0400000h
40 CE2 : origin = 0800000h, length = 0400000h
41 CE3 : origin = 0c00000h, length = 03f8000h
42
43 PDROM : origin = 0ff8000h, length = 07f00h
44 VECS : origin = 0ffff00h, length = 00100h /* reset vector */
45}
46
47
48SECTIONS
49{
50 vectors (NOLOAD) : {} > DARAM0 PAGE 0 /* interrupt vector table */ /* was VECS */
51 .cinit : {} > SARAM01 PAGE 0
52 .text : {} > SARAM01 PAGE 0
53 isrs : {} > SARAM2 PAGE 0
54
55 .stack : {} > DARAM0 PAGE 0 ALIGN = 4
56 .sysstack: {} > DARAM0 PAGE 0 ALIGN = 4
57 .sysmem : {} > DARAM1 PAGE 0 ALIGN = 4
58 .data : {} > SARAM8 PAGE 0 /* force .data to not be on Page 0 */
59 .bss:saram : {} > DARAM2 PAGE 0 /* must be a different on-chip block than .bss */
60 .bss:saram2 : {} > SARAM3 PAGE 0 /* must be a different on-chip block than .bss */
61 //.bss : {} > SARAM15 PAGE 0 /* for normal testing, move .bss off of DARAM */
62 .bss : {} > DARAM3 PAGE 0 /* for optimal timing tests, put .bss in DARAM */
63 .input : {} > DARAM3 PAGE 0 /* for optimal timing tests, put .input in DARAM */
64 .coeffs : {} > DARAM0 PAGE 0 /* for optimal timing tests, put .coeffs in DARAM */
65 .dbuffer : {} > DARAM1 PAGE 0 /* for optimal timing tests, put .dbuffer in DARAM */
66 .const : {} > SARAM8 PAGE 0
67 .cio : {} > DARAM2 PAGE 0
68}
diff --git a/dsplib_benchmarks/convol2/CONV2_T_ran.C b/dsplib_benchmarks/convol2/CONV2_T_ran.C
new file mode 100644
index 0000000..9e9fa6a
--- /dev/null
+++ b/dsplib_benchmarks/convol2/CONV2_T_ran.C
@@ -0,0 +1,132 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35//=============================================================================
36// Filename: conv2_t.c
37// Version: 1.0
38// Description: test for convolution
39//=============================================================================
40
41#include <stdlib.h>
42#include <math.h>
43#include <tms320.h>
44#include <stdio.h>
45#include <dsplib.h>
46
47#pragma DATA_SECTION(h, ".bss:saram")
48
49//#include "t1.h"
50//#include "t2.h"
51//#include "t3.h"
52//#include "t4.h"
53//#include "t5.h"
54//#include "t6.h"
55//#include "t7.h"
56//#include "t8.h"
57//#include "test.h"
58#include "t4_ran.h"
59#include <time.h>
60
61#define NUMBER_OF_ITERATIONS 1000l
62
63
64
65short test(DATA *r, DATA *rtest, short n, DATA maxerror);
66
67
68
69short eflag=PASS; // error flag (-1: no error; else error)
70
71#pragma DATA_SECTION(r, ".bss:saram2")
72#pragma DATA_ALIGN(r, 2);
73DATA r[NX];
74void clear_ran(short x[], int N)
75{
76 int i ;
77 for (i=0; i<N; i++)
78 {
79 x[i] = 0 ;
80 }
81 return ;
82}
83
84void main()
85{
86 short i;
87 int nx ;
88 long iterations1 ;
89 clock_t t1,t2, t11,t22 ,total1_t ,total2_t,diff ;
90
91
92 //clear
93// for (i = 0; i < NX; i++) r[i] = 0;
94 clear_ran(r,NX) ;
95 t1 = clock() ;
96 t2 = clock() ;
97 diff = t2 - t1 ; /// overhead of calling
98 nx = 80 ;
99 t1 = clock() ;
100
101 //clear
102// for (i = 0; i < NX; i++) r[i] = 0;
103
104 // compute
105 (void)convol2(x_np, h, r, 80, 80);
106 t2 = clock() ;
107
108 total1_t = (double) (t2 - t1-diff) ;
109 printf("80 tap, %d values convuolution Real 16-bit \n" , nx) ;
110 printf(" Convolv2 time (in cycles) %ld \n", total1_t) ;
111
112 // test
113 eflag = test(r, rtest, 80, MAXERROR);
114
115 if(eflag != PASS)
116 {
117 exit(-1);
118 }
119 for (iterations1 = 0; iterations1 < NUMBER_OF_ITERATIONS;iterations1++)
120
121 {
122
123 (void)convol2(x_np, h, r, 80, 80);
124
125 }
126
127
128 printf("Done with %ld iteration \n",iterations1 );
129
130
131 return;
132}
diff --git a/dsplib_benchmarks/convol2/TEST.C b/dsplib_benchmarks/convol2/TEST.C
new file mode 100644
index 0000000..209777d
--- /dev/null
+++ b/dsplib_benchmarks/convol2/TEST.C
@@ -0,0 +1,67 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35//*****************************************************************************
36// Filename: test.c
37// Version: 0.01
38// Description: test r against rtest (array of n elements)
39// Returns eflag
40//-----------------------------------------------------------------------------
41// Revision History:
42// 0.01, R. Piedra, 06/15/98, - Original release
43//*****************************************************************************
44#include <tms320.h>
45
46short test(DATA *r, DATA *rtest, short n, DATA maxerror)
47
48{
49short i;
50short eflag = PASS; // error flag or index into r vector where error
51DATA elevel = 0; // error level at failing eflag index location
52DATA emax = 0; // max error level detected across when NOERROR
53
54for (i=0;i<n;i++)
55 {
56 if ( (elevel = ABSVAL(rtest[i] - r[i])) > maxerror)
57 {
58 eflag =i; // if error --> eflag = index and emax= max error
59 emax = elevel; // if no error --> eflag = -1 and emax = max error
60 break;
61 }
62 else
63 if (elevel>emax) emax = elevel;
64 }
65 // Pass to Host: eflag and emax
66return(eflag);
67}
diff --git a/dsplib_benchmarks/convol2/t1.h b/dsplib_benchmarks/convol2/t1.h
new file mode 100644
index 0000000..e46de7f
--- /dev/null
+++ b/dsplib_benchmarks/convol2/t1.h
@@ -0,0 +1,82 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35#define NX 8
36#define NH 4
37#define FNAME "t1"
38#define MAXERROR 10 // max absolute value
39
40DATA x[NX] ={
4132767,
420,
430,
440,
450,
460,
470,
480,
49};
50
51DATA h[NH] ={
5217562,
53-10491,
544168,
55-547,
56};
57
58DATA rtest[NX+NH-1] ={
5917562,
60-10491,
614168,
62-547,
630,
640,
650,
660,
67};
68
69DATA x_np[NX+NH-1] = {
700,
710,
720,
7332767,
740,
750,
760,
770,
780,
790,
800,
81};
82
diff --git a/dsplib_benchmarks/convol2/t2.h b/dsplib_benchmarks/convol2/t2.h
new file mode 100644
index 0000000..7400688
--- /dev/null
+++ b/dsplib_benchmarks/convol2/t2.h
@@ -0,0 +1,562 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35#define NX 128
36#define NH 64
37#define FNAME "t2"
38#define MAXERROR 10 // max absolute value
39
40DATA x[NX] ={
4132767,
420,
430,
440,
450,
460,
470,
480,
490,
500,
510,
520,
530,
540,
550,
560,
570,
580,
590,
600,
610,
620,
630,
640,
650,
660,
670,
680,
690,
700,
710,
720,
730,
740,
750,
760,
770,
780,
790,
800,
810,
820,
830,
840,
850,
860,
870,
880,
890,
900,
910,
920,
930,
940,
950,
960,
970,
980,
990,
1000,
1010,
1020,
1030,
1040,
1050,
1060,
1070,
1080,
1090,
1100,
1110,
1120,
1130,
1140,
1150,
1160,
1170,
1180,
1190,
1200,
1210,
1220,
1230,
1240,
1250,
1260,
1270,
1280,
1290,
1300,
1310,
1320,
1330,
1340,
1350,
1360,
1370,
1380,
1390,
1400,
1410,
1420,
1430,
1440,
1450,
1460,
1470,
1480,
1490,
1500,
1510,
1520,
1530,
1540,
1550,
1560,
1570,
1580,
1590,
1600,
1610,
1620,
1630,
1640,
1650,
1660,
1670,
1680,
169};
170
171DATA h[NH] ={
172816,
173547,
174-91,
175-1006,
176670,
177-116,
178240,
179609,
180880,
181497,
182-676,
183-197,
184909,
185870,
186-188,
187821,
188-923,
189-308,
190653,
191-1024,
192-754,
193-621,
194-629,
195216,
196-476,
197-629,
198-1012,
199515,
200-115,
201901,
202-71,
203-170,
204722,
20552,
206-621,
207359,
208705,
209-1003,
210378,
211-252,
212692,
2135,
214437,
215-149,
216-408,
217-648,
218-640,
219380,
220-412,
22186,
222-729,
223413,
224-254,
225751,
226738,
227195,
228-8,
229834,
230671,
231302,
232663,
233334,
234-330,
235-439,
236};
237
238DATA rtest[NX+NH-1] ={
239816,
240547,
241-91,
242-1006,
243670,
244-116,
245240,
246609,
247880,
248497,
249-676,
250-197,
251909,
252870,
253-188,
254821,
255-923,
256-308,
257653,
258-1024,
259-754,
260-621,
261-629,
262216,
263-476,
264-629,
265-1012,
266515,
267-115,
268901,
269-71,
270-170,
271722,
27252,
273-621,
274359,
275705,
276-1003,
277378,
278-252,
279692,
2805,
281437,
282-149,
283-408,
284-648,
285-640,
286380,
287-412,
28886,
289-729,
290413,
291-254,
292751,
293738,
294195,
295-8,
296834,
297671,
298302,
299663,
300334,
301-330,
302-439,
3030,
3040,
3050,
3060,
3070,
3080,
3090,
3100,
3110,
3120,
3130,
3140,
3150,
3160,
3170,
3180,
3190,
3200,
3210,
3220,
3230,
3240,
3250,
3260,
3270,
3280,
3290,
3300,
3310,
3320,
3330,
3340,
3350,
3360,
3370,
3380,
3390,
3400,
3410,
3420,
3430,
3440,
3450,
3460,
3470,
3480,
3490,
3500,
3510,
3520,
3530,
3540,
3550,
3560,
3570,
3580,
3590,
3600,
3610,
3620,
3630,
3640,
3650,
3660,
367};
368
369DATA x_np[NX+NH-1] = {
3700,
3710,
3720,
3730,
3740,
3750,
3760,
3770,
3780,
3790,
3800,
3810,
3820,
3830,
3840,
3850,
3860,
3870,
3880,
3890,
3900,
3910,
3920,
3930,
3940,
3950,
3960,
3970,
3980,
3990,
4000,
4010,
4020,
4030,
4040,
4050,
4060,
4070,
4080,
4090,
4100,
4110,
4120,
4130,
4140,
4150,
4160,
4170,
4180,
4190,
4200,
4210,
4220,
4230,
4240,
4250,
4260,
4270,
4280,
4290,
4300,
4310,
4320,
43332767,
4340,
4350,
4360,
4370,
4380,
4390,
4400,
4410,
4420,
4430,
4440,
4450,
4460,
4470,
4480,
4490,
4500,
4510,
4520,
4530,
4540,
4550,
4560,
4570,
4580,
4590,
4600,
4610,
4620,
4630,
4640,
4650,
4660,
4670,
4680,
4690,
4700,
4710,
4720,
4730,
4740,
4750,
4760,
4770,
4780,
4790,
4800,
4810,
4820,
4830,
4840,
4850,
4860,
4870,
4880,
4890,
4900,
4910,
4920,
4930,
4940,
4950,
4960,
4970,
4980,
4990,
5000,
5010,
5020,
5030,
5040,
5050,
5060,
5070,
5080,
5090,
5100,
5110,
5120,
5130,
5140,
5150,
5160,
5170,
5180,
5190,
5200,
5210,
5220,
5230,
5240,
5250,
5260,
5270,
5280,
5290,
5300,
5310,
5320,
5330,
5340,
5350,
5360,
5370,
5380,
5390,
5400,
5410,
5420,
5430,
5440,
5450,
5460,
5470,
5480,
5490,
5500,
5510,
5520,
5530,
5540,
5550,
5560,
5570,
5580,
5590,
5600,
561};
562
diff --git a/dsplib_benchmarks/convol2/t3.h b/dsplib_benchmarks/convol2/t3.h
new file mode 100644
index 0000000..ff89578
--- /dev/null
+++ b/dsplib_benchmarks/convol2/t3.h
@@ -0,0 +1,82 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35#define NX 8
36#define NH 4
37#define FNAME "t3"
38#define MAXERROR 10 // max absolute value
39
40DATA x[NX] ={
41-10408,
422233,
4314884,
44-12499,
4522183,
464461,
47-8493,
4813286,
49};
50
51DATA h[NH] ={
523654,
53-4326,
5415268,
559519,
56};
57
58DATA rtest[NX+NH-1] ={
59-1161,
601622,
61-3485,
62-5342,
6311708,
64-3931,
655169,
6611126,
67};
68
69DATA x_np[NX+NH-1] = {
700,
710,
720,
73-10408,
742233,
7514884,
76-12499,
7722183,
784461,
79-8493,
8013286,
81};
82
diff --git a/dsplib_benchmarks/convol2/t4.h b/dsplib_benchmarks/convol2/t4.h
new file mode 100644
index 0000000..387625c
--- /dev/null
+++ b/dsplib_benchmarks/convol2/t4.h
@@ -0,0 +1,562 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35#define NX 128
36#define NH 64
37#define FNAME "t4"
38#define MAXERROR 10 // max absolute value
39
40DATA x[NX] ={
4119321,
4229939,
431480,
4424912,
45-21434,
4631440,
47-14979,
48-16232,
4924624,
5015552,
51-23822,
52-31998,
5325814,
54-19718,
55-13191,
5610580,
57-14129,
58-2017,
59-28523,
6032003,
615425,
62-5014,
631016,
64-10883,
65-4398,
66-17961,
675230,
6817063,
691954,
709209,
71-19067,
72-7877,
7318568,
7411851,
75-2550,
764445,
7719281,
78-28890,
796741,
80-29474,
81-5546,
82-12780,
8324534,
84-31785,
8517560,
8630857,
8732118,
8818930,
89-4021,
90-111,
91-18746,
929403,
93-11795,
9430152,
9514852,
96-5771,
9716027,
98-15208,
99-3938,
10028401,
10112014,
102-18838,
10322232,
1048440,
105-24002,
106-19194,
1077025,
1088512,
109-8489,
1104924,
111-3184,
112-29892,
113-30987,
114-12276,
115-31926,
116-7605,
11712000,
118-26684,
119-30453,
1207365,
1217113,
122-31736,
123-31697,
124-20312,
1255696,
126-28995,
127-8680,
1288614,
12914262,
13012626,
131-27258,
132-2992,
133-3813,
134-9618,
135-22702,
13611511,
13713055,
13814910,
139-1417,
1403594,
141-24836,
142-3228,
14314148,
14425745,
145-14870,
146-16072,
14723960,
148-17541,
14919980,
15026764,
151-17571,
152-17085,
153-29508,
154-27631,
1559228,
156-20259,
15722535,
158-21372,
159-21575,
16032394,
161-3946,
162-10483,
163-12176,
164-8843,
165-6997,
1665998,
167-24921,
168-30270,
169};
170
171DATA h[NH] ={
172-88,
173783,
174919,
175-499,
176-720,
177789,
178-556,
179308,
180989,
181349,
182784,
183-1039,
184-769,
185675,
186-148,
187826,
188497,
189396,
190-326,
191-708,
192-730,
193-655,
194-165,
195754,
196-21,
197669,
198-84,
199-91,
200-105,
201-186,
202850,
203-1048,
204-430,
205-956,
206409,
207317,
2081023,
209111,
210-212,
211-639,
212265,
213494,
214-263,
215-1039,
216-170,
217537,
218622,
219889,
220730,
221-281,
222255,
223489,
224-649,
225857,
226146,
227279,
228-563,
229103,
230914,
231-350,
232329,
233-229,
234269,
235421,
236};
237
238DATA rtest[NX+NH-1] ={
239-52,
240381,
2411254,
242514,
243-186,
244-112,
245172,
24657,
247558,
248-186,
2493885,
250-290,
251-3870,
2521485,
253179,
254-613,
255706,
2561790,
2571013,
258-3139,
259-1208,
260-732,
261942,
262-2527,
263499,
2641081,
265-2032,
266-243,
2671445,
268870,
269224,
270-1416,
271-887,
272-1676,
27318,
2742711,
275-755,
2764141,
277-1751,
278-1729,
279-2885,
280-680,
2812962,
2821168,
283569,
284-11,
285287,
28660,
287-1040,
2884636,
289776,
290-288,
291-1547,
292629,
2932258,
2942764,
2952265,
296-2618,
297-651,
298465,
29914,
3005215,
301-210,
3023121,
303-3384,
304-4135,
305-3715,
306593,
3073041,
3081129,
3093628,
310-3537,
3112692,
312-6115,
313-460,
314-1810,
315-75,
316595,
317-2497,
318-3921,
319-2139,
3201357,
3211899,
322694,
323-2462,
324-927,
325-956,
326-4961,
327-4144,
3282941,
329-1722,
330-1725,
3311981,
3323227,
333608,
334-590,
3351237,
336387,
337-909,
338-24,
339148,
340-1730,
341594,
3422333,
3437396,
3441215,
345-401,
346-81,
347-2759,
348-164,
3491736,
3503600,
351-1530,
352894,
3531652,
354-2929,
3554403,
356-501,
357-2613,
358-4180,
359-3444,
3601784,
361-3339,
362-2383,
3633612,
364-1300,
365-878,
366-3168,
367};
368
369DATA x_np[NX+NH-1] = {
3700,
3710,
3720,
3730,
3740,
3750,
3760,
3770,
3780,
3790,
3800,
3810,
3820,
3830,
3840,
3850,
3860,
3870,
3880,
3890,
3900,
3910,
3920,
3930,
3940,
3950,
3960,
3970,
3980,
3990,
4000,
4010,
4020,
4030,
4040,
4050,
4060,
4070,
4080,
4090,
4100,
4110,
4120,
4130,
4140,
4150,
4160,
4170,
4180,
4190,
4200,
4210,
4220,
4230,
4240,
4250,
4260,
4270,
4280,
4290,
4300,
4310,
4320,
43319321,
43429939,
4351480,
43624912,
437-21434,
43831440,
439-14979,
440-16232,
44124624,
44215552,
443-23822,
444-31998,
44525814,
446-19718,
447-13191,
44810580,
449-14129,
450-2017,
451-28523,
45232003,
4535425,
454-5014,
4551016,
456-10883,
457-4398,
458-17961,
4595230,
46017063,
4611954,
4629209,
463-19067,
464-7877,
46518568,
46611851,
467-2550,
4684445,
46919281,
470-28890,
4716741,
472-29474,
473-5546,
474-12780,
47524534,
476-31785,
47717560,
47830857,
47932118,
48018930,
481-4021,
482-111,
483-18746,
4849403,
485-11795,
48630152,
48714852,
488-5771,
48916027,
490-15208,
491-3938,
49228401,
49312014,
494-18838,
49522232,
4968440,
497-24002,
498-19194,
4997025,
5008512,
501-8489,
5024924,
503-3184,
504-29892,
505-30987,
506-12276,
507-31926,
508-7605,
50912000,
510-26684,
511-30453,
5127365,
5137113,
514-31736,
515-31697,
516-20312,
5175696,
518-28995,
519-8680,
5208614,
52114262,
52212626,
523-27258,
524-2992,
525-3813,
526-9618,
527-22702,
52811511,
52913055,
53014910,
531-1417,
5323594,
533-24836,
534-3228,
53514148,
53625745,
537-14870,
538-16072,
53923960,
540-17541,
54119980,
54226764,
543-17571,
544-17085,
545-29508,
546-27631,
5479228,
548-20259,
54922535,
550-21372,
551-21575,
55232394,
553-3946,
554-10483,
555-12176,
556-8843,
557-6997,
5585998,
559-24921,
560-30270,
561};
562
diff --git a/dsplib_benchmarks/convol2/t4_ran.h b/dsplib_benchmarks/convol2/t4_ran.h
new file mode 100644
index 0000000..6193f6e
--- /dev/null
+++ b/dsplib_benchmarks/convol2/t4_ran.h
@@ -0,0 +1,578 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35#define NX 128
36#define NH 80
37#define FNAME "t4"
38#define MAXERROR 10 // max absolute value
39
40DATA x[NX] ={
4119321,
4229939,
431480,
4424912,
45-21434,
4631440,
47-14979,
48-16232,
4924624,
5015552,
51-23822,
52-31998,
5325814,
54-19718,
55-13191,
5610580,
57-14129,
58-2017,
59-28523,
6032003,
615425,
62-5014,
631016,
64-10883,
65-4398,
66-17961,
675230,
6817063,
691954,
709209,
71-19067,
72-7877,
7318568,
7411851,
75-2550,
764445,
7719281,
78-28890,
796741,
80-29474,
81-5546,
82-12780,
8324534,
84-31785,
8517560,
8630857,
8732118,
8818930,
89-4021,
90-111,
91-18746,
929403,
93-11795,
9430152,
9514852,
96-5771,
9716027,
98-15208,
99-3938,
10028401,
10112014,
102-18838,
10322232,
1048440,
105-24002,
106-19194,
1077025,
1088512,
109-8489,
1104924,
111-3184,
112-29892,
113-30987,
114-12276,
115-31926,
116-7605,
11712000,
118-26684,
119-30453,
1207365,
1217113,
122-31736,
123-31697,
124-20312,
1255696,
126-28995,
127-8680,
1288614,
12914262,
13012626,
131-27258,
132-2992,
133-3813,
134-9618,
135-22702,
13611511,
13713055,
13814910,
139-1417,
1403594,
141-24836,
142-3228,
14314148,
14425745,
145-14870,
146-16072,
14723960,
148-17541,
14919980,
15026764,
151-17571,
152-17085,
153-29508,
154-27631,
1559228,
156-20259,
15722535,
158-21372,
159-21575,
16032394,
161-3946,
162-10483,
163-12176,
164-8843,
165-6997,
1665998,
167-24921,
168-30270,
169};
170
171DATA h[NH] ={
172 0,
1730,
1740,
1750,
1760,
1770,
1780,
1790,
1800,
1810,
1820,
1830,
1840,
1850,
1860,
1870,
188-88,
189783,
190919,
191-499,
192-720,
193789,
194-556,
195308,
196989,
197349,
198784,
199-1039,
200-769,
201675,
202-148,
203826,
204497,
205396,
206-326,
207-708,
208-730,
209-655,
210-165,
211754,
212-21,
213669,
214-84,
215-91,
216-105,
217-186,
218850,
219-1048,
220-430,
221-956,
222409,
223317,
2241023,
225111,
226-212,
227-639,
228265,
229494,
230-263,
231-1039,
232-170,
233537,
234622,
235889,
236730,
237-281,
238255,
239489,
240-649,
241857,
242146,
243279,
244-563,
245103,
246914,
247-350,
248329,
249-229,
250269,
251421,
252};
253
254DATA rtest[NX+NH-1] ={
255-52,
256381,
2571254,
258514,
259-186,
260-112,
261172,
26257,
263558,
264-186,
2653885,
266-290,
267-3870,
2681485,
269179,
270-613,
271706,
2721790,
2731013,
274-3139,
275-1208,
276-732,
277942,
278-2527,
279499,
2801081,
281-2032,
282-243,
2831445,
284870,
285224,
286-1416,
287-887,
288-1676,
28918,
2902711,
291-755,
2924141,
293-1751,
294-1729,
295-2885,
296-680,
2972962,
2981168,
299569,
300-11,
301287,
30260,
303-1040,
3044636,
305776,
306-288,
307-1547,
308629,
3092258,
3102764,
3112265,
312-2618,
313-651,
314465,
31514,
3165215,
317-210,
3183121,
319-3384,
320-4135,
321-3715,
322593,
3233041,
3241129,
3253628,
326-3537,
3272692,
328-6115,
329-460,
330-1810,
331-75,
332595,
333-2497,
334-3921,
335-2139,
3361357,
3371899,
338694,
339-2462,
340-927,
341-956,
342-4961,
343-4144,
3442941,
345-1722,
346-1725,
3471981,
3483227,
349608,
350-590,
3511237,
352387,
353-909,
354-24,
355148,
356-1730,
357594,
3582333,
3597396,
3601215,
361-401,
362-81,
363-2759,
364-164,
3651736,
3663600,
367-1530,
368894,
3691652,
370-2929,
3714403,
372-501,
373-2613,
374-4180,
375-3444,
3761784,
377-3339,
378-2383,
3793612,
380-1300,
381-878,
382-3168,
383};
384
385DATA x_np[NX+NH-1] = {
3860,
3870,
3880,
3890,
3900,
3910,
3920,
3930,
3940,
3950,
3960,
3970,
3980,
3990,
4000,
4010,
4020,
4030,
4040,
4050,
4060,
4070,
4080,
4090,
4100,
4110,
4120,
4130,
4140,
4150,
4160,
4170,
4180,
4190,
4200,
4210,
4220,
4230,
4240,
4250,
4260,
4270,
4280,
4290,
4300,
4310,
4320,
4330,
4340,
4350,
4360,
4370,
4380,
4390,
4400,
4410,
4420,
4430,
4440,
4450,
4460,
4470,
4480,
44919321,
45029939,
4511480,
45224912,
453-21434,
45431440,
455-14979,
456-16232,
45724624,
45815552,
459-23822,
460-31998,
46125814,
462-19718,
463-13191,
46410580,
465-14129,
466-2017,
467-28523,
46832003,
4695425,
470-5014,
4711016,
472-10883,
473-4398,
474-17961,
4755230,
47617063,
4771954,
4789209,
479-19067,
480-7877,
48118568,
48211851,
483-2550,
4844445,
48519281,
486-28890,
4876741,
488-29474,
489-5546,
490-12780,
49124534,
492-31785,
49317560,
49430857,
49532118,
49618930,
497-4021,
498-111,
499-18746,
5009403,
501-11795,
50230152,
50314852,
504-5771,
50516027,
506-15208,
507-3938,
50828401,
50912014,
510-18838,
51122232,
5128440,
513-24002,
514-19194,
5157025,
5168512,
517-8489,
5184924,
519-3184,
520-29892,
521-30987,
522-12276,
523-31926,
524-7605,
52512000,
526-26684,
527-30453,
5287365,
5297113,
530-31736,
531-31697,
532-20312,
5335696,
534-28995,
535-8680,
5368614,
53714262,
53812626,
539-27258,
540-2992,
541-3813,
542-9618,
543-22702,
54411511,
54513055,
54614910,
547-1417,
5483594,
549-24836,
550-3228,
55114148,
55225745,
553-14870,
554-16072,
55523960,
556-17541,
55719980,
55826764,
559-17571,
560-17085,
561-29508,
562-27631,
5639228,
564-20259,
56522535,
566-21372,
567-21575,
56832394,
569-3946,
570-10483,
571-12176,
572-8843,
573-6997,
5745998,
575-24921,
576-30270,
577};
578
diff --git a/dsplib_benchmarks/convol2/t5.h b/dsplib_benchmarks/convol2/t5.h
new file mode 100644
index 0000000..1e22e61
--- /dev/null
+++ b/dsplib_benchmarks/convol2/t5.h
@@ -0,0 +1,498 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35#define NX 128
36#define NH 32
37#define FNAME "t5"
38#define MAXERROR 10 // max absolute value
39
40DATA x[NX] ={
41-6739,
42-5661,
4310172,
4422123,
45-8415,
46-4899,
476203,
484308,
4914191,
50741,
5118114,
52-699,
53-20585,
5413148,
5531634,
5620095,
5713340,
58-986,
59-25257,
6010803,
61-8823,
62-23591,
634376,
6421168,
6511399,
6632731,
6730253,
68-28911,
69-9155,
703179,
71-15613,
726379,
73-29539,
744656,
7513163,
7630296,
7716417,
7815728,
79-4465,
808799,
8119859,
82-27271,
8329193,
8427259,
856683,
86-16151,
8724474,
88878,
8915246,
90-5097,
9130236,
92-28046,
933500,
94-13633,
9523459,
96-10764,
9711809,
98-29266,
99-9395,
100-112,
101-4297,
1024093,
1037642,
104-25341,
10526099,
10616682,
10719079,
10820640,
10911141,
110-19604,
111-14871,
1128272,
1132415,
114-28869,
115-26938,
116-14988,
117-5960,
118-1702,
11926803,
1206307,
121-11210,
122-1430,
1236368,
124-22188,
12521592,
12629892,
1276261,
128-30884,
12920454,
1307216,
13113205,
132-26726,
133-4923,
134-8155,
135-21879,
13621833,
13722193,
138-3172,
13929923,
140-23125,
14124243,
14217657,
143-3660,
1447904,
14529601,
1469175,
147-16560,
148-9654,
149-20457,
150-614,
151-5946,
152-2391,
1537270,
154-28104,
155-12172,
1567103,
157-21298,
1587931,
159-16649,
1605725,
161396,
162-2309,
1632714,
16428988,
165-10371,
166-6436,
167-12604,
168-5796,
169};
170
171DATA h[NH] ={
172-1118,
173-553,
17415,
1751158,
176-1012,
177-2025,
178-296,
179-174,
180-2533,
181856,
1821169,
183-1140,
184-1244,
1851088,
1861481,
1872537,
188-140,
1892102,
190-256,
1911589,
1921716,
193-1742,
194-554,
195108,
1961138,
197361,
198-205,
199-286,
200-2152,
201-295,
202-698,
203-1031,
204};
205
206DATA rtest[NX+NH-1] ={
207229,
208306,
209-255,
210-1167,
211-74,
2121270,
213745,
214-1776,
215-1375,
216635,
217-1576,
218-1620,
2192058,
220153,
221-4647,
222-4452,
223708,
2243250,
225-448,
226-2550,
227511,
228-2305,
229485,
2302966,
231-2051,
2321150,
2331673,
234297,
2353814,
2364550,
237-1212,
238-4938,
2393888,
2401664,
241-270,
242-1974,
243-3495,
244-3922,
2451943,
2465204,
2473118,
248-3067,
249-3789,
250-731,
251-5444,
252-1585,
253-670,
254-11322,
255-453,
2567705,
2571128,
258-3251,
2591252,
2603795,
261-5835,
262795,
263-553,
2646278,
265-446,
2667153,
2672595,
2681266,
2692060,
2706381,
271-3674,
272146,
273-3916,
2741106,
275-2456,
2763561,
277-4437,
278-2881,
279-8242,
280-1706,
2811355,
282-781,
283-4256,
284-2260,
285178,
2864528,
2872380,
28810589,
2891150,
290-1939,
2911367,
2923131,
293-1914,
294138,
295712,
296-7647,
297-8176,
2986438,
299-1996,
300-6422,
301-2344,
3022275,
303-4766,
304-2394,
3052911,
3066088,
307-3897,
3081876,
3092545,
3102593,
3111785,
3122921,
313-8343,
314-781,
315-1424,
316-3858,
3171776,
318-359,
319-1503,
3203227,
3213672,
3227824,
323-4031,
3241428,
3255954,
3262871,
3274765,
3283335,
3291736,
330-4792,
3312019,
332-1447,
333-3388,
334-2749,
335};
336
337DATA x_np[NX+NH-1] = {
3380,
3390,
3400,
3410,
3420,
3430,
3440,
3450,
3460,
3470,
3480,
3490,
3500,
3510,
3520,
3530,
3540,
3550,
3560,
3570,
3580,
3590,
3600,
3610,
3620,
3630,
3640,
3650,
3660,
3670,
3680,
369-6739,
370-5661,
37110172,
37222123,
373-8415,
374-4899,
3756203,
3764308,
37714191,
378741,
37918114,
380-699,
381-20585,
38213148,
38331634,
38420095,
38513340,
386-986,
387-25257,
38810803,
389-8823,
390-23591,
3914376,
39221168,
39311399,
39432731,
39530253,
396-28911,
397-9155,
3983179,
399-15613,
4006379,
401-29539,
4024656,
40313163,
40430296,
40516417,
40615728,
407-4465,
4088799,
40919859,
410-27271,
41129193,
41227259,
4136683,
414-16151,
41524474,
416878,
41715246,
418-5097,
41930236,
420-28046,
4213500,
422-13633,
42323459,
424-10764,
42511809,
426-29266,
427-9395,
428-112,
429-4297,
4304093,
4317642,
432-25341,
43326099,
43416682,
43519079,
43620640,
43711141,
438-19604,
439-14871,
4408272,
4412415,
442-28869,
443-26938,
444-14988,
445-5960,
446-1702,
44726803,
4486307,
449-11210,
450-1430,
4516368,
452-22188,
45321592,
45429892,
4556261,
456-30884,
45720454,
4587216,
45913205,
460-26726,
461-4923,
462-8155,
463-21879,
46421833,
46522193,
466-3172,
46729923,
468-23125,
46924243,
47017657,
471-3660,
4727904,
47329601,
4749175,
475-16560,
476-9654,
477-20457,
478-614,
479-5946,
480-2391,
4817270,
482-28104,
483-12172,
4847103,
485-21298,
4867931,
487-16649,
4885725,
489396,
490-2309,
4912714,
49228988,
493-10371,
494-6436,
495-12604,
496-5796,
497};
498
diff --git a/dsplib_benchmarks/convol2/t6.h b/dsplib_benchmarks/convol2/t6.h
new file mode 100644
index 0000000..5cf0093
--- /dev/null
+++ b/dsplib_benchmarks/convol2/t6.h
@@ -0,0 +1,466 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35#define NX 128
36#define NH 16
37#define FNAME "t6"
38#define MAXERROR 10 // max absolute value
39
40DATA x[NX] ={
4123058,
4217005,
4329475,
443797,
45-31836,
466303,
4720722,
4831266,
49-18226,
5013348,
511445,
5228370,
5313982,
54-17824,
55-3301,
56-21483,
5730724,
58-9456,
59-29554,
6016733,
6125874,
62-14015,
63-16306,
6428359,
65-24184,
6628889,
6713228,
6822785,
69-19054,
70-2944,
71-27455,
7223011,
734066,
74-11843,
75-8199,
7624103,
77-8378,
78-27939,
79-19672,
80-29525,
814371,
82-24778,
831449,
84-25097,
8517689,
86-8189,
8721193,
88-29712,
896416,
9029435,
91-13842,
9225482,
93-26111,
94-28488,
95-17413,
9628383,
97-28631,
98-15453,
9932737,
100-18876,
101-105,
102-13731,
10311321,
10430014,
10517468,
10610887,
107-24187,
108-26515,
109-31794,
110-13881,
11120757,
11231816,
113-31631,
11420931,
1157938,
1163946,
117-16776,
11821103,
119-15519,
12016622,
12110462,
122-18740,
1236692,
1246877,
12510453,
126-20752,
1278948,
128-21607,
1292595,
1308086,
13112182,
13211622,
13324695,
134-31924,
135-12426,
13618289,
137-12630,
13827962,
13911712,
140-27898,
141-28137,
142-31987,
143-17882,
1441065,
145-2740,
14613317,
1475405,
148603,
149-27900,
150-20105,
151-7891,
152-14652,
15317752,
154-12195,
1559056,
15631887,
157188,
15829340,
15921497,
16027365,
161-25358,
16220455,
16326755,
164-22520,
165-24765,
16617214,
16714535,
1689937,
169};
170
171DATA h[NH] ={
1721883,
1731210,
1742843,
175-1690,
176-598,
177-2129,
178-3444,
179-3107,
1802599,
181-1186,
182-251,
1833068,
184-2013,
1852684,
1861161,
1872901,
188};
189
190DATA rtest[NX+NH-1] ={
1911325,
1921829,
1934323,
1941593,
195-430,
196-3812,
197-5601,
198-1206,
199-967,
2001014,
2011127,
2025486,
203-5899,
2042796,
205-624,
206-384,
207762,
208-1638,
209-65,
210-3809,
2119195,
2122501,
2135947,
214-4731,
2155677,
2165055,
217-7333,
21812116,
219-3509,
220-2867,
221-5970,
2223322,
223-12644,
2242905,
2253889,
226883,
2274162,
228-1940,
229-2407,
230-3841,
2314954,
232-6750,
2336527,
234-993,
2355866,
236-356,
23711153,
238-4409,
2395136,
240-2824,
2412014,
242-1448,
243-8797,
244-1386,
245-10237,
246-3641,
247-7786,
2487771,
249-8703,
25014076,
2513210,
252-6578,
2534927,
2543079,
2553030,
256-321,
2577564,
258-13939,
259-7703,
260-8395,
261-7810,
2625111,
2632866,
26413250,
26590,
2665423,
267-3352,
268-2297,
2692595,
2703771,
271-9221,
272760,
273-2748,
274-8103,
2755244,
276912,
277147,
278-4337,
2797445,
280-8708,
2816894,
2821086,
2835683,
284337,
2852599,
286-6063,
287-5260,
2884489,
289-4371,
2906307,
291-946,
292-8969,
293-6488,
2941339,
295-5552,
29612758,
29710294,
2983581,
2993405,
300-4309,
301-4341,
302-2055,
303-1311,
304-127,
3051769,
30669,
3071726,
3082679,
3091968,
310632,
3111284,
312-6039,
313-9106,
314-1192,
315-14044,
316-2989,
317143,
3183914,
319};
320
321DATA x_np[NX+NH-1] = {
3220,
3230,
3240,
3250,
3260,
3270,
3280,
3290,
3300,
3310,
3320,
3330,
3340,
3350,
3360,
33723058,
33817005,
33929475,
3403797,
341-31836,
3426303,
34320722,
34431266,
345-18226,
34613348,
3471445,
34828370,
34913982,
350-17824,
351-3301,
352-21483,
35330724,
354-9456,
355-29554,
35616733,
35725874,
358-14015,
359-16306,
36028359,
361-24184,
36228889,
36313228,
36422785,
365-19054,
366-2944,
367-27455,
36823011,
3694066,
370-11843,
371-8199,
37224103,
373-8378,
374-27939,
375-19672,
376-29525,
3774371,
378-24778,
3791449,
380-25097,
38117689,
382-8189,
38321193,
384-29712,
3856416,
38629435,
387-13842,
38825482,
389-26111,
390-28488,
391-17413,
39228383,
393-28631,
394-15453,
39532737,
396-18876,
397-105,
398-13731,
39911321,
40030014,
40117468,
40210887,
403-24187,
404-26515,
405-31794,
406-13881,
40720757,
40831816,
409-31631,
41020931,
4117938,
4123946,
413-16776,
41421103,
415-15519,
41616622,
41710462,
418-18740,
4196692,
4206877,
42110453,
422-20752,
4238948,
424-21607,
4252595,
4268086,
42712182,
42811622,
42924695,
430-31924,
431-12426,
43218289,
433-12630,
43427962,
43511712,
436-27898,
437-28137,
438-31987,
439-17882,
4401065,
441-2740,
44213317,
4435405,
444603,
445-27900,
446-20105,
447-7891,
448-14652,
44917752,
450-12195,
4519056,
45231887,
453188,
45429340,
45521497,
45627365,
457-25358,
45820455,
45926755,
460-22520,
461-24765,
46217214,
46314535,
4649937,
465};
466
diff --git a/dsplib_benchmarks/convol2/t7.h b/dsplib_benchmarks/convol2/t7.h
new file mode 100644
index 0000000..34cd51d
--- /dev/null
+++ b/dsplib_benchmarks/convol2/t7.h
@@ -0,0 +1,834 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35#define NX 256
36#define NH 8
37#define FNAME "t7"
38#define MAXERROR 10 // max absolute value
39
40DATA x[NX] ={
41-778,
4232285,
43-8302,
442056,
45-20886,
46127,
47-5100,
4810513,
4911380,
5029971,
51-20194,
52-25480,
534263,
5430747,
55-31212,
5624262,
57-31007,
581279,
59-20166,
6014135,
61-16340,
6228433,
63-23778,
641417,
6525899,
6628992,
67-10808,
68-4105,
69-1891,
70-22983,
71-23864,
722129,
7314797,
74-6639,
75-9279,
76-14072,
7724158,
788284,
79-16963,
8031331,
819207,
82-17705,
8311883,
8410867,
85-23940,
86-31294,
87-15585,
88-25133,
89-28226,
9023129,
91-20950,
92-30644,
9315330,
942393,
95-14679,
96-8621,
97-31924,
9825506,
9923987,
100-16106,
1014553,
102-22331,
1036184,
104-11070,
10510394,
10623831,
1074431,
10831488,
10919125,
110-22768,
11121825,
112-20195,
1139108,
11411075,
11517831,
116-7877,
117-3829,
118-1111,
1197084,
120-21234,
121-32636,
12219020,
123891,
124-18794,
125-25989,
126-22457,
127-6062,
128-6046,
129-29315,
13028954,
131-22940,
132-7578,
133-12383,
134-21723,
13525994,
136-11618,
13715335,
138-5839,
139-6568,
140361,
141-21673,
1421621,
1439253,
144-31707,
14522075,
14619887,
14712962,
148-2498,
149-27354,
15021018,
151-20119,
152-3582,
153-31919,
154-12535,
15524598,
15621971,
157-10939,
15824949,
159-1332,
1603985,
1617596,
16210610,
1637643,
16412133,
165665,
16614022,
167996,
1686938,
16930585,
17021110,
171-11944,
1725747,
173-24236,
174-16099,
17519859,
17610999,
177-31875,
1784035,
179-2978,
18026538,
181-14277,
182-28506,
183-1535,
18431700,
18527679,
1864010,
1879982,
18817870,
189-25810,
190-32698,
1912737,
192-32319,
193-3190,
194-19946,
19518818,
1967770,
197-31751,
19825614,
19917150,
20026675,
20116945,
202-7817,
203-11069,
204267,
2054231,
20617511,
20718341,
208-1043,
20919805,
210-1900,
211-19480,
2125217,
21310911,
21411584,
21529000,
21617704,
21715558,
21824003,
21932174,
220257,
2218459,
22219176,
223-3366,
2241596,
225-21531,
226-24205,
227-18430,
228-25856,
229-23500,
230-2821,
23118883,
232-14349,
233-18037,
23426795,
235-32288,
2365815,
2372760,
23810061,
239-12227,
240-17619,
241-5501,
242-13186,
24311300,
24428721,
245-10280,
2464126,
247-24977,
248-21692,
249-14491,
2503723,
251-945,
25229636,
253-17569,
254-1399,
2551738,
25619183,
257-20120,
25826843,
25927669,
260-31899,
26117534,
26229317,
26320532,
26427776,
265-19727,
26611421,
26727990,
268-10236,
2696192,
2707568,
271-32547,
27231589,
27326182,
27412632,
275-3955,
27613174,
2777190,
278-13115,
27923333,
280-25424,
281-13661,
282-26382,
283-6721,
284-10925,
28529113,
28622187,
287-15832,
288-29957,
289-32383,
2904877,
29115984,
29220108,
2939015,
294-16301,
295-23310,
2969932,
297};
298
299DATA h[NH] ={
3006423,
3014548,
3026195,
303-2737,
304-3329,
305524,
306-4849,
307-4162,
308};
309
310DATA rtest[NX+NH-1] ={
311-153,
3126221,
3132707,
3145419,
315-7996,
316-5085,
317-3627,
318-1899,
3191998,
32010271,
3214824,
322-1598,
323-9272,
324-283,
325596,
3262265,
327-12839,
3286420,
329-5396,
330-5253,
331-909,
3327409,
333-1409,
3345707,
3353111,
3368851,
33710177,
338-1644,
339-8107,
340-4362,
341-10333,
342-14418,
343-1353,
3447433,
3452736,
346-3496,
3476563,
3486719,
3491944,
3503719,
3511791,
3527953,
353-936,
354-8086,
3551565,
356-8932,
357-19666,
358-10471,
359-6259,
360-3156,
361-890,
3627789,
3631604,
3641449,
36512779,
366-1616,
367-12316,
3687362,
3696080,
3706000,
3716034,
372-8757,
3734108,
374-3614,
375-3974,
3765183,
3777452,
37814374,
3797655,
3802373,
3811903,
382-14806,
383-111,
384-4809,
385-970,
3865605,
387-985,
388-4491,
389751,
390-4779,
391-11696,
392-6456,
393-753,
3945682,
395-7056,
396-11851,
39790,
398-848,
399-6065,
4005502,
401973,
40210393,
403-3605,
404-7241,
4058271,
406-1901,
4078975,
4082659,
4091577,
4103158,
411-7784,
412-2818,
413-2309,
414-4040,
4155461,
416464,
41714370,
4189107,
419-9245,
420617,
421-6228,
422-2522,
423-14019,
424-9735,
4254091,
4268423,
42710096,
4289319,
4291777,
43010297,
431-878,
432-5086,
4333437,
4342082,
435-1306,
4363119,
437-983,
438449,
4393624,
4405432,
4414276,
442-1943,
443-12899,
444-7244,
445-7260,
446-3890,
4472018,
448-1299,
449-6389,
45012874,
4512505,
452-7374,
453-5487,
4542511,
45513720,
4569868,
4573540,
4586121,
459516,
460-11908,
461-19447,
462-15747,
463-942,
464-11696,
4653764,
46612073,
4673632,
4686920,
4692610,
47017972,
47111226,
472-2220,
473100,
474-6571,
475-7659,
476-65,
4771907,
4784099,
4797947,
480302,
481-2494,
482-6424,
483-7628,
4844734,
4858070,
4865698,
48712121,
4888490,
4896064,
4903321,
491-1287,
492-6198,
493-3855,
494-2274,
495-14902,
496-13088,
497-11813,
498-14533,
499-9384,
500-4859,
5015494,
5029885,
5036052,
5044535,
505-25,
5068392,
507-7828,
5082865,
5097236,
510-6262,
511-5489,
512-3397,
5131072,
5144920,
5156017,
5169279,
517-6974,
518-6168,
519-9412,
520-9566,
521-120,
52210091,
5234476,
5248740,
525-596,
5263468,
5271090,
5281546,
5292380,
5304860,
5314270,
532-6270,
53312233,
53414640,
535-8374,
5361545,
537863,
538-3372,
539-182,
540-10124,
541-6574,
5424891,
543-3654,
54412091,
5457101,
546-3402,
5473136,
548-157,
549-4270,
550-11421,
551-2239,
552-13823,
553-10757,
554-2938,
5554316,
55610146,
55711903,
558334,
559-14141,
560-7199,
561-767,
5625596,
5639507,
5645952,
565243,
566-3520,
567};
568
569DATA x_np[NX+NH-1] = {
5700,
5710,
5720,
5730,
5740,
5750,
5760,
577-778,
57832285,
579-8302,
5802056,
581-20886,
582127,
583-5100,
58410513,
58511380,
58629971,
587-20194,
588-25480,
5894263,
59030747,
591-31212,
59224262,
593-31007,
5941279,
595-20166,
59614135,
597-16340,
59828433,
599-23778,
6001417,
60125899,
60228992,
603-10808,
604-4105,
605-1891,
606-22983,
607-23864,
6082129,
60914797,
610-6639,
611-9279,
612-14072,
61324158,
6148284,
615-16963,
61631331,
6179207,
618-17705,
61911883,
62010867,
621-23940,
622-31294,
623-15585,
624-25133,
625-28226,
62623129,
627-20950,
628-30644,
62915330,
6302393,
631-14679,
632-8621,
633-31924,
63425506,
63523987,
636-16106,
6374553,
638-22331,
6396184,
640-11070,
64110394,
64223831,
6434431,
64431488,
64519125,
646-22768,
64721825,
648-20195,
6499108,
65011075,
65117831,
652-7877,
653-3829,
654-1111,
6557084,
656-21234,
657-32636,
65819020,
659891,
660-18794,
661-25989,
662-22457,
663-6062,
664-6046,
665-29315,
66628954,
667-22940,
668-7578,
669-12383,
670-21723,
67125994,
672-11618,
67315335,
674-5839,
675-6568,
676361,
677-21673,
6781621,
6799253,
680-31707,
68122075,
68219887,
68312962,
684-2498,
685-27354,
68621018,
687-20119,
688-3582,
689-31919,
690-12535,
69124598,
69221971,
693-10939,
69424949,
695-1332,
6963985,
6977596,
69810610,
6997643,
70012133,
701665,
70214022,
703996,
7046938,
70530585,
70621110,
707-11944,
7085747,
709-24236,
710-16099,
71119859,
71210999,
713-31875,
7144035,
715-2978,
71626538,
717-14277,
718-28506,
719-1535,
72031700,
72127679,
7224010,
7239982,
72417870,
725-25810,
726-32698,
7272737,
728-32319,
729-3190,
730-19946,
73118818,
7327770,
733-31751,
73425614,
73517150,
73626675,
73716945,
738-7817,
739-11069,
740267,
7414231,
74217511,
74318341,
744-1043,
74519805,
746-1900,
747-19480,
7485217,
74910911,
75011584,
75129000,
75217704,
75315558,
75424003,
75532174,
756257,
7578459,
75819176,
759-3366,
7601596,
761-21531,
762-24205,
763-18430,
764-25856,
765-23500,
766-2821,
76718883,
768-14349,
769-18037,
77026795,
771-32288,
7725815,
7732760,
77410061,
775-12227,
776-17619,
777-5501,
778-13186,
77911300,
78028721,
781-10280,
7824126,
783-24977,
784-21692,
785-14491,
7863723,
787-945,
78829636,
789-17569,
790-1399,
7911738,
79219183,
793-20120,
79426843,
79527669,
796-31899,
79717534,
79829317,
79920532,
80027776,
801-19727,
80211421,
80327990,
804-10236,
8056192,
8067568,
807-32547,
80831589,
80926182,
81012632,
811-3955,
81213174,
8137190,
814-13115,
81523333,
816-25424,
817-13661,
818-26382,
819-6721,
820-10925,
82129113,
82222187,
823-15832,
824-29957,
825-32383,
8264877,
82715984,
82820108,
8299015,
830-16301,
831-23310,
8329932,
833};
834
diff --git a/dsplib_benchmarks/convol2/t8.h b/dsplib_benchmarks/convol2/t8.h
new file mode 100644
index 0000000..0f31a2f
--- /dev/null
+++ b/dsplib_benchmarks/convol2/t8.h
@@ -0,0 +1,918 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35#define NX 256
36#define NH 50
37#define FNAME "t8"
38#define MAXERROR 10 // max absolute value
39
40DATA x[NX] ={
41-18559,
429947,
43-29310,
44-17742,
4510972,
46-12391,
47-12673,
4814462,
4929779,
50-24174,
51-28294,
52-24562,
53-21879,
5426962,
55-23839,
567667,
57-15141,
58-18307,
5913952,
603211,
6128924,
62-11150,
6313401,
6429060,
655347,
6624913,
6716358,
68-7890,
6914782,
70-22099,
7129897,
72-19908,
7318100,
747424,
75-22133,
76-30733,
77-13853,
7830871,
7929523,
80-17823,
8130049,
8211787,
83-29166,
846543,
85-7003,
86-18654,
87-20815,
88-27738,
89-32282,
9018925,
91-31603,
9224768,
93-9664,
9414558,
9530700,
96-22567,
97-22089,
98-12230,
99-30843,
100-9331,
101-30987,
10219245,
10332717,
104-25544,
1058034,
106-24080,
107-12450,
108-23935,
109-18133,
110-6780,
111-23912,
112-16970,
11328017,
114-7137,
115738,
116-26680,
117-31346,
118-22313,
11922578,
12024848,
121-20514,
12232198,
12313895,
12424337,
125-1335,
126-262,
127-13925,
128-28775,
129-15567,
130-20562,
13127334,
132-24689,
133-31887,
134-8540,
13513018,
13625516,
1376145,
138-22500,
139-12014,
140-17473,
141-32217,
142-6757,
1439821,
144-27198,
14517616,
14630782,
14714076,
14818478,
149-17199,
150-19941,
151-15518,
15214010,
15331299,
1548986,
1553009,
15622810,
15719798,
15811030,
15911205,
16021013,
16130832,
162-857,
16320805,
1649277,
165-12692,
16610546,
167-9305,
16828717,
169-809,
170-26805,
17111392,
172975,
173-18247,
17414746,
175-28296,
17630416,
177-19159,
178-22209,
1799058,
180-32754,
181-10772,
182-14740,
183-29850,
184-26615,
185-5899,
18620767,
18724282,
188-31290,
18914888,
19022807,
19114981,
19229825,
19310246,
19415879,
195-10161,
19625167,
197-10012,
198-28871,
19914314,
20030029,
201-22490,
202-5482,
203-26606,
204-3281,
20524192,
206-7103,
207-16202,
208-9544,
20915923,
2109884,
21128822,
21221810,
213-1968,
2148510,
215-28955,
2162764,
217-2902,
21823795,
21923278,
220-1819,
22118803,
22210222,
223-32766,
224-24168,
225-336,
226-30256,
227-17863,
228-11280,
22926179,
230-12208,
231-16275,
232-4392,
23322438,
234-20678,
235536,
236-3131,
237-11431,
238-7860,
23925328,
24017121,
24125150,
242-2792,
24319608,
244-23982,
245-28488,
246-8183,
247-8289,
248-1048,
24930766,
250-10351,
251-16208,
2525563,
2531553,
254-22059,
255-892,
256-259,
25722491,
25820066,
25923447,
2607192,
2614307,
2627333,
263-26020,
264-22393,
265-5660,
2663959,
267-15160,
26818628,
269-7349,
270-30738,
2715603,
2723837,
273-19616,
274-27039,
27528392,
276-15770,
277-19388,
278-29544,
2796957,
2803037,
281-26488,
2828978,
283-3739,
284-28418,
285-8239,
286-16443,
28727844,
2888486,
28924792,
2909284,
29119555,
292-4259,
29331531,
294-26480,
2951801,
2962991,
297};
298
299DATA h[NH] ={
300-556,
301-333,
302-1122,
303115,
304866,
305-915,
306-847,
307-1114,
308834,
309-944,
310991,
31137,
3121194,
313-978,
314-1165,
315-309,
316-225,
317-255,
318-204,
319-318,
3201049,
321438,
3221190,
323-869,
324640,
325-325,
326-118,
327-1190,
328160,
329-330,
330754,
331760,
332-302,
333-638,
334-405,
3351205,
336-53,
337-340,
338681,
339-317,
3401031,
341-816,
342-340,
3431075,
34441,
345-1056,
346606,
347-1277,
348265,
3491177,
350};
351
352DATA rtest[NX+NH-1] ={
353314,
35419,
3551031,
356192,
357541,
3581383,
359-671,
3601068,
361469,
3621175,
363-1509,
3642991,
3651874,
366-1193,
367-904,
368-716,
3694697,
3702189,
3711328,
3722492,
373-1940,
374-776,
375-4855,
3762599,
377-1771,
37894,
379-1286,
380-1435,
3811387,
382497,
383462,
384-2700,
385-2128,
386-1508,
387-656,
388652,
3891549,
390-1321,
391-86,
392-3556,
393-1141,
394-456,
3951509,
396-645,
3974069,
398-1701,
399-3726,
400718,
4016354,
402-1288,
4035034,
404-2735,
405-517,
4062039,
407-2355,
408-1831,
409182,
4101848,
4112097,
412533,
413-1510,
4147064,
4153730,
4163246,
417-1520,
4181854,
419-245,
420-5191,
421606,
4221194,
423-2868,
4242784,
4253767,
4265899,
4272791,
4281591,
4294764,
430-2817,
431-2273,
432-2145,
433-1584,
4341964,
4353366,
4361488,
4373019,
438-6909,
4392009,
440-2190,
441-6662,
4427108,
443-2538,
4441019,
4453515,
4464519,
4475210,
448-4828,
449-6348,
450-403,
451-1820,
452-914,
4533300,
454-1874,
4556200,
4564019,
45757,
4583948,
459-2471,
460-1005,
461-3773,
462-3816,
4632369,
464-4127,
465668,
466-2734,
4672105,
4681973,
4693422,
470-740,
471-1861,
472-4969,
473-5190,
474-1020,
475-3495,
476-1425,
477214,
478-315,
479145,
480-179,
481-1892,
482-4315,
483-153,
484-515,
485-1401,
486924,
487403,
488-958,
4891078,
490692,
491-802,
4923337,
493-2838,
494-353,
4953454,
4962590,
4971555,
4983847,
499-2914,
5002756,
5011119,
502-1857,
5032566,
504-3012,
505-3637,
506331,
507-1096,
5084018,
5092006,
5101119,
511-824,
512-2775,
513-1555,
514286,
515763,
5162528,
517-6436,
518679,
5191123,
520-1064,
5212355,
522-1593,
5232797,
5243327,
525-6512,
5262063,
527-1080,
5281004,
5294050,
530-6598,
531-6370,
5321968,
533-130,
5346644,
535-7170,
536441,
5371722,
538-1851,
539-2020,
540-997,
5414327,
5425975,
5431523,
544-208,
545925,
546-1907,
547110,
548-398,
549-1634,
550-3476,
5511834,
5526095,
553-711,
5542089,
5551607,
556-1525,
557285,
558-5002,
559-2037,
560-739,
5614476,
562-726,
5635139,
564-1169,
5653652,
566-1158,
567-2347,
568-3709,
569821,
570-4079,
5711478,
5723645,
5733440,
574-1562,
575-186,
576-1148,
5771016,
578-8985,
579361,
580856,
5813512,
5823025,
5834055,
584-544,
585-467,
586-3230,
587-3126,
588-675,
589822,
5904591,
5917562,
592-870,
5931868,
594-2329,
5955293,
596-1010,
597-3183,
598-1299,
5993314,
600-1214,
601-569,
6021922,
6031047,
6044226,
605-1944,
606-6173,
607853,
608-2717,
609};
610
611DATA x_np[NX+NH-1] = {
6120,
6130,
6140,
6150,
6160,
6170,
6180,
6190,
6200,
6210,
6220,
6230,
6240,
6250,
6260,
6270,
6280,
6290,
6300,
6310,
6320,
6330,
6340,
6350,
6360,
6370,
6380,
6390,
6400,
6410,
6420,
6430,
6440,
6450,
6460,
6470,
6480,
6490,
6500,
6510,
6520,
6530,
6540,
6550,
6560,
6570,
6580,
6590,
6600,
661-18559,
6629947,
663-29310,
664-17742,
66510972,
666-12391,
667-12673,
66814462,
66929779,
670-24174,
671-28294,
672-24562,
673-21879,
67426962,
675-23839,
6767667,
677-15141,
678-18307,
67913952,
6803211,
68128924,
682-11150,
68313401,
68429060,
6855347,
68624913,
68716358,
688-7890,
68914782,
690-22099,
69129897,
692-19908,
69318100,
6947424,
695-22133,
696-30733,
697-13853,
69830871,
69929523,
700-17823,
70130049,
70211787,
703-29166,
7046543,
705-7003,
706-18654,
707-20815,
708-27738,
709-32282,
71018925,
711-31603,
71224768,
713-9664,
71414558,
71530700,
716-22567,
717-22089,
718-12230,
719-30843,
720-9331,
721-30987,
72219245,
72332717,
724-25544,
7258034,
726-24080,
727-12450,
728-23935,
729-18133,
730-6780,
731-23912,
732-16970,
73328017,
734-7137,
735738,
736-26680,
737-31346,
738-22313,
73922578,
74024848,
741-20514,
74232198,
74313895,
74424337,
745-1335,
746-262,
747-13925,
748-28775,
749-15567,
750-20562,
75127334,
752-24689,
753-31887,
754-8540,
75513018,
75625516,
7576145,
758-22500,
759-12014,
760-17473,
761-32217,
762-6757,
7639821,
764-27198,
76517616,
76630782,
76714076,
76818478,
769-17199,
770-19941,
771-15518,
77214010,
77331299,
7748986,
7753009,
77622810,
77719798,
77811030,
77911205,
78021013,
78130832,
782-857,
78320805,
7849277,
785-12692,
78610546,
787-9305,
78828717,
789-809,
790-26805,
79111392,
792975,
793-18247,
79414746,
795-28296,
79630416,
797-19159,
798-22209,
7999058,
800-32754,
801-10772,
802-14740,
803-29850,
804-26615,
805-5899,
80620767,
80724282,
808-31290,
80914888,
81022807,
81114981,
81229825,
81310246,
81415879,
815-10161,
81625167,
817-10012,
818-28871,
81914314,
82030029,
821-22490,
822-5482,
823-26606,
824-3281,
82524192,
826-7103,
827-16202,
828-9544,
82915923,
8309884,
83128822,
83221810,
833-1968,
8348510,
835-28955,
8362764,
837-2902,
83823795,
83923278,
840-1819,
84118803,
84210222,
843-32766,
844-24168,
845-336,
846-30256,
847-17863,
848-11280,
84926179,
850-12208,
851-16275,
852-4392,
85322438,
854-20678,
855536,
856-3131,
857-11431,
858-7860,
85925328,
86017121,
86125150,
862-2792,
86319608,
864-23982,
865-28488,
866-8183,
867-8289,
868-1048,
86930766,
870-10351,
871-16208,
8725563,
8731553,
874-22059,
875-892,
876-259,
87722491,
87820066,
87923447,
8807192,
8814307,
8827333,
883-26020,
884-22393,
885-5660,
8863959,
887-15160,
88818628,
889-7349,
890-30738,
8915603,
8923837,
893-19616,
894-27039,
89528392,
896-15770,
897-19388,
898-29544,
8996957,
9003037,
901-26488,
9028978,
903-3739,
904-28418,
905-8239,
906-16443,
90727844,
9088486,
90924792,
9109284,
91119555,
912-4259,
91331531,
914-26480,
9151801,
9162991,
917};
918
diff --git a/dsplib_benchmarks/convol2/test.h b/dsplib_benchmarks/convol2/test.h
new file mode 100644
index 0000000..1e22e61
--- /dev/null
+++ b/dsplib_benchmarks/convol2/test.h
@@ -0,0 +1,498 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35#define NX 128
36#define NH 32
37#define FNAME "t5"
38#define MAXERROR 10 // max absolute value
39
40DATA x[NX] ={
41-6739,
42-5661,
4310172,
4422123,
45-8415,
46-4899,
476203,
484308,
4914191,
50741,
5118114,
52-699,
53-20585,
5413148,
5531634,
5620095,
5713340,
58-986,
59-25257,
6010803,
61-8823,
62-23591,
634376,
6421168,
6511399,
6632731,
6730253,
68-28911,
69-9155,
703179,
71-15613,
726379,
73-29539,
744656,
7513163,
7630296,
7716417,
7815728,
79-4465,
808799,
8119859,
82-27271,
8329193,
8427259,
856683,
86-16151,
8724474,
88878,
8915246,
90-5097,
9130236,
92-28046,
933500,
94-13633,
9523459,
96-10764,
9711809,
98-29266,
99-9395,
100-112,
101-4297,
1024093,
1037642,
104-25341,
10526099,
10616682,
10719079,
10820640,
10911141,
110-19604,
111-14871,
1128272,
1132415,
114-28869,
115-26938,
116-14988,
117-5960,
118-1702,
11926803,
1206307,
121-11210,
122-1430,
1236368,
124-22188,
12521592,
12629892,
1276261,
128-30884,
12920454,
1307216,
13113205,
132-26726,
133-4923,
134-8155,
135-21879,
13621833,
13722193,
138-3172,
13929923,
140-23125,
14124243,
14217657,
143-3660,
1447904,
14529601,
1469175,
147-16560,
148-9654,
149-20457,
150-614,
151-5946,
152-2391,
1537270,
154-28104,
155-12172,
1567103,
157-21298,
1587931,
159-16649,
1605725,
161396,
162-2309,
1632714,
16428988,
165-10371,
166-6436,
167-12604,
168-5796,
169};
170
171DATA h[NH] ={
172-1118,
173-553,
17415,
1751158,
176-1012,
177-2025,
178-296,
179-174,
180-2533,
181856,
1821169,
183-1140,
184-1244,
1851088,
1861481,
1872537,
188-140,
1892102,
190-256,
1911589,
1921716,
193-1742,
194-554,
195108,
1961138,
197361,
198-205,
199-286,
200-2152,
201-295,
202-698,
203-1031,
204};
205
206DATA rtest[NX+NH-1] ={
207229,
208306,
209-255,
210-1167,
211-74,
2121270,
213745,
214-1776,
215-1375,
216635,
217-1576,
218-1620,
2192058,
220153,
221-4647,
222-4452,
223708,
2243250,
225-448,
226-2550,
227511,
228-2305,
229485,
2302966,
231-2051,
2321150,
2331673,
234297,
2353814,
2364550,
237-1212,
238-4938,
2393888,
2401664,
241-270,
242-1974,
243-3495,
244-3922,
2451943,
2465204,
2473118,
248-3067,
249-3789,
250-731,
251-5444,
252-1585,
253-670,
254-11322,
255-453,
2567705,
2571128,
258-3251,
2591252,
2603795,
261-5835,
262795,
263-553,
2646278,
265-446,
2667153,
2672595,
2681266,
2692060,
2706381,
271-3674,
272146,
273-3916,
2741106,
275-2456,
2763561,
277-4437,
278-2881,
279-8242,
280-1706,
2811355,
282-781,
283-4256,
284-2260,
285178,
2864528,
2872380,
28810589,
2891150,
290-1939,
2911367,
2923131,
293-1914,
294138,
295712,
296-7647,
297-8176,
2986438,
299-1996,
300-6422,
301-2344,
3022275,
303-4766,
304-2394,
3052911,
3066088,
307-3897,
3081876,
3092545,
3102593,
3111785,
3122921,
313-8343,
314-781,
315-1424,
316-3858,
3171776,
318-359,
319-1503,
3203227,
3213672,
3227824,
323-4031,
3241428,
3255954,
3262871,
3274765,
3283335,
3291736,
330-4792,
3312019,
332-1447,
333-3388,
334-2749,
335};
336
337DATA x_np[NX+NH-1] = {
3380,
3390,
3400,
3410,
3420,
3430,
3440,
3450,
3460,
3470,
3480,
3490,
3500,
3510,
3520,
3530,
3540,
3550,
3560,
3570,
3580,
3590,
3600,
3610,
3620,
3630,
3640,
3650,
3660,
3670,
3680,
369-6739,
370-5661,
37110172,
37222123,
373-8415,
374-4899,
3756203,
3764308,
37714191,
378741,
37918114,
380-699,
381-20585,
38213148,
38331634,
38420095,
38513340,
386-986,
387-25257,
38810803,
389-8823,
390-23591,
3914376,
39221168,
39311399,
39432731,
39530253,
396-28911,
397-9155,
3983179,
399-15613,
4006379,
401-29539,
4024656,
40313163,
40430296,
40516417,
40615728,
407-4465,
4088799,
40919859,
410-27271,
41129193,
41227259,
4136683,
414-16151,
41524474,
416878,
41715246,
418-5097,
41930236,
420-28046,
4213500,
422-13633,
42323459,
424-10764,
42511809,
426-29266,
427-9395,
428-112,
429-4297,
4304093,
4317642,
432-25341,
43326099,
43416682,
43519079,
43620640,
43711141,
438-19604,
439-14871,
4408272,
4412415,
442-28869,
443-26938,
444-14988,
445-5960,
446-1702,
44726803,
4486307,
449-11210,
450-1430,
4516368,
452-22188,
45321592,
45429892,
4556261,
456-30884,
45720454,
4587216,
45913205,
460-26726,
461-4923,
462-8155,
463-21879,
46421833,
46522193,
466-3172,
46729923,
468-23125,
46924243,
47017657,
471-3660,
4727904,
47329601,
4749175,
475-16560,
476-9654,
477-20457,
478-614,
479-5946,
480-2391,
4817270,
482-28104,
483-12172,
4847103,
485-21298,
4867931,
487-16649,
4885725,
489396,
490-2309,
4912714,
49228988,
493-10371,
494-6436,
495-12604,
496-5796,
497};
498
diff --git a/dsplib_benchmarks/correlation/ARAW_T.C b/dsplib_benchmarks/correlation/ARAW_T.C
new file mode 100644
index 0000000..e675205
--- /dev/null
+++ b/dsplib_benchmarks/correlation/ARAW_T.C
@@ -0,0 +1,141 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35//=============================================================================
36// Filename: araw_t.c
37// Version: 2.00
38// Description: test for real auto-correlation (raw)
39//=============================================================================
40
41#include <stdlib.h>
42#include <math.h>
43#include <tms320.h>
44#include <stdio.h>
45#include <dsplib.h>
46#include <dsplib_c.h>
47
48//#include "t1.h"
49//#include "t2.h" // 64, 64
50//#include "t3.h" // 128,128
51//#include "t4.h" // 16,1
52//#include "t5.h"
53//#include "t6.h"
54//#include "t7.h"
55//#include "t8.h" // 16,15
56//#include "t9.h" // 5,5
57//#include "test.h" // default
58#include "t3_ran.h"
59#include <time.h>
60
61#define NUMBER_OF_ITERATIONS 1000000l
62
63
64
65
66short test(DATA *r, DATA *rtest, short n, DATA maxerror);
67
68short eflag=PASS; // error flag (-1: no error; else error)
69
70DATA r[NLAGS];
71
72//array for C model
73DATA CMODELERROR=0;
74DATA rc[NLAGS];
75
76void clear_ran(short x[], int N)
77{
78 int i ;
79 for (i=0; i<N; i++)
80 {
81 x[i] = 0 ;
82 }
83 return ;
84}
85
86
87void main()
88{
89 short i;
90 int nx ;
91 long iterations1 ;
92 clock_t t1,t2, t11,t22 ,total1_t ,total2_t,diff ;
93
94
95 //clear
96// for (i = 0; i < NX; i++) r[i] = 0;
97 clear_ran(r,NLAGS) ;
98 t1 = clock() ;
99 t2 = clock() ;
100 diff = t2 - t1 ; /// overhead of calling
101 nx = 80 ;
102 t1 = clock() ;
103
104 //clear
105// for (i = 0; i < NLAGS; i++) r[i] = 0;
106
107 // compute
108 (void)acorr(x, r, 80, 80, raw);
109
110
111 t2 = clock() ;
112
113 total1_t = (double) (t2 - t1-diff) ;
114 printf("80 tap, %d values Auto-Correlation Real 16-bit \n" , nx) ;
115 printf(" time (in cycles) %ld \n", total1_t) ;
116
117 acorr_c(x, rc, 80, 80, raw);
118
119 // test
120 eflag = test(r, rc, nx, MAXERROR);
121
122 if(eflag != PASS)
123 {
124 exit(-1);
125 }
126
127
128 for (iterations1 = 0; iterations1 < NUMBER_OF_ITERATIONS;iterations1++)
129
130 {
131
132 (void)acorr(x, r, 80, NLAGS, raw);
133
134 }
135
136
137 printf("Done with %ld iteration \n",iterations1 );
138
139
140 return;
141}
diff --git a/dsplib_benchmarks/correlation/TEST.C b/dsplib_benchmarks/correlation/TEST.C
new file mode 100644
index 0000000..d946f23
--- /dev/null
+++ b/dsplib_benchmarks/correlation/TEST.C
@@ -0,0 +1,68 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35//*****************************************************************************
36// Filename: test.c
37// Version: 0.01
38// Description: test r against rtest (array of n elements)
39// Returns eflag
40//-----------------------------------------------------------------------------
41// Revision History:
42// 0.01, R. Piedra, 06/15/98, - Original release
43//*****************************************************************************
44#include <tms320.h>
45
46short test(DATA *r, DATA *rtest, short n, DATA maxerror)
47
48{
49short i;
50short eflag = PASS; // error flag or index into r vector where error
51DATA elevel = 0; // error level at failing eflag index location
52DATA emax = 0; // max error level detected across when NOERROR
53
54for (i=0;i<n;i++)
55 {
56 if ( (elevel = ABSVAL(rtest[i] - r[i])) > maxerror)
57 {
58 eflag =i; // if error --> eflag = index and emax= max error
59 emax = elevel; // if no error --> eflag = -1 and emax = max error
60 printf(" result %d reference %d i %d \n", r[i], rtest[i], i) ;
61 break;
62 }
63 else
64 if (elevel>emax) emax = elevel;
65 }
66 // Pass to Host: eflag and emax
67return(eflag);
68}
diff --git a/dsplib_benchmarks/correlation/araw_c.c b/dsplib_benchmarks/correlation/araw_c.c
new file mode 100644
index 0000000..e9f61bd
--- /dev/null
+++ b/dsplib_benchmarks/correlation/araw_c.c
@@ -0,0 +1,186 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35//;***********************************************************
36//; Version 3.00.00
37//;***********************************************************
38//; Function: acorr_raw
39//; Processor: C55xx
40//; Description: calculates positive raw auto-correlation
41//;
42//; Usage: short acorr_raw(DATA *x, DATA *r, ushort nx, ushort nr)
43//;
44//; 05/31/2012: Fixed for odd values of nr
45//;****************************************************************
46
47
48#include <tms320.h>
49
50#define BIAS 0
51
52void
53#if BIAS
54acorr_c_bias
55#else
56acorr_c_raw
57#endif
58 (DATA *x, DATA *r, ushort nx, ushort nr)
59{
60
61 DATA *x_ptr,*xb_ptr,*r_ptr,*x2_save,*x_save,*cdp;
62
63 short counter,loop_count,i,j,csr;
64#if BIAS
65 short n_inverse, t2, t3;
66 long nxs;
67#endif
68 long ac0,ac3,ac1,ac2;
69 DATA rSUBnr;
70 short loop_count2;
71 short mac2flag; // do 2 macs at the end
72 short mac1flag; // do 1 mac at the end (note: this can only be true if if mac2flag is set)
73 short restoreFlag; // restore original r[nr] at end
74
75 //initialize some of the variables
76 //loop_count = MIN(((nr+1)>>1, ((nx-1)>>1) - 1; // number of passes thru RPTBLOCAL block minus 1
77 loop_count = (nr+1)>>1;
78 loop_count2 = ((nx-1)>>1);
79 if (loop_count > loop_count2)
80 loop_count = loop_count2;
81 loop_count--;
82 mac2flag = (((nx & 1) == 0) && ((nx - nr) <= 1)); // do 2 macs at the end
83 mac1flag = (nx == nr); // do 1 mac at the end
84 restoreFlag = (nr & 1) && (!(mac2flag | mac1flag)); // restore original r[nr] at end
85 if (restoreFlag) {
86 rSUBnr = r[nr]; // save original value if it needs to be restored
87 }
88
89 x_save=x;
90 x2_save=x;
91 r_ptr=r;
92
93#if BIAS
94 //prepare for scaling
95 ac0=32767;
96 nxs=((long)(nx))<<15;
97 for(i=0;i<16;i++){
98 if(ac0<nxs)
99 ac0<<=1;
100 else
101 ac0=((ac0-nxs)<<1)+1;
102 }
103 n_inverse=(short)(ac0+1);
104#endif
105
106 //generic pointer and loop setup
107 cdp=x_save;
108 x_ptr=x2_save;
109 xb_ptr=x_ptr+1;
110 counter=nx-3;
111 csr = counter;
112 for(i=0;i<=loop_count;i++) {
113 ac1 = (long)(*x_ptr) * (*cdp);
114 x_ptr++;
115 ac0 = ac1<<1;
116 ac2 = (long)(*xb_ptr) * (*cdp);
117 xb_ptr++;cdp++;
118 ac3=ac2<<1;
119 for(j=0;j<=csr;j++){
120 ac1 = (long)(*x_ptr) * (*cdp);
121 x_ptr++;
122 ac0 += ac1<<1;
123 ac2 = (long)(*xb_ptr) * (*cdp);
124 xb_ptr++;cdp++;
125 ac3 += ac2<<1;
126 }
127 csr-=2;
128 ac1 = (long)(*x_ptr) * (*cdp);
129 ac0 += ac1<<1;
130#if BIAS
131 t2=(short)(ac3>>16);
132 ac3 = (long)(n_inverse)*t2;
133 ac3<<=1;
134#endif
135 ac3 += (long)0x8000;
136 ac3>>=16;
137#if BIAS
138 t3=(short)(ac0>>16);
139 ac0 = (long)(n_inverse)*t3;
140 ac0<<=1;
141#endif
142 ac0 += (long)0x8000;
143 ac0>>=16;
144 x2_save+=2;
145 *r_ptr++ = (short)ac0;
146 cdp=x_save;
147 *r_ptr++ = (short)ac3;
148 x_ptr=x2_save;
149 xb_ptr=x_ptr+1;
150 }
151
152 if (mac2flag) {
153 ac1 = (long)(*x_ptr) * (*cdp);
154 x_ptr++;cdp++;
155 ac0 = ac1<<1;
156 ac1 = (long)(*x_ptr) * (*cdp);
157 cdp--;
158 ac0 += ac1<<1;
159#if BIAS
160 t3=(short)(ac0>>16);
161 ac0 = (long)(n_inverse) * t3;
162 ac0<<=1;
163#endif
164 ac0 += (long)0x8000;
165 ac0>>=16;
166 *r_ptr++=(short)ac0;
167 }
168
169 if(mac1flag){
170 ac1 = (long)(*x_ptr) * (*cdp);
171 ac0=ac1<<1;
172#if BIAS
173 t3=(short)(ac0>>16);
174 ac0 = (long)(n_inverse) * t3;
175 ac0<<=1;
176#endif
177 ac0 += (long)0x8000;
178 ac0>>=16;
179 *r_ptr++=(short)ac0;
180 }
181 if(restoreFlag) {
182 r[nr] = rSUBnr; /* restore the overwritten value */
183 }
184 //finish
185 return;
186}
diff --git a/dsplib_benchmarks/correlation/correlation.cmd b/dsplib_benchmarks/correlation/correlation.cmd
new file mode 100644
index 0000000..94bf6e6
--- /dev/null
+++ b/dsplib_benchmarks/correlation/correlation.cmd
@@ -0,0 +1,68 @@
1/**********************************************************/
2/* */
3/* LINKER command file for LEAD3 memory map */
4/* */
5/**********************************************************/
6
7-stack 0x1000 /* PRIMARY STACK SIZE */
8-sysstack 0x0400 /* SECONDARY STACK SIZE */
9-heap 0x1000 /* HEAP AREA SIZE */
10
11MEMORY
12{
13 PAGE 0:
14
15 MMR : origin = 0000000h, length = 00000c0h
16 SPRAM : origin = 00000c0h, length = 0000040
17 DARAM0 : origin = 0000100h, length = 0003F00h
18 DARAM1 : origin = 0004000h, length = 0004000h
19 DARAM2 : origin = 0008000h, length = 0004000h
20 DARAM3 : origin = 000c000h, length = 0004000h
21
22 SARAM01 : origin = 0010000h, length = 0008000h
23 SARAM2 : origin = 0018000h, length = 0004000h
24 SARAM3 : origin = 001c000h, length = 0004000h
25 SARAM4 : origin = 0020000h, length = 0004000h
26 SARAM5 : origin = 0024000h, length = 0004000h
27 SARAM6 : origin = 0028000h, length = 0004000h
28 SARAM7 : origin = 002c000h, length = 0004000h
29 SARAM8 : origin = 0030000h, length = 0004000h
30 SARAM9 : origin = 0034000h, length = 0004000h
31 SARAM10 : origin = 0038000h, length = 0004000h
32 SARAM11 : origin = 003c000h, length = 0004000h
33 SARAM12 : origin = 0040000h, length = 0004000h
34 SARAM13 : origin = 0044000h, length = 0004000h
35 SARAM14 : origin = 0048000h, length = 0004000h
36 SARAM15 : origin = 004c000h, length = 0004000h
37
38 CE0 : origin = 0050000h, length = 03b0000h
39 CE1 : origin = 0400000h, length = 0400000h
40 CE2 : origin = 0800000h, length = 0400000h
41 CE3 : origin = 0c00000h, length = 03f8000h
42
43 PDROM : origin = 0ff8000h, length = 07f00h
44 VECS : origin = 0ffff00h, length = 00100h /* reset vector */
45}
46
47
48SECTIONS
49{
50 vectors (NOLOAD) : {} > DARAM0 PAGE 0 /* interrupt vector table */ /* was VECS */
51 .cinit : {} > SARAM01 PAGE 0
52 .text : {} > SARAM01 PAGE 0
53 isrs : {} > SARAM2 PAGE 0
54
55 .stack : {} > DARAM0 PAGE 0 ALIGN = 4
56 .sysstack: {} > DARAM0 PAGE 0 ALIGN = 4
57 .sysmem : {} > DARAM1 PAGE 0 ALIGN = 4
58 .data : {} > SARAM8 PAGE 0 /* force .data to not be on Page 0 */
59 .bss:saram : {} > DARAM2 PAGE 0 /* must be a different on-chip block than .bss */
60 .bss:saram2 : {} > SARAM3 PAGE 0 /* must be a different on-chip block than .bss */
61 //.bss : {} > SARAM15 PAGE 0 /* for normal testing, move .bss off of DARAM */
62 .bss : {} > DARAM3 PAGE 0 /* for optimal timing tests, put .bss in DARAM */
63 .input : {} > DARAM3 PAGE 0 /* for optimal timing tests, put .input in DARAM */
64 .coeffs : {} > DARAM0 PAGE 0 /* for optimal timing tests, put .coeffs in DARAM */
65 .dbuffer : {} > DARAM1 PAGE 0 /* for optimal timing tests, put .dbuffer in DARAM */
66 .const : {} > SARAM8 PAGE 0
67 .cio : {} > DARAM2 PAGE 0
68} \ No newline at end of file
diff --git a/dsplib_benchmarks/correlation/t1.h b/dsplib_benchmarks/correlation/t1.h
new file mode 100644
index 0000000..f2513a1
--- /dev/null
+++ b/dsplib_benchmarks/correlation/t1.h
@@ -0,0 +1,61 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35#define NX 8
36#define NLAGS 8 // max NLAGS = N
37#define FNAME "t1"
38#define MAXERROR 10 // max absolute error allowed
39
40DATA x[NX] ={
41-10433,
42-9770,
433262,
44-7163,
457967,
46-7556,
47-7628,
4811453,
49};
50
51DATA rtest[NLAGS] ={ // lag0, lag1,...
5217583,
53-3062,
54-954,
553605,
56-3547,
575820,
58-986,
59-3646,
60};
61
diff --git a/dsplib_benchmarks/correlation/t2.h b/dsplib_benchmarks/correlation/t2.h
new file mode 100644
index 0000000..a3009e8
--- /dev/null
+++ b/dsplib_benchmarks/correlation/t2.h
@@ -0,0 +1,173 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35#define NX 64
36#define NLAGS 64 // max NLAGS = N
37#define FNAME "t2"
38#define MAXERROR 10 // max absolute error allowed
39
40DATA x[NX] ={
41-494,
42-1311,
43-1522,
44-1106,
45-875,
46749,
47-3116,
48-3784,
49-340,
503029,
513557,
52-1930,
53-2783,
543054,
55-2148,
561194,
573824,
581351,
593034,
60-4015,
61-2974,
622611,
63-573,
643197,
651924,
661534,
67-1261,
68-2736,
69-2822,
70-2531,
71-636,
722916,
73-80,
742588,
75-322,
76-350,
77-404,
78-720,
793289,
80-4051,
81-1660,
82-3694,
831582,
841229,
853956,
86431,
87-819,
88-2468,
891025,
901911,
91-1017,
92-4016,
93-657,
942078,
952407,
963440,
972823,
98-1084,
99989,
1001894,
101-2508,
1023316,
103566,
1041079,
105};
106
107DATA rtest[NLAGS] ={ // lag0, lag1,...
10810394,
1091450,
110-670,
111-2423,
112-2357,
113500,
114399,
115815,
1161164,
117-1014,
118-133,
119188,
120631,
121838,
122-1121,
123-180,
124-1646,
125-378,
126-855,
127-554,
128459,
1291402,
130441,
131569,
132-831,
13376,
134-895,
135-399,
136789,
137-508,
138-573,
13913,
140596,
141724,
142-56,
143-71,
144-716,
145-348,
146813,
147961,
1481566,
149-576,
150-1697,
151256,
152306,
1531377,
154909,
155-857,
156-80,
157-276,
158-243,
159-146,
160-384,
161-86,
162-302,
163-648,
164-145,
165-205,
166-76,
167-130,
168-158,
169-123,
170-52,
171-16,
172};
173
diff --git a/dsplib_benchmarks/correlation/t3.h b/dsplib_benchmarks/correlation/t3.h
new file mode 100644
index 0000000..b20b251
--- /dev/null
+++ b/dsplib_benchmarks/correlation/t3.h
@@ -0,0 +1,301 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35#define NX 128
36#define NLAGS 128 // max NLAGS = N
37#define FNAME "t3"
38#define MAXERROR 10 // max absolute error allowed
39
40DATA x[NX] ={
41-1539,
42282,
432499,
44-955,
45900,
46-627,
47737,
481153,
49-596,
50-501,
51899,
521955,
53-744,
54-433,
55548,
56380,
571254,
5865,
591601,
60-62,
61-1820,
621162,
632796,
641776,
651179,
66-88,
67-2233,
68954,
69-780,
70-2086,
71386,
721871,
731007,
742893,
752674,
76-2556,
77-810,
78281,
79-1380,
80563,
81-2611,
82411,
831163,
842677,
851451,
861390,
87-395,
88777,
891755,
90-2411,
912580,
922409,
93590,
94-1428,
952163,
9677,
971347,
98-451,
992672,
100-2479,
101309,
102-1205,
1032073,
104-952,
1051043,
106-2587,
107-831,
108-10,
109-380,
110361,
111675,
112-2240,
1132306,
1141474,
1151686,
1161824,
117984,
118-1733,
119-1315,
120731,
121213,
122-2552,
123-2381,
124-1325,
125-527,
126-151,
1272369,
128557,
129-991,
130-127,
131562,
132-1962,
1331908,
1342642,
135553,
136-2730,
1371807,
138637,
1391167,
140-2363,
141-436,
142-721,
143-1934,
1441929,
1451961,
146-281,
1472644,
148-2044,
1492142,
1501560,
151-324,
152698,
1532616,
154811,
155-1464,
156-854,
157-1809,
158-55,
159-526,
160-212,
161642,
162-2485,
163-1076,
164627,
165-1883,
166701,
167-1472,
168506,
169};
170
171DATA rtest[NLAGS] ={ // lag0, lag1,...
1729141,
17311,
17446,
175-147,
176237,
177-1017,
178913,
179-606,
18013,
181-1109,
182474,
183499,
1841183,
185-1005,
186606,
187-1231,
18835,
1891032,
190-72,
191803,
192975,
193161,
194-144,
19581,
196297,
197-19,
198-197,
199-867,
200-235,
201470,
202379,
20357,
204372,
205-142,
206-32,
207-157,
2081302,
209-452,
210-523,
211496,
212775,
213195,
2141498,
215-163,
216-444,
217-220,
218496,
219-1062,
22044,
221-487,
222250,
22318,
224209,
225932,
22652,
227307,
228578,
229-598,
23037,
23168,
232-260,
233642,
234717,
235121,
236-415,
237700,
238-730,
239-203,
240-794,
241373,
242108,
243-151,
244-60,
245-315,
246-397,
247530,
248-104,
249-593,
2501,
251163,
252-440,
253383,
254490,
255-490,
256-278,
257-12,
258548,
259256,
26058,
261-77,
262490,
2636,
264-148,
265-465,
26653,
267341,
268164,
269-121,
270-50,
271-164,
272-508,
273227,
274530,
275-557,
27690,
277-248,
278-9,
279161,
280-268,
28118,
282-50,
283-28,
284-222,
285-58,
286-132,
287-139,
288127,
289-113,
290104,
291-135,
292-232,
293269,
294-158,
29565,
296-33,
297-7,
29873,
299-24,
300};
301
diff --git a/dsplib_benchmarks/correlation/t3_ran.h b/dsplib_benchmarks/correlation/t3_ran.h
new file mode 100644
index 0000000..b20b251
--- /dev/null
+++ b/dsplib_benchmarks/correlation/t3_ran.h
@@ -0,0 +1,301 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35#define NX 128
36#define NLAGS 128 // max NLAGS = N
37#define FNAME "t3"
38#define MAXERROR 10 // max absolute error allowed
39
40DATA x[NX] ={
41-1539,
42282,
432499,
44-955,
45900,
46-627,
47737,
481153,
49-596,
50-501,
51899,
521955,
53-744,
54-433,
55548,
56380,
571254,
5865,
591601,
60-62,
61-1820,
621162,
632796,
641776,
651179,
66-88,
67-2233,
68954,
69-780,
70-2086,
71386,
721871,
731007,
742893,
752674,
76-2556,
77-810,
78281,
79-1380,
80563,
81-2611,
82411,
831163,
842677,
851451,
861390,
87-395,
88777,
891755,
90-2411,
912580,
922409,
93590,
94-1428,
952163,
9677,
971347,
98-451,
992672,
100-2479,
101309,
102-1205,
1032073,
104-952,
1051043,
106-2587,
107-831,
108-10,
109-380,
110361,
111675,
112-2240,
1132306,
1141474,
1151686,
1161824,
117984,
118-1733,
119-1315,
120731,
121213,
122-2552,
123-2381,
124-1325,
125-527,
126-151,
1272369,
128557,
129-991,
130-127,
131562,
132-1962,
1331908,
1342642,
135553,
136-2730,
1371807,
138637,
1391167,
140-2363,
141-436,
142-721,
143-1934,
1441929,
1451961,
146-281,
1472644,
148-2044,
1492142,
1501560,
151-324,
152698,
1532616,
154811,
155-1464,
156-854,
157-1809,
158-55,
159-526,
160-212,
161642,
162-2485,
163-1076,
164627,
165-1883,
166701,
167-1472,
168506,
169};
170
171DATA rtest[NLAGS] ={ // lag0, lag1,...
1729141,
17311,
17446,
175-147,
176237,
177-1017,
178913,
179-606,
18013,
181-1109,
182474,
183499,
1841183,
185-1005,
186606,
187-1231,
18835,
1891032,
190-72,
191803,
192975,
193161,
194-144,
19581,
196297,
197-19,
198-197,
199-867,
200-235,
201470,
202379,
20357,
204372,
205-142,
206-32,
207-157,
2081302,
209-452,
210-523,
211496,
212775,
213195,
2141498,
215-163,
216-444,
217-220,
218496,
219-1062,
22044,
221-487,
222250,
22318,
224209,
225932,
22652,
227307,
228578,
229-598,
23037,
23168,
232-260,
233642,
234717,
235121,
236-415,
237700,
238-730,
239-203,
240-794,
241373,
242108,
243-151,
244-60,
245-315,
246-397,
247530,
248-104,
249-593,
2501,
251163,
252-440,
253383,
254490,
255-490,
256-278,
257-12,
258548,
259256,
26058,
261-77,
262490,
2636,
264-148,
265-465,
26653,
267341,
268164,
269-121,
270-50,
271-164,
272-508,
273227,
274530,
275-557,
27690,
277-248,
278-9,
279161,
280-268,
28118,
282-50,
283-28,
284-222,
285-58,
286-132,
287-139,
288127,
289-113,
290104,
291-135,
292-232,
293269,
294-158,
29565,
296-33,
297-7,
29873,
299-24,
300};
301
diff --git a/dsplib_benchmarks/correlation/t4.h b/dsplib_benchmarks/correlation/t4.h
new file mode 100644
index 0000000..5b834cc
--- /dev/null
+++ b/dsplib_benchmarks/correlation/t4.h
@@ -0,0 +1,62 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35#define NX 16
36#define NLAGS 1 // max NLAGS = N
37#define FNAME "t4"
38#define MAXERROR 10 // max absolute error allowed
39
40DATA x[NX] ={
4199,
42-578,
43678,
447247,
45-2593,
46-1609,
47-3151,
48-1449,
49-3508,
50-1735,
5149,
523636,
53-3176,
54-6355,
55-930,
56-545,
57};
58
59DATA rtest[NLAGS] ={ // lag0, lag1,...
604725,
61};
62
diff --git a/dsplib_benchmarks/correlation/t5.h b/dsplib_benchmarks/correlation/t5.h
new file mode 100644
index 0000000..ed3f8e0
--- /dev/null
+++ b/dsplib_benchmarks/correlation/t5.h
@@ -0,0 +1,63 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35#define NX 16
36#define NLAGS 2 // max NLAGS = N
37#define FNAME "t5"
38#define MAXERROR 10 // max absolute error allowed
39
40DATA x[NX] ={
41-7952,
422687,
433671,
44-3578,
45-3903,
463415,
474650,
487965,
49-437,
506599,
51-802,
524989,
535388,
54-5468,
55-1739,
56340,
57};
58
59DATA rtest[NLAGS] ={ // lag0, lag1,...
6010377,
61598,
62};
63
diff --git a/dsplib_benchmarks/correlation/t6.h b/dsplib_benchmarks/correlation/t6.h
new file mode 100644
index 0000000..9d52940
--- /dev/null
+++ b/dsplib_benchmarks/correlation/t6.h
@@ -0,0 +1,69 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35#define NX 16
36#define NLAGS 8 // max NLAGS = N
37#define FNAME "t6"
38#define MAXERROR 10 // max absolute error allowed
39
40DATA x[NX] ={
413573,
421133,
43-643,
44-897,
45-6755,
46-926,
47-2191,
48-3236,
495764,
504251,
517368,
52949,
53-7959,
541575,
555180,
567816,
57};
58
59DATA rtest[NLAGS] ={ // lag0, lag1,...
6010293,
612993,
62-1413,
63-3021,
64-2336,
652074,
66176,
67349,
68};
69
diff --git a/dsplib_benchmarks/correlation/t7.h b/dsplib_benchmarks/correlation/t7.h
new file mode 100644
index 0000000..154ded2
--- /dev/null
+++ b/dsplib_benchmarks/correlation/t7.h
@@ -0,0 +1,75 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35#define NX 16
36#define NLAGS 14 // max NLAGS = N
37#define FNAME "t7"
38#define MAXERROR 10 // max absolute error allowed
39
40DATA x[NX] ={
41-4557,
423337,
43361,
447092,
453495,
46-4456,
47-826,
48-5371,
497681,
50-2364,
51-7389,
524183,
536468,
54-3504,
55-4077,
567089,
57};
58
59DATA rtest[NLAGS] ={ // lag0, lag1,...
6012256,
61-2356,
62-4920,
63978,
642123,
65-400,
66-3272,
671889,
68-378,
691025,
70-633,
71-88,
72233,
73150,
74};
75
diff --git a/dsplib_benchmarks/correlation/t8.h b/dsplib_benchmarks/correlation/t8.h
new file mode 100644
index 0000000..697e696
--- /dev/null
+++ b/dsplib_benchmarks/correlation/t8.h
@@ -0,0 +1,76 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35#define NX 16
36#define NLAGS 15 // max NLAGS = N
37#define FNAME "t8"
38#define MAXERROR 10 // max absolute error allowed
39
40DATA x[NX] ={
41-6046,
427222,
433307,
445696,
45-4764,
46-736,
47-6864,
485752,
491016,
50-2961,
51-2050,
526025,
53-2095,
54-6985,
55-4918,
56-7382,
57};
58
59DATA rtest[NLAGS] ={ // lag0, lag1,...
6012747,
61311,
62299,
63-3587,
641946,
65-1084,
662012,
67-1951,
68196,
693010,
701161,
71-2060,
72-2933,
73-540,
74-719,
75};
76
diff --git a/dsplib_benchmarks/correlation/test.h b/dsplib_benchmarks/correlation/test.h
new file mode 100644
index 0000000..9d52940
--- /dev/null
+++ b/dsplib_benchmarks/correlation/test.h
@@ -0,0 +1,69 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35#define NX 16
36#define NLAGS 8 // max NLAGS = N
37#define FNAME "t6"
38#define MAXERROR 10 // max absolute error allowed
39
40DATA x[NX] ={
413573,
421133,
43-643,
44-897,
45-6755,
46-926,
47-2191,
48-3236,
495764,
504251,
517368,
52949,
53-7959,
541575,
555180,
567816,
57};
58
59DATA rtest[NLAGS] ={ // lag0, lag1,...
6010293,
612993,
62-1413,
63-3021,
64-2336,
652074,
66176,
67349,
68};
69
diff --git a/dsplib_benchmarks/dlmas_fast/TEST.C b/dsplib_benchmarks/dlmas_fast/TEST.C
new file mode 100644
index 0000000..209777d
--- /dev/null
+++ b/dsplib_benchmarks/dlmas_fast/TEST.C
@@ -0,0 +1,67 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35//*****************************************************************************
36// Filename: test.c
37// Version: 0.01
38// Description: test r against rtest (array of n elements)
39// Returns eflag
40//-----------------------------------------------------------------------------
41// Revision History:
42// 0.01, R. Piedra, 06/15/98, - Original release
43//*****************************************************************************
44#include <tms320.h>
45
46short test(DATA *r, DATA *rtest, short n, DATA maxerror)
47
48{
49short i;
50short eflag = PASS; // error flag or index into r vector where error
51DATA elevel = 0; // error level at failing eflag index location
52DATA emax = 0; // max error level detected across when NOERROR
53
54for (i=0;i<n;i++)
55 {
56 if ( (elevel = ABSVAL(rtest[i] - r[i])) > maxerror)
57 {
58 eflag =i; // if error --> eflag = index and emax= max error
59 emax = elevel; // if no error --> eflag = -1 and emax = max error
60 break;
61 }
62 else
63 if (elevel>emax) emax = elevel;
64 }
65 // Pass to Host: eflag and emax
66return(eflag);
67}
diff --git a/dsplib_benchmarks/dlmas_fast/dlmas.cmd b/dsplib_benchmarks/dlmas_fast/dlmas.cmd
new file mode 100644
index 0000000..94bf6e6
--- /dev/null
+++ b/dsplib_benchmarks/dlmas_fast/dlmas.cmd
@@ -0,0 +1,68 @@
1/**********************************************************/
2/* */
3/* LINKER command file for LEAD3 memory map */
4/* */
5/**********************************************************/
6
7-stack 0x1000 /* PRIMARY STACK SIZE */
8-sysstack 0x0400 /* SECONDARY STACK SIZE */
9-heap 0x1000 /* HEAP AREA SIZE */
10
11MEMORY
12{
13 PAGE 0:
14
15 MMR : origin = 0000000h, length = 00000c0h
16 SPRAM : origin = 00000c0h, length = 0000040
17 DARAM0 : origin = 0000100h, length = 0003F00h
18 DARAM1 : origin = 0004000h, length = 0004000h
19 DARAM2 : origin = 0008000h, length = 0004000h
20 DARAM3 : origin = 000c000h, length = 0004000h
21
22 SARAM01 : origin = 0010000h, length = 0008000h
23 SARAM2 : origin = 0018000h, length = 0004000h
24 SARAM3 : origin = 001c000h, length = 0004000h
25 SARAM4 : origin = 0020000h, length = 0004000h
26 SARAM5 : origin = 0024000h, length = 0004000h
27 SARAM6 : origin = 0028000h, length = 0004000h
28 SARAM7 : origin = 002c000h, length = 0004000h
29 SARAM8 : origin = 0030000h, length = 0004000h
30 SARAM9 : origin = 0034000h, length = 0004000h
31 SARAM10 : origin = 0038000h, length = 0004000h
32 SARAM11 : origin = 003c000h, length = 0004000h
33 SARAM12 : origin = 0040000h, length = 0004000h
34 SARAM13 : origin = 0044000h, length = 0004000h
35 SARAM14 : origin = 0048000h, length = 0004000h
36 SARAM15 : origin = 004c000h, length = 0004000h
37
38 CE0 : origin = 0050000h, length = 03b0000h
39 CE1 : origin = 0400000h, length = 0400000h
40 CE2 : origin = 0800000h, length = 0400000h
41 CE3 : origin = 0c00000h, length = 03f8000h
42
43 PDROM : origin = 0ff8000h, length = 07f00h
44 VECS : origin = 0ffff00h, length = 00100h /* reset vector */
45}
46
47
48SECTIONS
49{
50 vectors (NOLOAD) : {} > DARAM0 PAGE 0 /* interrupt vector table */ /* was VECS */
51 .cinit : {} > SARAM01 PAGE 0
52 .text : {} > SARAM01 PAGE 0
53 isrs : {} > SARAM2 PAGE 0
54
55 .stack : {} > DARAM0 PAGE 0 ALIGN = 4
56 .sysstack: {} > DARAM0 PAGE 0 ALIGN = 4
57 .sysmem : {} > DARAM1 PAGE 0 ALIGN = 4
58 .data : {} > SARAM8 PAGE 0 /* force .data to not be on Page 0 */
59 .bss:saram : {} > DARAM2 PAGE 0 /* must be a different on-chip block than .bss */
60 .bss:saram2 : {} > SARAM3 PAGE 0 /* must be a different on-chip block than .bss */
61 //.bss : {} > SARAM15 PAGE 0 /* for normal testing, move .bss off of DARAM */
62 .bss : {} > DARAM3 PAGE 0 /* for optimal timing tests, put .bss in DARAM */
63 .input : {} > DARAM3 PAGE 0 /* for optimal timing tests, put .input in DARAM */
64 .coeffs : {} > DARAM0 PAGE 0 /* for optimal timing tests, put .coeffs in DARAM */
65 .dbuffer : {} > DARAM1 PAGE 0 /* for optimal timing tests, put .dbuffer in DARAM */
66 .const : {} > SARAM8 PAGE 0
67 .cio : {} > DARAM2 PAGE 0
68} \ No newline at end of file
diff --git a/dsplib_benchmarks/dlmas_fast/dlmsfast_T.C b/dsplib_benchmarks/dlmas_fast/dlmsfast_T.C
new file mode 100644
index 0000000..d8c88c3
--- /dev/null
+++ b/dsplib_benchmarks/dlmas_fast/dlmsfast_T.C
@@ -0,0 +1,134 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35//*****************************************************************************
36// Filename: dlmsfast_t.c
37// Version: 0.01
38// Description: test for fast dlms routine
39//-----------------------------------------------------------------------------
40// Revision History:
41// 1.000, Li Yuan, 09/23/02, - original release
42//*****************************************************************************/
43
44#include <stdlib.h>
45#include <math.h>
46#include <tms320.h>
47#include <stdio.h>
48#include <dsplib.h>
49#include <time.h>
50
51#define NUMBER_OF_ITERATIONS 1000l
52
53
54//#include "t3.h" // 12,20
55#include "t4.h" // 32,64
56//#include "t6.h" // 12,100
57//#include "t7.h" // 10,50
58
59
60//#include "t8.h"
61//#include "test.h" // 32,64
62
63short test(DATA *r, DATA *rtest, short n, DATA maxerror);
64
65short eflagr = PASS;
66short eflagh = PASS;
67
68void clear_ran(short x[], int N)
69{
70 int i ;
71 for (i=0; i<N; i++)
72 {
73 x[i] = 0 ;
74 }
75 return ;
76}
77
78void main()
79{
80 short i;
81 int nx ,nh ,nstep;
82 long iterations1 ;
83 clock_t t1,t2, t11,t22 ,total1_t ,total2_t,diff ;
84
85 // clear
86// for (i = 0; i< NH; i++) h[i] = 0; // clear coeff buffer (optional)
87// for (i = 0; i< NX; i++) r[i] = 0; // clear output buffer (optional)
88 nx = NX ;
89 nh = NH ;
90 nstep = STEP ;
91 clear_ran(h, NH) ;
92 clear_ran(r, NX) ;
93
94
95 dbuffer[0] = 0; // clear index
96 // for (i = 1; i < NH+3; i++) dbuffer[i] = 0; // clear delay buffer (a must)
97
98
99 clear_ran(dbuffer, NH + 3) ;
100
101 t1 = clock() ;
102 t2 = clock() ;
103 diff = t2 - t1 ; /// overhead of calling
104 t1 = clock() ;
105
106 // compute
107 dlmsfast(x, h, r, des, dbuffer, nstep, nh, nx);
108
109 t2 = clock() ;
110
111 total1_t = (double) (t2 - t1-diff) ;
112 printf("fast LMS Delay filter #values %d #of taps %d step %d \n" , nx, nh,nstep ) ;
113 printf(" time (in cycles) %ld \n", total1_t) ;
114
115 // test
116 eflagr = test(r, rtest, NX, MAXERROR); // for r
117 eflagh = test(h, htest, NH, MAXERROR); // for h
118
119 if(eflagr != PASS || eflagh != PASS){
120 printf("FAIL THE TEST \n");
121 }
122 for (iterations1 = 0; iterations1 < NUMBER_OF_ITERATIONS;iterations1++)
123
124 {
125
126 dlmsfast(x, h, r, des, dbuffer, nstep, nh, nx);
127
128 }
129
130
131 printf("Done with %ld iteration \n",iterations1 );
132
133 return;
134}
diff --git a/dsplib_benchmarks/dlmas_fast/t1.h b/dsplib_benchmarks/dlmas_fast/t1.h
new file mode 100644
index 0000000..a47a5cf
--- /dev/null
+++ b/dsplib_benchmarks/dlmas_fast/t1.h
@@ -0,0 +1,75 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* Test for dlms: mtst */
36#define NX 3
37#define NH 3
38#define STEP 32767
39#define FNAME "t1"
40#define MAXERROR 20
41
42DATA x[NX] ={
4332764,
440,
450,
46};
47
48DATA des[NX] ={
493276,
506553,
510,
52};
53
54DATA htest[NH] ={ /* C54x: hn-1 ... h0 (backward order) */
550,
566553,
573276,
58};
59
60DATA rtest[NX] ={
610,
620,
630,
64};
65
66#pragma DATA_SECTION (dbuffer,".dbuffer")
67DATA dbuffer[NH+2];
68
69#pragma DATA_SECTION (h,".coeffs")
70DATA h[NH];
71
72DATA r[NX];
73
74DATA error;
75
diff --git a/dsplib_benchmarks/dlmas_fast/t2.h b/dsplib_benchmarks/dlmas_fast/t2.h
new file mode 100644
index 0000000..04a9587
--- /dev/null
+++ b/dsplib_benchmarks/dlmas_fast/t2.h
@@ -0,0 +1,204 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* Test for dlms: sine */
36#define NX 40
37#define NH 21
38#define STEP 1638
39#define FNAME "t2"
40#define MAXERROR 20
41
42DATA x[NX] ={
430,
4411585,
4516384,
4611585,
470,
48-11586,
49-16384,
50-11586,
51-1,
5211585,
5316384,
5411585,
550,
56-11586,
57-16384,
58-11586,
59-1,
6011585,
6116384,
6211585,
630,
64-11586,
65-16384,
66-11586,
67-1,
6811585,
6916384,
7011585,
710,
72-11586,
73-16384,
74-11586,
75-1,
7611585,
7716384,
7811585,
790,
80-11586,
81-16384,
82-11586,
83};
84
85DATA des[NX] ={
8632767,
8723170,
880,
89-23171,
90-32768,
91-23171,
92-1,
9323170,
9432767,
9523170,
960,
97-23171,
98-32768,
99-23171,
100-1,
10123170,
10232767,
10323170,
1040,
105-23171,
106-32768,
107-23171,
108-1,
10923170,
11032767,
11123170,
112-1,
113-23171,
114-32768,
115-23171,
116-1,
11723170,
11832767,
11923170,
120-1,
121-23171,
122-32768,
123-23171,
124-1,
12523170,
126};
127
128DATA htest[NH] ={ /* C54x: hn-1 ... h0 (backward order) */
129-155,
130-1991,
131-2909,
132-2116,
133205,
1342827,
1354100,
1362963,
137-253,
138-3815,
139-5501,
140-3957,
141288,
1424915,
1437057,
1445061,
145-307,
146-6074,
147-8695,
148-6223,
149304,
150};
151
152DATA rtest[NX] ={
1530,
1540,
1550,
156145,
1570,
158-145,
159207,
160873,
1611637,
1621449,
163-376,
164-2946,
165-4748,
166-3788,
167463,
1685808,
1698947,
1706878,
171-448,
172-9094,
173-13706,
174-10329,
175343,
17612418,
17718468,
17813665,
179-93,
180-15001,
181-22046,
182-16135,
183-50,
18416968,
18524730,
18617962,
187124,
188-18465,
189-26743,
190-19315,
191-156,
19219603,
193};
194
195#pragma DATA_SECTION (dbuffer,".dbuffer")
196DATA dbuffer[NH+2];
197
198#pragma DATA_SECTION (h,".coeffs")
199DATA h[NH];
200
201DATA r[NX];
202
203DATA error;
204
diff --git a/dsplib_benchmarks/dlmas_fast/t3.h b/dsplib_benchmarks/dlmas_fast/t3.h
new file mode 100644
index 0000000..dba25ef
--- /dev/null
+++ b/dsplib_benchmarks/dlmas_fast/t3.h
@@ -0,0 +1,135 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* Test for dlms: rand */
36#define NX 20
37#define NH 12
38#define STEP 327
39#define FNAME "t3"
40#define MAXERROR 20
41
42DATA x[NX] ={
4329499,
44-17620,
457001,
46-919,
4725643,
4817176,
49-2853,
50-31556,
5121063,
52-3624,
537564,
5419132,
5527643,
5615610,
57-21217,
58-6180,
5928538,
6027321,
61-5881,
6225797,
63};
64
65DATA des[NX] ={
66-28974,
67-9643,
6820523,
69-32122,
70-23666,
71-19480,
72-19745,
736802,
74-14930,
75-19739,
76-31767,
7716173,
78-3599,
7928299,
80-2229,
81-5332,
8222689,
831648,
84-19488,
8511281,
86};
87
88DATA htest[NH] ={ /* C54x: hn-1 ... h0 (backward order) */
89484,
90-599,
9160,
92188,
9346,
94-767,
95-106,
96-255,
97346,
98-38,
99-351,
100-139,
101};
102
103DATA rtest[NX] ={
1040,
1050,
106-56,
107-13,
108-84,
109-362,
11093,
111431,
112-51,
113-554,
11431,
115-331,
116-683,
117-278,
118-415,
119361,
120-1214,
121-910,
122-839,
123588,
124};
125
126#pragma DATA_SECTION (dbuffer,".dbuffer")
127DATA dbuffer[NH+3];
128
129#pragma DATA_SECTION (h,".coeffs")
130DATA h[2*NH];
131
132DATA r[NX];
133
134DATA error;
135
diff --git a/dsplib_benchmarks/dlmas_fast/t4.h b/dsplib_benchmarks/dlmas_fast/t4.h
new file mode 100644
index 0000000..05a01dd
--- /dev/null
+++ b/dsplib_benchmarks/dlmas_fast/t4.h
@@ -0,0 +1,287 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* Test for dlms: nois */
36#define NX 64
37#define NH 32
38#define STEP 327
39#define FNAME "t4"
40#define MAXERROR 20
41
42DATA x[NX] ={
4322158,
44-31481,
4511880,
46-7899,
4721744,
48184,
4913727,
50-4661,
51-12805,
52-20339,
53-20092,
5411942,
55-12927,
562731,
57-22881,
5812969,
59-7971,
6023593,
6123177,
626131,
63-226,
6426199,
6521078,
669496,
6720838,
6810500,
69-10357,
70-13781,
71-10408,
722233,
7314884,
74-12499,
7522183,
764461,
77-8493,
7813286,
793052,
80-3613,
8112751,
827950,
8319321,
8429939,
851480,
8624912,
87-21434,
8831440,
89-14979,
90-16232,
9124624,
9215552,
93-23822,
94-31998,
9525814,
96-19718,
97-13191,
9810580,
99-14129,
100-2017,
101-28523,
10232003,
1035425,
104-5014,
1051016,
106-10883,
107};
108
109DATA des[NX] ={
110-206,
111-549,
1121328,
11373,
114-815,
115-185,
116-1635,
1171405,
1181304,
119981,
120-477,
121208,
122-790,
123-2430,
1243582,
125-1508,
1263299,
127-4350,
1281485,
129-7020,
1305136,
131-2488,
132955,
133-1463,
134-73,
1353255,
1361555,
1377734,
138-3018,
1397491,
140-8688,
141-2529,
142-4112,
1433887,
144-3058,
1451099,
146-3404,
147-4485,
148-93,
149-1267,
1503646,
151551,
1523272,
1531263,
1545355,
1551379,
1562986,
1571270,
158436,
159-6044,
1602969,
1612435,
1623012,
1633380,
164-281,
165-1885,
166-5000,
1675358,
168-6417,
1693270,
170-1250,
1713213,
1721179,
1735985,
174};
175
176DATA htest[NH] ={ /* C54x: hn-1 ... h0 (backward order) */
177-8,
178-71,
179325,
180-125,
181262,
182-195,
183126,
184-53,
185194,
186230,
187169,
188142,
189-211,
190205,
191-312,
192214,
193-388,
194189,
195-425,
196223,
197-27,
19875,
199114,
2005,
20168,
202-219,
203401,
204-10,
205284,
20676,
207-47,
208-121,
209};
210
211DATA rtest[NX] ={
2120,
2130,
214-1,
215-2,
21613,
217-13,
2181,
219-1,
220-12,
22139,
2220,
2236,
224-32,
225-2,
2260,
227-27,
228114,
229-165,
230120,
231-225,
232185,
233-238,
234206,
235-224,
236-14,
237-19,
238-61,
239416,
240-149,
241510,
242-510,
243572,
244-637,
245433,
246-447,
247166,
248-316,
249-199,
25024,
251-245,
252337,
253-383,
254375,
255-280,
256892,
257-242,
2581054,
259-280,
260534,
261-523,
262507,
263-2,
264-100,
265179,
266-526,
267167,
268-938,
269729,
270-791,
271380,
272-471,
273180,
27480,
275249,
276};
277
278#pragma DATA_SECTION (dbuffer,".dbuffer")
279DATA dbuffer[NH+3];
280
281#pragma DATA_SECTION (h,".coeffs")
282DATA h[2*NH];
283
284DATA r[NX];
285
286DATA error;
287
diff --git a/dsplib_benchmarks/dlmas_fast/t5.h b/dsplib_benchmarks/dlmas_fast/t5.h
new file mode 100644
index 0000000..6889d68
--- /dev/null
+++ b/dsplib_benchmarks/dlmas_fast/t5.h
@@ -0,0 +1,468 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* Test for dlms: sine */
36#define NX 128
37#define NH 21
38#define STEP 1638
39#define FNAME "t5"
40#define MAXERROR 20
41
42DATA x[NX] ={
430,
4411585,
4516384,
4611585,
470,
48-11586,
49-16384,
50-11586,
51-1,
5211585,
5316384,
5411585,
550,
56-11586,
57-16384,
58-11586,
59-1,
6011585,
6116384,
6211585,
630,
64-11586,
65-16384,
66-11586,
67-1,
6811585,
6916384,
7011585,
710,
72-11586,
73-16384,
74-11586,
75-1,
7611585,
7716384,
7811585,
790,
80-11586,
81-16384,
82-11586,
83-1,
8411585,
8516384,
8611585,
870,
88-11586,
89-16384,
90-11586,
91-1,
9211585,
9316384,
9411585,
95-1,
96-11586,
97-16384,
98-11586,
99-1,
10011585,
10116384,
10211585,
1030,
104-11586,
105-16384,
106-11586,
107-1,
10811585,
10916384,
11011585,
111-1,
112-11586,
113-16384,
114-11586,
115-1,
11611585,
11716384,
11811585,
1190,
120-11586,
121-16384,
122-11586,
123-1,
12411585,
12516384,
12611585,
127-1,
128-11586,
129-16384,
130-11586,
131-1,
13211585,
13316384,
13411585,
1350,
136-11586,
137-16384,
138-11586,
139-1,
14011585,
14116384,
14211585,
143-1,
144-11586,
145-16384,
146-11586,
1470,
14811585,
14916384,
15011585,
1510,
152-11586,
153-16384,
154-11586,
155-1,
15611585,
15716384,
15811585,
159-1,
160-11586,
161-16384,
162-11586,
163-1,
16411585,
16516384,
16611585,
1670,
168-11586,
169-16384,
170-11586,
171};
172
173DATA des[NX] ={
17432767,
17523170,
1760,
177-23171,
178-32768,
179-23171,
180-1,
18123170,
18232767,
18323170,
1840,
185-23171,
186-32768,
187-23171,
188-1,
18923170,
19032767,
19123170,
1920,
193-23171,
194-32768,
195-23171,
196-1,
19723170,
19832767,
19923170,
200-1,
201-23171,
202-32768,
203-23171,
204-1,
20523170,
20632767,
20723170,
208-1,
209-23171,
210-32768,
211-23171,
212-1,
21323170,
21432767,
21523170,
216-1,
217-23171,
218-32768,
219-23171,
220-1,
22123170,
22232767,
22323170,
224-1,
225-23171,
226-32768,
227-23171,
228-1,
22923170,
23032767,
23123170,
232-1,
233-23171,
234-32768,
235-23171,
236-1,
23723170,
23832767,
23923170,
2400,
241-23171,
242-32768,
243-23171,
244-1,
24523170,
24632767,
24723170,
2480,
249-23171,
250-32768,
251-23171,
252-1,
25323170,
25432767,
25523170,
2560,
257-23171,
258-32768,
259-23171,
260-1,
26123170,
26232767,
26323170,
2640,
265-23171,
266-32768,
267-23171,
2680,
26923170,
27032767,
27123170,
2720,
273-23171,
274-32768,
275-23171,
276-1,
27723170,
27832767,
27923170,
2800,
281-23171,
282-32768,
283-23171,
2840,
28523170,
28632767,
28723170,
2880,
289-23171,
290-32768,
291-23171,
292-1,
29323170,
29432767,
29523170,
2960,
297-23171,
298-32768,
299-23171,
3000,
30123170,
302};
303
304DATA htest[NH] ={ /* C54x: hn-1 ... h0 (backward order) */
305-63,
306-2563,
307-3811,
308-2818,
309113,
3103399,
3115001,
3123665,
313-160,
314-4388,
315-6402,
316-4660,
317196,
3185488,
3197958,
3205764,
321-214,
322-6646,
323-9597,
324-6926,
325212,
326};
327
328DATA rtest[NX] ={
3290,
3300,
3310,
332145,
3330,
334-145,
335207,
336873,
3371637,
3381449,
339-376,
340-2946,
341-4748,
342-3788,
343463,
3445808,
3458947,
3466878,
347-448,
348-9094,
349-13706,
350-10329,
351343,
35212418,
35318468,
35413665,
355-93,
356-15001,
357-22046,
358-16135,
359-50,
36016968,
36124730,
36217962,
363124,
364-18465,
365-26743,
366-19315,
367-156,
36819603,
36928253,
37020316,
371162,
372-20467,
373-29385,
374-21057,
375-155,
37621124,
37730234,
37821605,
379140,
380-21622,
381-30870,
382-22012,
383-122,
38421999,
38531346,
38622312,
387104,
388-22285,
389-31703,
390-22535,
391-87,
39222501,
39331971,
39422700,
39572,
396-22665,
397-32171,
398-22822,
399-59,
40022789,
40132321,
40222912,
40348,
404-22883,
405-32434,
406-22979,
407-38,
40822953,
40932518,
41023029,
41130,
412-23007,
413-32581,
414-23065,
415-24,
41623047,
41732628,
41823093,
41919,
420-23078,
421-32663,
422-23113,
423-15,
42423101,
42532690,
42623128,
42712,
428-23118,
429-32709,
430-23139,
431-9,
43223131,
43332724,
43423147,
4357,
436-23141,
437-32735,
438-23153,
439-6,
44023148,
44132743,
44223158,
4434,
444-23154,
445-32750,
446-23161,
447-3,
44823158,
44932754,
45023163,
4513,
452-23161,
453-32758,
454-23165,
455-2,
45623163,
457};
458
459#pragma DATA_SECTION (dbuffer,".dbuffer")
460DATA dbuffer[NH+2];
461
462#pragma DATA_SECTION (h,".coeffs")
463DATA h[NH];
464
465DATA r[NX];
466
467DATA error;
468
diff --git a/dsplib_benchmarks/dlmas_fast/t6.h b/dsplib_benchmarks/dlmas_fast/t6.h
new file mode 100644
index 0000000..4a8bce1
--- /dev/null
+++ b/dsplib_benchmarks/dlmas_fast/t6.h
@@ -0,0 +1,375 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* Test for dlms: rand */
36#define NX 100
37#define NH 12
38#define STEP 655
39#define FNAME "t6"
40#define MAXERROR 20
41
42DATA x[NX] ={
4316027,
44-15208,
45-3938,
4628401,
4712014,
48-18838,
4922232,
508439,
51-24001,
52-19194,
537025,
548512,
55-8489,
564924,
57-3184,
58-29891,
59-30987,
60-12276,
61-31925,
62-7605,
6312000,
64-26684,
65-30452,
667365,
677113,
68-31735,
69-31696,
70-20312,
715696,
72-28995,
73-8679,
748614,
7514262,
7612626,
77-27258,
78-2992,
79-3813,
80-9618,
81-22702,
8211510,
8313055,
8414909,
85-1417,
863594,
87-24835,
88-3228,
8914147,
9025745,
91-14870,
92-16072,
9323959,
94-17541,
9519979,
9626764,
97-17571,
98-17085,
99-29507,
100-27631,
1019228,
102-20258,
10322535,
104-21372,
105-21575,
10632393,
107-3946,
108-10483,
109-12176,
110-8843,
111-6997,
1125998,
113-24921,
114-30269,
115-2714,
11624239,
11728457,
118-15437,
119-22263,
12024435,
121-17179,
1229557,
12330597,
12410808,
12524273,
126-32118,
127-23789,
12820889,
129-4577,
13025579,
13115394,
13212276,
133-10086,
134-21887,
135-22570,
136-20243,
137-5083,
13823328,
139-639,
14020704,
141-2571,
142-2795,
143};
144
145DATA des[NX] ={
146-3232,
147-5753,
14826319,
149-32402,
150-13278,
151-29546,
15212660,
1539837,
15431652,
1553451,
156-6549,
157-19740,
1588205,
15915293,
160-8134,
161-32121,
162-5253,
16316624,
16419258,
16527522,
16622591,
167-8667,
1687916,
16915156,
170-20061,
17126529,
1724535,
1738636,
174-17406,
1753196,
17628283,
177-10801,
17810192,
179-7085,
1808343,
18113046,
182-6739,
183-5661,
18410171,
18522123,
186-8415,
187-4899,
1886203,
1894308,
19014191,
191741,
19218114,
193-699,
194-20585,
19513148,
19631634,
19720095,
19813340,
199-986,
200-25257,
20110803,
202-8823,
203-23590,
2044375,
20521168,
20611399,
20732731,
20830253,
209-28911,
210-9155,
2113179,
212-15613,
2136379,
214-29539,
2154656,
21613163,
21730296,
21816417,
21915728,
220-4465,
2218799,
22219858,
223-27271,
22429193,
22527258,
2266683,
227-16151,
22824474,
229878,
23015246,
231-5097,
23230236,
233-28046,
2343500,
235-13633,
23623459,
237-10764,
23811809,
239-29266,
240-9395,
241-112,
242-4297,
2434093,
2447642,
245-25340,
246};
247
248DATA htest[NH] ={ /* C54x: hn-1 ... h0 (backward order) */
249-753,
250481,
2511445,
252-2282,
253-1169,
254376,
255-2054,
256-2327,
257-767,
258986,
259-1730,
260-2667,
261};
262
263DATA rtest[NX] ={
2640,
2650,
2664,
26726,
268-307,
269787,
270-156,
271-457,
272-361,
273375,
274-150,
275-71,
276377,
27761,
278-859,
279752,
2802236,
28128,
282-1686,
283262,
284555,
285463,
2861732,
2872315,
288-259,
2891391,
2905677,
2913189,
2921305,
2934888,
2946036,
295381,
296-1269,
2971552,
2983173,
299770,
300-582,
3012254,
3024767,
3032674,
304-2141,
305-1114,
306679,
307559,
308-2189,
3091869,
310213,
311-923,
312-353,
3132579,
314-2188,
315-4241,
3161581,
317381,
318-3642,
319-490,
3204108,
3212482,
3222602,
3231069,
3242709,
325-849,
3262340,
3272555,
328-1414,
3291269,
3305343,
3311297,
332-1752,
3333348,
3342612,
3352518,
3364227,
337-1521,
338-2467,
3393427,
3405007,
341-3164,
342-5066,
3431383,
344-1858,
345-3275,
346-4996,
3472432,
348-577,
349-7362,
350-597,
3511407,
352-2297,
353-1960,
354-5172,
3555024,
356-1165,
357618,
3584294,
359-420,
3601248,
3612285,
3621105,
363955,
364};
365
366#pragma DATA_SECTION (dbuffer,".dbuffer")
367DATA dbuffer[NH+3];
368
369#pragma DATA_SECTION (h,".coeffs")
370DATA h[2*NH];
371
372DATA r[NX];
373
374DATA error;
375
diff --git a/dsplib_benchmarks/dlmas_fast/t7.h b/dsplib_benchmarks/dlmas_fast/t7.h
new file mode 100644
index 0000000..7000773
--- /dev/null
+++ b/dsplib_benchmarks/dlmas_fast/t7.h
@@ -0,0 +1,223 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* Test for dlms: nois */
36#define NX 50
37#define NH 10
38#define STEP 983
39#define FNAME "t7"
40#define MAXERROR 20
41
42DATA x[NX] ={
4326099,
4416682,
4519079,
4620640,
4711141,
48-19604,
49-14871,
508272,
512415,
52-28869,
53-26938,
54-14988,
55-5960,
56-1702,
5726803,
586307,
59-11210,
60-1430,
616368,
62-22188,
6321592,
6429892,
656261,
66-30884,
6720454,
687216,
6913205,
70-26726,
71-4923,
72-8155,
73-21879,
7421833,
7522193,
76-3172,
7729923,
78-23125,
7924243,
8017657,
81-3660,
827904,
8329601,
849175,
85-16560,
86-9654,
87-20457,
88-614,
89-5946,
90-2391,
917270,
92-28104,
93};
94
95DATA des[NX] ={
96-3018,
97-168,
98-6360,
99-2508,
100-6626,
101-939,
102-2314,
103109,
1041549,
10511687,
1067261,
1079287,
1089364,
1098412,
110-6401,
111-2164,
112-830,
113551,
114-10758,
115-4780,
116-7416,
117337,
118-5790,
11911210,
120-6581,
121365,
122-6531,
12310106,
124-14460,
12513444,
1268411,
1272729,
128-6041,
1292248,
130-607,
1315387,
132-20366,
1337230,
134-13141,
135-3582,
136856,
1372873,
138-824,
1396101,
140-4640,
1416795,
14211879,
143-2334,
1445540,
14511473,
146};
147
148DATA htest[NH] ={ /* C54x: hn-1 ... h0 (backward order) */
1493446,
150498,
151-138,
152184,
153656,
154-1951,
155324,
156-2104,
157156,
158-2132,
159};
160
161DATA rtest[NX] ={
1620,
1630,
164-42,
165-49,
166-214,
167-63,
1683,
16967,
17069,
171285,
172438,
173739,
174798,
175716,
176-498,
177-534,
178-226,
179-895,
180-1674,
181-157,
182-599,
183-1118,
184-362,
1851386,
186-962,
187-1573,
188-793,
1891323,
190-595,
1912432,
1922655,
193503,
194-2814,
1951293,
196-1213,
197193,
198-4405,
199-588,
200-3163,
201-1392,
202-1057,
20399,
204389,
2051935,
206-893,
2072818,
2084163,
209-230,
2101913,
2114800,
212};
213
214#pragma DATA_SECTION (dbuffer,".dbuffer")
215DATA dbuffer[NH+3];
216
217#pragma DATA_SECTION (h,".coeffs")
218DATA h[2*NH];
219
220DATA r[NX];
221
222DATA error;
223
diff --git a/dsplib_benchmarks/dlmas_fast/t8.h b/dsplib_benchmarks/dlmas_fast/t8.h
new file mode 100644
index 0000000..95aca2a
--- /dev/null
+++ b/dsplib_benchmarks/dlmas_fast/t8.h
@@ -0,0 +1,163 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* Test for dlms: rand */
36#define NX 32
37#define NH 4
38#define STEP 1310
39#define FNAME "t8"
40#define MAXERROR 20
41
42DATA x[NX] ={
43-10371,
44-6436,
45-12604,
46-5796,
47-14029,
48-6939,
49197,
5014547,
51-12701,
52-25417,
53-3717,
54-2179,
55-31807,
5610751,
5714683,
58-14311,
59-15610,
6013662,
6118602,
6231860,
63-1747,
6426398,
65-3208,
6619956,
6721552,
68-21872,
69-6953,
701360,
7114294,
724534,
73-2569,
74-3585,
75};
76
77DATA des[NX] ={
78-27018,
79-3704,
80-8763,
81-12942,
8223058,
8317005,
8429475,
853797,
86-31835,
876302,
8820722,
8931266,
90-18225,
9113348,
921445,
9328370,
9413982,
95-17824,
96-3301,
97-21483,
9830724,
99-9456,
100-29554,
10116733,
10225874,
103-14015,
104-16306,
10528359,
106-24184,
10728889,
10813228,
10922785,
110};
111
112DATA htest[NH] ={ /* C54x: hn-1 ... h0 (backward order) */
113-1196,
114-682,
115288,
1160
117};
118
119DATA rtest[NX] ={
1200,
1210,
122-132,
123-84,
124-278,
125-297,
12634,
12778,
128-203,
129-299,
130990,
131634,
132-84,
1331967,
1341659,
135-2089,
136-401,
1371676,
138-50,
139-1293,
140-2019,
141-1756,
142-512,
143-1254,
144-1700,
145-769,
146596,
147668,
148403,
149-525,
150-840,
151-176,
152};
153
154#pragma DATA_SECTION (dbuffer,".dbuffer")
155DATA dbuffer[NH+2];
156
157#pragma DATA_SECTION (h,".coeffs")
158DATA h[NH];
159
160DATA r[NX];
161
162DATA error;
163
diff --git a/dsplib_benchmarks/dlms/DLMS_T.C b/dsplib_benchmarks/dlms/DLMS_T.C
new file mode 100644
index 0000000..582b004
--- /dev/null
+++ b/dsplib_benchmarks/dlms/DLMS_T.C
@@ -0,0 +1,136 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35//*****************************************************************************
36// Filename: dlms_t.c
37// Version: 0.01
38// Description: test for dlms routine
39//*****************************************************************************/
40
41#include <stdlib.h>
42#include <math.h>
43#include <tms320.h>
44#include <stdio.h>
45#include <dsplib.h>
46#include <time.h>
47
48#define NUMBER_OF_ITERATIONS 1000l
49
50
51//#include "t1.h" //3,3
52//#include "t2.h" //21,40
53//#include "t3.h" //12,20
54#include "t4.h" //32,64
55//#include "t5.h" //21,128
56//#include "t6.h" //12,100
57//#include "t7.h"
58//#include "t8.h" //3,32
59//#include "test.h" //12,100
60
61short test(DATA *r, DATA *rtest, short n, DATA maxerror);
62
63short eflagr = PASS;
64short eflagh = PASS;
65
66void clear_ran(short x[], int N)
67{
68 int i ;
69 for (i=0; i<N; i++)
70 {
71 x[i] = 0 ;
72 }
73 return ;
74}
75
76void main()
77{
78 int nx ,nh ,nstep;
79 long iterations1 ;
80 clock_t t1,t2, t11,t22 ,total1_t ,total2_t,diff ;
81
82 // clear
83// for (i = 0; i< NH; i++) h[i] = 0; // clear coeff buffer (optional)
84// for (i = 0; i< NX; i++) r[i] = 0; // clear output buffer (optional)
85 nx = NX ;
86 nh = NH ;
87 nstep = STEP ;
88 clear_ran(h, NH) ;
89 clear_ran(r, NX) ;
90
91 dbuffer[0] = 0; // clear index
92 clear_ran(dbuffer, NH + 3) ;
93
94 t1 = clock() ;
95 t2 = clock() ;
96 diff = t2 - t1 ; /// overhead of calling
97 t1 = clock() ;
98
99 // compute
100 dlms(x, h, r, des, dbuffer, nstep, nh, nx);
101
102
103 t2 = clock() ;
104
105 total1_t = (double) (t2 - t1-diff) ;
106 printf("standard LMS Delay filter #values %d #of taps %d step %d \n" , nx, nh,nstep ) ;
107 printf(" time (in cycles) %ld \n", total1_t) ;
108
109 // test
110 eflagr = test(r, rtest, NX, MAXERROR); // for r
111 eflagh = test(h, htest, NH, MAXERROR); // for h
112
113 if( (eflagr != PASS) || (eflagh != PASS) )
114 {
115 exit(-1);
116 }
117
118 for (iterations1 = 0; iterations1 < NUMBER_OF_ITERATIONS;iterations1++)
119
120 {
121
122 dlms(x, h, r, des, dbuffer, nstep, nh, nx);
123
124 }
125
126
127 printf("Done with %ld iteration \n",iterations1 );
128
129
130
131 return;
132}
133
134
135
136
diff --git a/dsplib_benchmarks/dlms/TEST.C b/dsplib_benchmarks/dlms/TEST.C
new file mode 100644
index 0000000..209777d
--- /dev/null
+++ b/dsplib_benchmarks/dlms/TEST.C
@@ -0,0 +1,67 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35//*****************************************************************************
36// Filename: test.c
37// Version: 0.01
38// Description: test r against rtest (array of n elements)
39// Returns eflag
40//-----------------------------------------------------------------------------
41// Revision History:
42// 0.01, R. Piedra, 06/15/98, - Original release
43//*****************************************************************************
44#include <tms320.h>
45
46short test(DATA *r, DATA *rtest, short n, DATA maxerror)
47
48{
49short i;
50short eflag = PASS; // error flag or index into r vector where error
51DATA elevel = 0; // error level at failing eflag index location
52DATA emax = 0; // max error level detected across when NOERROR
53
54for (i=0;i<n;i++)
55 {
56 if ( (elevel = ABSVAL(rtest[i] - r[i])) > maxerror)
57 {
58 eflag =i; // if error --> eflag = index and emax= max error
59 emax = elevel; // if no error --> eflag = -1 and emax = max error
60 break;
61 }
62 else
63 if (elevel>emax) emax = elevel;
64 }
65 // Pass to Host: eflag and emax
66return(eflag);
67}
diff --git a/dsplib_benchmarks/dlms/dlms.cmd b/dsplib_benchmarks/dlms/dlms.cmd
new file mode 100644
index 0000000..94bf6e6
--- /dev/null
+++ b/dsplib_benchmarks/dlms/dlms.cmd
@@ -0,0 +1,68 @@
1/**********************************************************/
2/* */
3/* LINKER command file for LEAD3 memory map */
4/* */
5/**********************************************************/
6
7-stack 0x1000 /* PRIMARY STACK SIZE */
8-sysstack 0x0400 /* SECONDARY STACK SIZE */
9-heap 0x1000 /* HEAP AREA SIZE */
10
11MEMORY
12{
13 PAGE 0:
14
15 MMR : origin = 0000000h, length = 00000c0h
16 SPRAM : origin = 00000c0h, length = 0000040
17 DARAM0 : origin = 0000100h, length = 0003F00h
18 DARAM1 : origin = 0004000h, length = 0004000h
19 DARAM2 : origin = 0008000h, length = 0004000h
20 DARAM3 : origin = 000c000h, length = 0004000h
21
22 SARAM01 : origin = 0010000h, length = 0008000h
23 SARAM2 : origin = 0018000h, length = 0004000h
24 SARAM3 : origin = 001c000h, length = 0004000h
25 SARAM4 : origin = 0020000h, length = 0004000h
26 SARAM5 : origin = 0024000h, length = 0004000h
27 SARAM6 : origin = 0028000h, length = 0004000h
28 SARAM7 : origin = 002c000h, length = 0004000h
29 SARAM8 : origin = 0030000h, length = 0004000h
30 SARAM9 : origin = 0034000h, length = 0004000h
31 SARAM10 : origin = 0038000h, length = 0004000h
32 SARAM11 : origin = 003c000h, length = 0004000h
33 SARAM12 : origin = 0040000h, length = 0004000h
34 SARAM13 : origin = 0044000h, length = 0004000h
35 SARAM14 : origin = 0048000h, length = 0004000h
36 SARAM15 : origin = 004c000h, length = 0004000h
37
38 CE0 : origin = 0050000h, length = 03b0000h
39 CE1 : origin = 0400000h, length = 0400000h
40 CE2 : origin = 0800000h, length = 0400000h
41 CE3 : origin = 0c00000h, length = 03f8000h
42
43 PDROM : origin = 0ff8000h, length = 07f00h
44 VECS : origin = 0ffff00h, length = 00100h /* reset vector */
45}
46
47
48SECTIONS
49{
50 vectors (NOLOAD) : {} > DARAM0 PAGE 0 /* interrupt vector table */ /* was VECS */
51 .cinit : {} > SARAM01 PAGE 0
52 .text : {} > SARAM01 PAGE 0
53 isrs : {} > SARAM2 PAGE 0
54
55 .stack : {} > DARAM0 PAGE 0 ALIGN = 4
56 .sysstack: {} > DARAM0 PAGE 0 ALIGN = 4
57 .sysmem : {} > DARAM1 PAGE 0 ALIGN = 4
58 .data : {} > SARAM8 PAGE 0 /* force .data to not be on Page 0 */
59 .bss:saram : {} > DARAM2 PAGE 0 /* must be a different on-chip block than .bss */
60 .bss:saram2 : {} > SARAM3 PAGE 0 /* must be a different on-chip block than .bss */
61 //.bss : {} > SARAM15 PAGE 0 /* for normal testing, move .bss off of DARAM */
62 .bss : {} > DARAM3 PAGE 0 /* for optimal timing tests, put .bss in DARAM */
63 .input : {} > DARAM3 PAGE 0 /* for optimal timing tests, put .input in DARAM */
64 .coeffs : {} > DARAM0 PAGE 0 /* for optimal timing tests, put .coeffs in DARAM */
65 .dbuffer : {} > DARAM1 PAGE 0 /* for optimal timing tests, put .dbuffer in DARAM */
66 .const : {} > SARAM8 PAGE 0
67 .cio : {} > DARAM2 PAGE 0
68} \ No newline at end of file
diff --git a/dsplib_benchmarks/dlms/t1.h b/dsplib_benchmarks/dlms/t1.h
new file mode 100644
index 0000000..a47a5cf
--- /dev/null
+++ b/dsplib_benchmarks/dlms/t1.h
@@ -0,0 +1,75 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* Test for dlms: mtst */
36#define NX 3
37#define NH 3
38#define STEP 32767
39#define FNAME "t1"
40#define MAXERROR 20
41
42DATA x[NX] ={
4332764,
440,
450,
46};
47
48DATA des[NX] ={
493276,
506553,
510,
52};
53
54DATA htest[NH] ={ /* C54x: hn-1 ... h0 (backward order) */
550,
566553,
573276,
58};
59
60DATA rtest[NX] ={
610,
620,
630,
64};
65
66#pragma DATA_SECTION (dbuffer,".dbuffer")
67DATA dbuffer[NH+2];
68
69#pragma DATA_SECTION (h,".coeffs")
70DATA h[NH];
71
72DATA r[NX];
73
74DATA error;
75
diff --git a/dsplib_benchmarks/dlms/t2.h b/dsplib_benchmarks/dlms/t2.h
new file mode 100644
index 0000000..04a9587
--- /dev/null
+++ b/dsplib_benchmarks/dlms/t2.h
@@ -0,0 +1,204 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* Test for dlms: sine */
36#define NX 40
37#define NH 21
38#define STEP 1638
39#define FNAME "t2"
40#define MAXERROR 20
41
42DATA x[NX] ={
430,
4411585,
4516384,
4611585,
470,
48-11586,
49-16384,
50-11586,
51-1,
5211585,
5316384,
5411585,
550,
56-11586,
57-16384,
58-11586,
59-1,
6011585,
6116384,
6211585,
630,
64-11586,
65-16384,
66-11586,
67-1,
6811585,
6916384,
7011585,
710,
72-11586,
73-16384,
74-11586,
75-1,
7611585,
7716384,
7811585,
790,
80-11586,
81-16384,
82-11586,
83};
84
85DATA des[NX] ={
8632767,
8723170,
880,
89-23171,
90-32768,
91-23171,
92-1,
9323170,
9432767,
9523170,
960,
97-23171,
98-32768,
99-23171,
100-1,
10123170,
10232767,
10323170,
1040,
105-23171,
106-32768,
107-23171,
108-1,
10923170,
11032767,
11123170,
112-1,
113-23171,
114-32768,
115-23171,
116-1,
11723170,
11832767,
11923170,
120-1,
121-23171,
122-32768,
123-23171,
124-1,
12523170,
126};
127
128DATA htest[NH] ={ /* C54x: hn-1 ... h0 (backward order) */
129-155,
130-1991,
131-2909,
132-2116,
133205,
1342827,
1354100,
1362963,
137-253,
138-3815,
139-5501,
140-3957,
141288,
1424915,
1437057,
1445061,
145-307,
146-6074,
147-8695,
148-6223,
149304,
150};
151
152DATA rtest[NX] ={
1530,
1540,
1550,
156145,
1570,
158-145,
159207,
160873,
1611637,
1621449,
163-376,
164-2946,
165-4748,
166-3788,
167463,
1685808,
1698947,
1706878,
171-448,
172-9094,
173-13706,
174-10329,
175343,
17612418,
17718468,
17813665,
179-93,
180-15001,
181-22046,
182-16135,
183-50,
18416968,
18524730,
18617962,
187124,
188-18465,
189-26743,
190-19315,
191-156,
19219603,
193};
194
195#pragma DATA_SECTION (dbuffer,".dbuffer")
196DATA dbuffer[NH+2];
197
198#pragma DATA_SECTION (h,".coeffs")
199DATA h[NH];
200
201DATA r[NX];
202
203DATA error;
204
diff --git a/dsplib_benchmarks/dlms/t3.h b/dsplib_benchmarks/dlms/t3.h
new file mode 100644
index 0000000..bc54c2d
--- /dev/null
+++ b/dsplib_benchmarks/dlms/t3.h
@@ -0,0 +1,135 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* Test for dlms: rand */
36#define NX 20
37#define NH 12
38#define STEP 327
39#define FNAME "t3"
40#define MAXERROR 20
41
42DATA x[NX] ={
4329499,
44-17620,
457001,
46-919,
4725643,
4817176,
49-2853,
50-31556,
5121063,
52-3624,
537564,
5419132,
5527643,
5615610,
57-21217,
58-6180,
5928538,
6027321,
61-5881,
6225797,
63};
64
65DATA des[NX] ={
66-28974,
67-9643,
6820523,
69-32122,
70-23666,
71-19480,
72-19745,
736802,
74-14930,
75-19739,
76-31767,
7716173,
78-3599,
7928299,
80-2229,
81-5332,
8222689,
831648,
84-19488,
8511281,
86};
87
88DATA htest[NH] ={ /* C54x: hn-1 ... h0 (backward order) */
89484,
90-599,
9160,
92188,
9346,
94-767,
95-106,
96-255,
97346,
98-38,
99-351,
100-139,
101};
102
103DATA rtest[NX] ={
1040,
1050,
106-56,
107-13,
108-84,
109-362,
11093,
111431,
112-51,
113-554,
11431,
115-331,
116-683,
117-278,
118-415,
119361,
120-1214,
121-910,
122-839,
123588,
124};
125
126#pragma DATA_SECTION (dbuffer,".dbuffer")
127DATA dbuffer[NH+2];
128
129#pragma DATA_SECTION (h,".coeffs")
130DATA h[NH];
131
132DATA r[NX];
133
134DATA error;
135
diff --git a/dsplib_benchmarks/dlms/t4.h b/dsplib_benchmarks/dlms/t4.h
new file mode 100644
index 0000000..977caf7
--- /dev/null
+++ b/dsplib_benchmarks/dlms/t4.h
@@ -0,0 +1,287 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* Test for dlms: nois */
36#define NX 64
37#define NH 32
38#define STEP 327
39#define FNAME "t4"
40#define MAXERROR 20
41
42DATA x[NX] ={
4322158,
44-31481,
4511880,
46-7899,
4721744,
48184,
4913727,
50-4661,
51-12805,
52-20339,
53-20092,
5411942,
55-12927,
562731,
57-22881,
5812969,
59-7971,
6023593,
6123177,
626131,
63-226,
6426199,
6521078,
669496,
6720838,
6810500,
69-10357,
70-13781,
71-10408,
722233,
7314884,
74-12499,
7522183,
764461,
77-8493,
7813286,
793052,
80-3613,
8112751,
827950,
8319321,
8429939,
851480,
8624912,
87-21434,
8831440,
89-14979,
90-16232,
9124624,
9215552,
93-23822,
94-31998,
9525814,
96-19718,
97-13191,
9810580,
99-14129,
100-2017,
101-28523,
10232003,
1035425,
104-5014,
1051016,
106-10883,
107};
108
109DATA des[NX] ={
110-206,
111-549,
1121328,
11373,
114-815,
115-185,
116-1635,
1171405,
1181304,
119981,
120-477,
121208,
122-790,
123-2430,
1243582,
125-1508,
1263299,
127-4350,
1281485,
129-7020,
1305136,
131-2488,
132955,
133-1463,
134-73,
1353255,
1361555,
1377734,
138-3018,
1397491,
140-8688,
141-2529,
142-4112,
1433887,
144-3058,
1451099,
146-3404,
147-4485,
148-93,
149-1267,
1503646,
151551,
1523272,
1531263,
1545355,
1551379,
1562986,
1571270,
158436,
159-6044,
1602969,
1612435,
1623012,
1633380,
164-281,
165-1885,
166-5000,
1675358,
168-6417,
1693270,
170-1250,
1713213,
1721179,
1735985,
174};
175
176DATA htest[NH] ={ /* C54x: hn-1 ... h0 (backward order) */
177-8,
178-71,
179325,
180-125,
181262,
182-195,
183126,
184-53,
185194,
186230,
187169,
188142,
189-211,
190205,
191-312,
192214,
193-388,
194189,
195-425,
196223,
197-27,
19875,
199114,
2005,
20168,
202-219,
203401,
204-10,
205284,
20676,
207-47,
208-121,
209};
210
211DATA rtest[NX] ={
2120,
2130,
214-1,
215-2,
21613,
217-13,
2181,
219-1,
220-12,
22139,
2220,
2236,
224-32,
225-2,
2260,
227-27,
228114,
229-165,
230120,
231-225,
232185,
233-238,
234206,
235-224,
236-14,
237-19,
238-61,
239416,
240-149,
241510,
242-510,
243572,
244-637,
245433,
246-447,
247166,
248-316,
249-199,
25024,
251-245,
252337,
253-383,
254375,
255-280,
256892,
257-242,
2581054,
259-280,
260534,
261-523,
262507,
263-2,
264-100,
265179,
266-526,
267167,
268-938,
269729,
270-791,
271380,
272-471,
273180,
27480,
275249,
276};
277
278#pragma DATA_SECTION (dbuffer,".dbuffer")
279DATA dbuffer[NH+2];
280
281#pragma DATA_SECTION (h,".coeffs")
282DATA h[NH];
283
284DATA r[NX];
285
286DATA error;
287
diff --git a/dsplib_benchmarks/dlms/t5.h b/dsplib_benchmarks/dlms/t5.h
new file mode 100644
index 0000000..6889d68
--- /dev/null
+++ b/dsplib_benchmarks/dlms/t5.h
@@ -0,0 +1,468 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* Test for dlms: sine */
36#define NX 128
37#define NH 21
38#define STEP 1638
39#define FNAME "t5"
40#define MAXERROR 20
41
42DATA x[NX] ={
430,
4411585,
4516384,
4611585,
470,
48-11586,
49-16384,
50-11586,
51-1,
5211585,
5316384,
5411585,
550,
56-11586,
57-16384,
58-11586,
59-1,
6011585,
6116384,
6211585,
630,
64-11586,
65-16384,
66-11586,
67-1,
6811585,
6916384,
7011585,
710,
72-11586,
73-16384,
74-11586,
75-1,
7611585,
7716384,
7811585,
790,
80-11586,
81-16384,
82-11586,
83-1,
8411585,
8516384,
8611585,
870,
88-11586,
89-16384,
90-11586,
91-1,
9211585,
9316384,
9411585,
95-1,
96-11586,
97-16384,
98-11586,
99-1,
10011585,
10116384,
10211585,
1030,
104-11586,
105-16384,
106-11586,
107-1,
10811585,
10916384,
11011585,
111-1,
112-11586,
113-16384,
114-11586,
115-1,
11611585,
11716384,
11811585,
1190,
120-11586,
121-16384,
122-11586,
123-1,
12411585,
12516384,
12611585,
127-1,
128-11586,
129-16384,
130-11586,
131-1,
13211585,
13316384,
13411585,
1350,
136-11586,
137-16384,
138-11586,
139-1,
14011585,
14116384,
14211585,
143-1,
144-11586,
145-16384,
146-11586,
1470,
14811585,
14916384,
15011585,
1510,
152-11586,
153-16384,
154-11586,
155-1,
15611585,
15716384,
15811585,
159-1,
160-11586,
161-16384,
162-11586,
163-1,
16411585,
16516384,
16611585,
1670,
168-11586,
169-16384,
170-11586,
171};
172
173DATA des[NX] ={
17432767,
17523170,
1760,
177-23171,
178-32768,
179-23171,
180-1,
18123170,
18232767,
18323170,
1840,
185-23171,
186-32768,
187-23171,
188-1,
18923170,
19032767,
19123170,
1920,
193-23171,
194-32768,
195-23171,
196-1,
19723170,
19832767,
19923170,
200-1,
201-23171,
202-32768,
203-23171,
204-1,
20523170,
20632767,
20723170,
208-1,
209-23171,
210-32768,
211-23171,
212-1,
21323170,
21432767,
21523170,
216-1,
217-23171,
218-32768,
219-23171,
220-1,
22123170,
22232767,
22323170,
224-1,
225-23171,
226-32768,
227-23171,
228-1,
22923170,
23032767,
23123170,
232-1,
233-23171,
234-32768,
235-23171,
236-1,
23723170,
23832767,
23923170,
2400,
241-23171,
242-32768,
243-23171,
244-1,
24523170,
24632767,
24723170,
2480,
249-23171,
250-32768,
251-23171,
252-1,
25323170,
25432767,
25523170,
2560,
257-23171,
258-32768,
259-23171,
260-1,
26123170,
26232767,
26323170,
2640,
265-23171,
266-32768,
267-23171,
2680,
26923170,
27032767,
27123170,
2720,
273-23171,
274-32768,
275-23171,
276-1,
27723170,
27832767,
27923170,
2800,
281-23171,
282-32768,
283-23171,
2840,
28523170,
28632767,
28723170,
2880,
289-23171,
290-32768,
291-23171,
292-1,
29323170,
29432767,
29523170,
2960,
297-23171,
298-32768,
299-23171,
3000,
30123170,
302};
303
304DATA htest[NH] ={ /* C54x: hn-1 ... h0 (backward order) */
305-63,
306-2563,
307-3811,
308-2818,
309113,
3103399,
3115001,
3123665,
313-160,
314-4388,
315-6402,
316-4660,
317196,
3185488,
3197958,
3205764,
321-214,
322-6646,
323-9597,
324-6926,
325212,
326};
327
328DATA rtest[NX] ={
3290,
3300,
3310,
332145,
3330,
334-145,
335207,
336873,
3371637,
3381449,
339-376,
340-2946,
341-4748,
342-3788,
343463,
3445808,
3458947,
3466878,
347-448,
348-9094,
349-13706,
350-10329,
351343,
35212418,
35318468,
35413665,
355-93,
356-15001,
357-22046,
358-16135,
359-50,
36016968,
36124730,
36217962,
363124,
364-18465,
365-26743,
366-19315,
367-156,
36819603,
36928253,
37020316,
371162,
372-20467,
373-29385,
374-21057,
375-155,
37621124,
37730234,
37821605,
379140,
380-21622,
381-30870,
382-22012,
383-122,
38421999,
38531346,
38622312,
387104,
388-22285,
389-31703,
390-22535,
391-87,
39222501,
39331971,
39422700,
39572,
396-22665,
397-32171,
398-22822,
399-59,
40022789,
40132321,
40222912,
40348,
404-22883,
405-32434,
406-22979,
407-38,
40822953,
40932518,
41023029,
41130,
412-23007,
413-32581,
414-23065,
415-24,
41623047,
41732628,
41823093,
41919,
420-23078,
421-32663,
422-23113,
423-15,
42423101,
42532690,
42623128,
42712,
428-23118,
429-32709,
430-23139,
431-9,
43223131,
43332724,
43423147,
4357,
436-23141,
437-32735,
438-23153,
439-6,
44023148,
44132743,
44223158,
4434,
444-23154,
445-32750,
446-23161,
447-3,
44823158,
44932754,
45023163,
4513,
452-23161,
453-32758,
454-23165,
455-2,
45623163,
457};
458
459#pragma DATA_SECTION (dbuffer,".dbuffer")
460DATA dbuffer[NH+2];
461
462#pragma DATA_SECTION (h,".coeffs")
463DATA h[NH];
464
465DATA r[NX];
466
467DATA error;
468
diff --git a/dsplib_benchmarks/dlms/t6.h b/dsplib_benchmarks/dlms/t6.h
new file mode 100644
index 0000000..9cc7b56
--- /dev/null
+++ b/dsplib_benchmarks/dlms/t6.h
@@ -0,0 +1,375 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* Test for dlms: rand */
36#define NX 100
37#define NH 12
38#define STEP 655
39#define FNAME "t6"
40#define MAXERROR 20
41
42DATA x[NX] ={
4316027,
44-15208,
45-3938,
4628401,
4712014,
48-18838,
4922232,
508439,
51-24001,
52-19194,
537025,
548512,
55-8489,
564924,
57-3184,
58-29891,
59-30987,
60-12276,
61-31925,
62-7605,
6312000,
64-26684,
65-30452,
667365,
677113,
68-31735,
69-31696,
70-20312,
715696,
72-28995,
73-8679,
748614,
7514262,
7612626,
77-27258,
78-2992,
79-3813,
80-9618,
81-22702,
8211510,
8313055,
8414909,
85-1417,
863594,
87-24835,
88-3228,
8914147,
9025745,
91-14870,
92-16072,
9323959,
94-17541,
9519979,
9626764,
97-17571,
98-17085,
99-29507,
100-27631,
1019228,
102-20258,
10322535,
104-21372,
105-21575,
10632393,
107-3946,
108-10483,
109-12176,
110-8843,
111-6997,
1125998,
113-24921,
114-30269,
115-2714,
11624239,
11728457,
118-15437,
119-22263,
12024435,
121-17179,
1229557,
12330597,
12410808,
12524273,
126-32118,
127-23789,
12820889,
129-4577,
13025579,
13115394,
13212276,
133-10086,
134-21887,
135-22570,
136-20243,
137-5083,
13823328,
139-639,
14020704,
141-2571,
142-2795,
143};
144
145DATA des[NX] ={
146-3232,
147-5753,
14826319,
149-32402,
150-13278,
151-29546,
15212660,
1539837,
15431652,
1553451,
156-6549,
157-19740,
1588205,
15915293,
160-8134,
161-32121,
162-5253,
16316624,
16419258,
16527522,
16622591,
167-8667,
1687916,
16915156,
170-20061,
17126529,
1724535,
1738636,
174-17406,
1753196,
17628283,
177-10801,
17810192,
179-7085,
1808343,
18113046,
182-6739,
183-5661,
18410171,
18522123,
186-8415,
187-4899,
1886203,
1894308,
19014191,
191741,
19218114,
193-699,
194-20585,
19513148,
19631634,
19720095,
19813340,
199-986,
200-25257,
20110803,
202-8823,
203-23590,
2044375,
20521168,
20611399,
20732731,
20830253,
209-28911,
210-9155,
2113179,
212-15613,
2136379,
214-29539,
2154656,
21613163,
21730296,
21816417,
21915728,
220-4465,
2218799,
22219858,
223-27271,
22429193,
22527258,
2266683,
227-16151,
22824474,
229878,
23015246,
231-5097,
23230236,
233-28046,
2343500,
235-13633,
23623459,
237-10764,
23811809,
239-29266,
240-9395,
241-112,
242-4297,
2434093,
2447642,
245-25340,
246};
247
248DATA htest[NH] ={ /* C54x: hn-1 ... h0 (backward order) */
249-753,
250481,
2511445,
252-2282,
253-1169,
254376,
255-2054,
256-2327,
257-767,
258986,
259-1730,
260-2667,
261};
262
263DATA rtest[NX] ={
2640,
2650,
2664,
26726,
268-307,
269787,
270-156,
271-457,
272-361,
273375,
274-150,
275-71,
276377,
27761,
278-859,
279752,
2802236,
28128,
282-1686,
283262,
284555,
285463,
2861732,
2872315,
288-259,
2891391,
2905677,
2913189,
2921305,
2934888,
2946036,
295381,
296-1269,
2971552,
2983173,
299770,
300-582,
3012254,
3024767,
3032674,
304-2141,
305-1114,
306679,
307559,
308-2189,
3091869,
310213,
311-923,
312-353,
3132579,
314-2188,
315-4241,
3161581,
317381,
318-3642,
319-490,
3204108,
3212482,
3222602,
3231069,
3242709,
325-849,
3262340,
3272555,
328-1414,
3291269,
3305343,
3311297,
332-1752,
3333348,
3342612,
3352518,
3364227,
337-1521,
338-2467,
3393427,
3405007,
341-3164,
342-5066,
3431383,
344-1858,
345-3275,
346-4996,
3472432,
348-577,
349-7362,
350-597,
3511407,
352-2297,
353-1960,
354-5172,
3555024,
356-1165,
357618,
3584294,
359-420,
3601248,
3612285,
3621105,
363955,
364};
365
366#pragma DATA_SECTION (dbuffer,".dbuffer")
367DATA dbuffer[NH+2];
368
369#pragma DATA_SECTION (h,".coeffs")
370DATA h[NH];
371
372DATA r[NX];
373
374DATA error;
375
diff --git a/dsplib_benchmarks/dlms/t7.h b/dsplib_benchmarks/dlms/t7.h
new file mode 100644
index 0000000..e3c21e3
--- /dev/null
+++ b/dsplib_benchmarks/dlms/t7.h
@@ -0,0 +1,223 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* Test for dlms: nois */
36#define NX 50
37#define NH 10
38#define STEP 983
39#define FNAME "t7"
40#define MAXERROR 20
41
42DATA x[NX] ={
4326099,
4416682,
4519079,
4620640,
4711141,
48-19604,
49-14871,
508272,
512415,
52-28869,
53-26938,
54-14988,
55-5960,
56-1702,
5726803,
586307,
59-11210,
60-1430,
616368,
62-22188,
6321592,
6429892,
656261,
66-30884,
6720454,
687216,
6913205,
70-26726,
71-4923,
72-8155,
73-21879,
7421833,
7522193,
76-3172,
7729923,
78-23125,
7924243,
8017657,
81-3660,
827904,
8329601,
849175,
85-16560,
86-9654,
87-20457,
88-614,
89-5946,
90-2391,
917270,
92-28104,
93};
94
95DATA des[NX] ={
96-3018,
97-168,
98-6360,
99-2508,
100-6626,
101-939,
102-2314,
103109,
1041549,
10511687,
1067261,
1079287,
1089364,
1098412,
110-6401,
111-2164,
112-830,
113551,
114-10758,
115-4780,
116-7416,
117337,
118-5790,
11911210,
120-6581,
121365,
122-6531,
12310106,
124-14460,
12513444,
1268411,
1272729,
128-6041,
1292248,
130-607,
1315387,
132-20366,
1337230,
134-13141,
135-3582,
136856,
1372873,
138-824,
1396101,
140-4640,
1416795,
14211879,
143-2334,
1445540,
14511473,
146};
147
148DATA htest[NH] ={ /* C54x: hn-1 ... h0 (backward order) */
1493446,
150498,
151-138,
152184,
153656,
154-1951,
155324,
156-2104,
157156,
158-2132,
159};
160
161DATA rtest[NX] ={
1620,
1630,
164-42,
165-49,
166-214,
167-63,
1683,
16967,
17069,
171285,
172438,
173739,
174798,
175716,
176-498,
177-534,
178-226,
179-895,
180-1674,
181-157,
182-599,
183-1118,
184-362,
1851386,
186-962,
187-1573,
188-793,
1891323,
190-595,
1912432,
1922655,
193503,
194-2814,
1951293,
196-1213,
197193,
198-4405,
199-588,
200-3163,
201-1392,
202-1057,
20399,
204389,
2051935,
206-893,
2072818,
2084163,
209-230,
2101913,
2114800,
212};
213
214#pragma DATA_SECTION (dbuffer,".dbuffer")
215DATA dbuffer[NH+2];
216
217#pragma DATA_SECTION (h,".coeffs")
218DATA h[NH];
219
220DATA r[NX];
221
222DATA error;
223
diff --git a/dsplib_benchmarks/dlms/t8.h b/dsplib_benchmarks/dlms/t8.h
new file mode 100644
index 0000000..2277c18
--- /dev/null
+++ b/dsplib_benchmarks/dlms/t8.h
@@ -0,0 +1,162 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* Test for dlms: rand */
36#define NX 32
37#define NH 3
38#define STEP 1310
39#define FNAME "t8"
40#define MAXERROR 20
41
42DATA x[NX] ={
43-10371,
44-6436,
45-12604,
46-5796,
47-14029,
48-6939,
49197,
5014547,
51-12701,
52-25417,
53-3717,
54-2179,
55-31807,
5610751,
5714683,
58-14311,
59-15610,
6013662,
6118602,
6231860,
63-1747,
6426398,
65-3208,
6619956,
6721552,
68-21872,
69-6953,
701360,
7114294,
724534,
73-2569,
74-3585,
75};
76
77DATA des[NX] ={
78-27018,
79-3704,
80-8763,
81-12942,
8223058,
8317005,
8429475,
853797,
86-31835,
876302,
8820722,
8931266,
90-18225,
9113348,
921445,
9328370,
9413982,
95-17824,
96-3301,
97-21483,
9830724,
99-9456,
100-29554,
10116733,
10225874,
103-14015,
104-16306,
10528359,
106-24184,
10728889,
10813228,
10922785,
110};
111
112DATA htest[NH] ={ /* C54x: hn-1 ... h0 (backward order) */
113-1196,
114-682,
115288,
116};
117
118DATA rtest[NX] ={
1190,
1200,
121-132,
122-84,
123-278,
124-297,
12534,
12678,
127-203,
128-299,
129990,
130634,
131-84,
1321967,
1331659,
134-2089,
135-401,
1361676,
137-50,
138-1293,
139-2019,
140-1756,
141-512,
142-1254,
143-1700,
144-769,
145596,
146668,
147403,
148-525,
149-840,
150-176,
151};
152
153#pragma DATA_SECTION (dbuffer,".dbuffer")
154DATA dbuffer[NH+2];
155
156#pragma DATA_SECTION (h,".coeffs")
157DATA h[NH];
158
159DATA r[NX];
160
161DATA error;
162
diff --git a/dsplib_benchmarks/dlms/test.h b/dsplib_benchmarks/dlms/test.h
new file mode 100644
index 0000000..9cc7b56
--- /dev/null
+++ b/dsplib_benchmarks/dlms/test.h
@@ -0,0 +1,375 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* Test for dlms: rand */
36#define NX 100
37#define NH 12
38#define STEP 655
39#define FNAME "t6"
40#define MAXERROR 20
41
42DATA x[NX] ={
4316027,
44-15208,
45-3938,
4628401,
4712014,
48-18838,
4922232,
508439,
51-24001,
52-19194,
537025,
548512,
55-8489,
564924,
57-3184,
58-29891,
59-30987,
60-12276,
61-31925,
62-7605,
6312000,
64-26684,
65-30452,
667365,
677113,
68-31735,
69-31696,
70-20312,
715696,
72-28995,
73-8679,
748614,
7514262,
7612626,
77-27258,
78-2992,
79-3813,
80-9618,
81-22702,
8211510,
8313055,
8414909,
85-1417,
863594,
87-24835,
88-3228,
8914147,
9025745,
91-14870,
92-16072,
9323959,
94-17541,
9519979,
9626764,
97-17571,
98-17085,
99-29507,
100-27631,
1019228,
102-20258,
10322535,
104-21372,
105-21575,
10632393,
107-3946,
108-10483,
109-12176,
110-8843,
111-6997,
1125998,
113-24921,
114-30269,
115-2714,
11624239,
11728457,
118-15437,
119-22263,
12024435,
121-17179,
1229557,
12330597,
12410808,
12524273,
126-32118,
127-23789,
12820889,
129-4577,
13025579,
13115394,
13212276,
133-10086,
134-21887,
135-22570,
136-20243,
137-5083,
13823328,
139-639,
14020704,
141-2571,
142-2795,
143};
144
145DATA des[NX] ={
146-3232,
147-5753,
14826319,
149-32402,
150-13278,
151-29546,
15212660,
1539837,
15431652,
1553451,
156-6549,
157-19740,
1588205,
15915293,
160-8134,
161-32121,
162-5253,
16316624,
16419258,
16527522,
16622591,
167-8667,
1687916,
16915156,
170-20061,
17126529,
1724535,
1738636,
174-17406,
1753196,
17628283,
177-10801,
17810192,
179-7085,
1808343,
18113046,
182-6739,
183-5661,
18410171,
18522123,
186-8415,
187-4899,
1886203,
1894308,
19014191,
191741,
19218114,
193-699,
194-20585,
19513148,
19631634,
19720095,
19813340,
199-986,
200-25257,
20110803,
202-8823,
203-23590,
2044375,
20521168,
20611399,
20732731,
20830253,
209-28911,
210-9155,
2113179,
212-15613,
2136379,
214-29539,
2154656,
21613163,
21730296,
21816417,
21915728,
220-4465,
2218799,
22219858,
223-27271,
22429193,
22527258,
2266683,
227-16151,
22824474,
229878,
23015246,
231-5097,
23230236,
233-28046,
2343500,
235-13633,
23623459,
237-10764,
23811809,
239-29266,
240-9395,
241-112,
242-4297,
2434093,
2447642,
245-25340,
246};
247
248DATA htest[NH] ={ /* C54x: hn-1 ... h0 (backward order) */
249-753,
250481,
2511445,
252-2282,
253-1169,
254376,
255-2054,
256-2327,
257-767,
258986,
259-1730,
260-2667,
261};
262
263DATA rtest[NX] ={
2640,
2650,
2664,
26726,
268-307,
269787,
270-156,
271-457,
272-361,
273375,
274-150,
275-71,
276377,
27761,
278-859,
279752,
2802236,
28128,
282-1686,
283262,
284555,
285463,
2861732,
2872315,
288-259,
2891391,
2905677,
2913189,
2921305,
2934888,
2946036,
295381,
296-1269,
2971552,
2983173,
299770,
300-582,
3012254,
3024767,
3032674,
304-2141,
305-1114,
306679,
307559,
308-2189,
3091869,
310213,
311-923,
312-353,
3132579,
314-2188,
315-4241,
3161581,
317381,
318-3642,
319-490,
3204108,
3212482,
3222602,
3231069,
3242709,
325-849,
3262340,
3272555,
328-1414,
3291269,
3305343,
3311297,
332-1752,
3333348,
3342612,
3352518,
3364227,
337-1521,
338-2467,
3393427,
3405007,
341-3164,
342-5066,
3431383,
344-1858,
345-3275,
346-4996,
3472432,
348-577,
349-7362,
350-597,
3511407,
352-2297,
353-1960,
354-5172,
3555024,
356-1165,
357618,
3584294,
359-420,
3601248,
3612285,
3621105,
363955,
364};
365
366#pragma DATA_SECTION (dbuffer,".dbuffer")
367DATA dbuffer[NH+2];
368
369#pragma DATA_SECTION (h,".coeffs")
370DATA h[NH];
371
372DATA r[NX];
373
374DATA error;
375
diff --git a/dsplib_benchmarks/fir1/FIR_T.C b/dsplib_benchmarks/fir1/FIR_T.C
new file mode 100644
index 0000000..7c8da33
--- /dev/null
+++ b/dsplib_benchmarks/fir1/FIR_T.C
@@ -0,0 +1,142 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35//*****************************************************************************
36// Filename: fir_t.c
37// Version: 0.01
38// Description: test for fir routine
39//*****************************************************************************
40
41#include <stdlib.h>
42#include <math.h>
43#include <tms320.h>
44#include <dsplib.h>
45#include <stdio.h>
46#include <time.h>
47
48#define NUMBER_OF_ITERATIONS 1000l
49
50
51
52//#include "t1.h"
53//#include "t2.h"
54//#include "t3.h"
55//#include "t4.h"
56#include "t5_ran.h"
57//#include "t6.h"
58//#include "t7.h"
59//#include "t8.h"
60//#include "test.h"
61
62short test(DATA *r, DATA *rtest, short n, DATA maxerror);
63
64short eflag1= PASS;
65short eflag2= PASS;
66DATA *dbptr = &db[0];
67
68void main()
69{
70 short i;
71 int nx ,nh ;
72 long iterations1 ;
73 clock_t t1,t2, t11,t22 ,total1_t ,total2_t,diff ;
74
75
76 // 1. Test for single-buffer
77
78 // clear
79 nx = NX ;
80 nx = 1 ; // check on 1 element
81 nh = NH ;
82
83 for (i = 0; i < nx; i++) r[i] = 0; // clear output buffer (optional)
84 for (i = 0; i < (NH+2); i++) db[i] = 0; // clear delay buffer (a must)
85
86 // compute
87
88 t1 = clock() ;
89 t2 = clock() ;
90 diff = t2 - t1 ; /// overhead of calling
91 t1 = clock() ; // compute
92
93 fir(x, h, r, dbptr, nx, nh);
94
95
96 t2 = clock() ;
97
98
99 total1_t = (double) (t2 - t1-diff) ;
100 printf("number of elements in the vector is is %d and corefficients %d \n",nx, nh ) ;
101 printf("FIR filter time (in cycles) %ld \n", total1_t) ;
102
103
104 nx = 32 ;
105
106 t1 = clock() ; // compute
107
108 fir(x, h, r, dbptr, nx, nh);
109
110
111 t2 = clock() ;
112
113
114 total1_t = (double) (t2 - t1-diff) ;
115 printf("number of elements in the vector is is %d and corefficients %d \n",nx, nh ) ;
116 printf("FIR filter time (in cycles) %ld \n", total1_t) ;
117
118
119 // test
120 // eflag1 = test (r, rtest, nx, MAXERROR);
121
122// if( (eflag1 != PASS) || (eflag2 != PASS) )
123// {
124// exit(-1);
125 // }
126
127
128 for (iterations1 = 0; iterations1 < NUMBER_OF_ITERATIONS;iterations1++)
129
130 {
131
132 fir(x, h, r, dbptr, nx, nh);
133
134 }
135
136
137 printf("Done with %ld iteration \n",iterations1 );
138
139
140
141 return;
142}
diff --git a/dsplib_benchmarks/fir1/TEST.C b/dsplib_benchmarks/fir1/TEST.C
new file mode 100644
index 0000000..209777d
--- /dev/null
+++ b/dsplib_benchmarks/fir1/TEST.C
@@ -0,0 +1,67 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35//*****************************************************************************
36// Filename: test.c
37// Version: 0.01
38// Description: test r against rtest (array of n elements)
39// Returns eflag
40//-----------------------------------------------------------------------------
41// Revision History:
42// 0.01, R. Piedra, 06/15/98, - Original release
43//*****************************************************************************
44#include <tms320.h>
45
46short test(DATA *r, DATA *rtest, short n, DATA maxerror)
47
48{
49short i;
50short eflag = PASS; // error flag or index into r vector where error
51DATA elevel = 0; // error level at failing eflag index location
52DATA emax = 0; // max error level detected across when NOERROR
53
54for (i=0;i<n;i++)
55 {
56 if ( (elevel = ABSVAL(rtest[i] - r[i])) > maxerror)
57 {
58 eflag =i; // if error --> eflag = index and emax= max error
59 emax = elevel; // if no error --> eflag = -1 and emax = max error
60 break;
61 }
62 else
63 if (elevel>emax) emax = elevel;
64 }
65 // Pass to Host: eflag and emax
66return(eflag);
67}
diff --git a/dsplib_benchmarks/fir1/fir1.cmd b/dsplib_benchmarks/fir1/fir1.cmd
new file mode 100644
index 0000000..94bf6e6
--- /dev/null
+++ b/dsplib_benchmarks/fir1/fir1.cmd
@@ -0,0 +1,68 @@
1/**********************************************************/
2/* */
3/* LINKER command file for LEAD3 memory map */
4/* */
5/**********************************************************/
6
7-stack 0x1000 /* PRIMARY STACK SIZE */
8-sysstack 0x0400 /* SECONDARY STACK SIZE */
9-heap 0x1000 /* HEAP AREA SIZE */
10
11MEMORY
12{
13 PAGE 0:
14
15 MMR : origin = 0000000h, length = 00000c0h
16 SPRAM : origin = 00000c0h, length = 0000040
17 DARAM0 : origin = 0000100h, length = 0003F00h
18 DARAM1 : origin = 0004000h, length = 0004000h
19 DARAM2 : origin = 0008000h, length = 0004000h
20 DARAM3 : origin = 000c000h, length = 0004000h
21
22 SARAM01 : origin = 0010000h, length = 0008000h
23 SARAM2 : origin = 0018000h, length = 0004000h
24 SARAM3 : origin = 001c000h, length = 0004000h
25 SARAM4 : origin = 0020000h, length = 0004000h
26 SARAM5 : origin = 0024000h, length = 0004000h
27 SARAM6 : origin = 0028000h, length = 0004000h
28 SARAM7 : origin = 002c000h, length = 0004000h
29 SARAM8 : origin = 0030000h, length = 0004000h
30 SARAM9 : origin = 0034000h, length = 0004000h
31 SARAM10 : origin = 0038000h, length = 0004000h
32 SARAM11 : origin = 003c000h, length = 0004000h
33 SARAM12 : origin = 0040000h, length = 0004000h
34 SARAM13 : origin = 0044000h, length = 0004000h
35 SARAM14 : origin = 0048000h, length = 0004000h
36 SARAM15 : origin = 004c000h, length = 0004000h
37
38 CE0 : origin = 0050000h, length = 03b0000h
39 CE1 : origin = 0400000h, length = 0400000h
40 CE2 : origin = 0800000h, length = 0400000h
41 CE3 : origin = 0c00000h, length = 03f8000h
42
43 PDROM : origin = 0ff8000h, length = 07f00h
44 VECS : origin = 0ffff00h, length = 00100h /* reset vector */
45}
46
47
48SECTIONS
49{
50 vectors (NOLOAD) : {} > DARAM0 PAGE 0 /* interrupt vector table */ /* was VECS */
51 .cinit : {} > SARAM01 PAGE 0
52 .text : {} > SARAM01 PAGE 0
53 isrs : {} > SARAM2 PAGE 0
54
55 .stack : {} > DARAM0 PAGE 0 ALIGN = 4
56 .sysstack: {} > DARAM0 PAGE 0 ALIGN = 4
57 .sysmem : {} > DARAM1 PAGE 0 ALIGN = 4
58 .data : {} > SARAM8 PAGE 0 /* force .data to not be on Page 0 */
59 .bss:saram : {} > DARAM2 PAGE 0 /* must be a different on-chip block than .bss */
60 .bss:saram2 : {} > SARAM3 PAGE 0 /* must be a different on-chip block than .bss */
61 //.bss : {} > SARAM15 PAGE 0 /* for normal testing, move .bss off of DARAM */
62 .bss : {} > DARAM3 PAGE 0 /* for optimal timing tests, put .bss in DARAM */
63 .input : {} > DARAM3 PAGE 0 /* for optimal timing tests, put .input in DARAM */
64 .coeffs : {} > DARAM0 PAGE 0 /* for optimal timing tests, put .coeffs in DARAM */
65 .dbuffer : {} > DARAM1 PAGE 0 /* for optimal timing tests, put .dbuffer in DARAM */
66 .const : {} > SARAM8 PAGE 0
67 .cio : {} > DARAM2 PAGE 0
68} \ No newline at end of file
diff --git a/dsplib_benchmarks/fir1/t1.h b/dsplib_benchmarks/fir1/t1.h
new file mode 100644
index 0000000..3590d9d
--- /dev/null
+++ b/dsplib_benchmarks/fir1/t1.h
@@ -0,0 +1,73 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35#define NX 8
36#define NH 4
37#define FNAME "t1"
38#define MAXERROR 10
39
40DATA x[NX] ={
4132767,
420,
430,
440,
450,
460,
470,
480,
49};
50
51#pragma DATA_SECTION(h,".coeffs")
52DATA h[NH] ={ /* b0 b1 b2 ... b(NH-1) */
5317562,
54-10491,
554168,
56-547,
57};
58
59#pragma DATA_SECTION(db,".dbuffer")
60DATA db[NH+2] ;
61
62DATA rtest[NX] ={
6317562,
64-10490,
654169,
66-547,
670,
680,
690,
700,
71};
72
73DATA r[NX];
diff --git a/dsplib_benchmarks/fir1/t2.h b/dsplib_benchmarks/fir1/t2.h
new file mode 100644
index 0000000..f6218ee
--- /dev/null
+++ b/dsplib_benchmarks/fir1/t2.h
@@ -0,0 +1,373 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35#define NX 128
36#define NH 64
37#define FNAME "t2"
38#define MAXERROR 10
39
40DATA x[NX] ={
4132767,
420,
430,
440,
450,
460,
470,
480,
490,
500,
510,
520,
530,
540,
550,
560,
570,
580,
590,
600,
610,
620,
630,
640,
650,
660,
670,
680,
690,
700,
710,
720,
730,
740,
750,
760,
770,
780,
790,
800,
810,
820,
830,
840,
850,
860,
870,
880,
890,
900,
910,
920,
930,
940,
950,
960,
970,
980,
990,
1000,
1010,
1020,
1030,
1040,
1050,
1060,
1070,
1080,
1090,
1100,
1110,
1120,
1130,
1140,
1150,
1160,
1170,
1180,
1190,
1200,
1210,
1220,
1230,
1240,
1250,
1260,
1270,
1280,
1290,
1300,
1310,
1320,
1330,
1340,
1350,
1360,
1370,
1380,
1390,
1400,
1410,
1420,
1430,
1440,
1450,
1460,
1470,
1480,
1490,
1500,
1510,
1520,
1530,
1540,
1550,
1560,
1570,
1580,
1590,
1600,
1610,
1620,
1630,
1640,
1650,
1660,
1670,
1680,
169};
170
171#pragma DATA_SECTION(h,".coeffs")
172DATA h[NH] ={ /* b0 b1 b2 ... b(NH-1) */
173816,
174547,
175-91,
176-1006,
177670,
178-116,
179240,
180609,
181880,
182497,
183-676,
184-197,
185909,
186870,
187-188,
188821,
189-923,
190-308,
191653,
192-1024,
193-754,
194-621,
195-629,
196216,
197-476,
198-629,
199-1012,
200515,
201-115,
202901,
203-71,
204-170,
205722,
20652,
207-621,
208359,
209705,
210-1003,
211378,
212-252,
213692,
2145,
215437,
216-149,
217-408,
218-648,
219-640,
220380,
221-412,
22286,
223-729,
224413,
225-254,
226751,
227738,
228195,
229-8,
230834,
231671,
232302,
233663,
234334,
235-330,
236-439,
237};
238
239#pragma DATA_SECTION(db,".dbuffer")
240DATA db[NH+2] ;
241
242DATA rtest[NX] ={
243817,
244547,
245-91,
246-1005,
247671,
248-115,
249241,
250609,
251881,
252497,
253-676,
254-197,
255909,
256870,
257-187,
258822,
259-923,
260-307,
261654,
262-1023,
263-754,
264-620,
265-629,
266217,
267-476,
268-629,
269-1012,
270515,
271-115,
272901,
273-71,
274-170,
275723,
27653,
277-621,
278359,
279706,
280-1003,
281378,
282-252,
283693,
2846,
285437,
286-148,
287-408,
288-648,
289-640,
290380,
291-412,
29287,
293-729,
294413,
295-254,
296752,
297738,
298195,
299-7,
300835,
301671,
302303,
303664,
304334,
305-330,
306-439,
3070,
3080,
3090,
3100,
3110,
3120,
3130,
3140,
3150,
3160,
3170,
3180,
3190,
3200,
3210,
3220,
3230,
3240,
3250,
3260,
3270,
3280,
3290,
3300,
3310,
3320,
3330,
3340,
3350,
3360,
3370,
3380,
3390,
3400,
3410,
3420,
3430,
3440,
3450,
3460,
3470,
3480,
3490,
3500,
3510,
3520,
3530,
3540,
3550,
3560,
3570,
3580,
3590,
3600,
3610,
3620,
3630,
3640,
3650,
3660,
3670,
3680,
3690,
3700,
371};
372
373DATA r[NX];
diff --git a/dsplib_benchmarks/fir1/t3.h b/dsplib_benchmarks/fir1/t3.h
new file mode 100644
index 0000000..9fd46af
--- /dev/null
+++ b/dsplib_benchmarks/fir1/t3.h
@@ -0,0 +1,73 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35#define NX 8
36#define NH 4
37#define FNAME "t3"
38#define MAXERROR 10
39
40DATA x[NX] ={
41-10408,
422233,
4314884,
44-12499,
4522183,
464461,
47-8493,
4813286,
49};
50
51#pragma DATA_SECTION(h,".coeffs")
52DATA h[NH] ={ /* b0 b1 b2 ... b(NH-1) */
533654,
54-4326,
5515268,
569519,
57};
58
59#pragma DATA_SECTION(db,".dbuffer")
60DATA db[NH+2] ;
61
62DATA rtest[NX] ={
63-1161,
641623,
65-3484,
66-5342,
6711708,
68-3930,
695170,
7011126,
71};
72
73DATA r[NX];
diff --git a/dsplib_benchmarks/fir1/t4.h b/dsplib_benchmarks/fir1/t4.h
new file mode 100644
index 0000000..c01c587
--- /dev/null
+++ b/dsplib_benchmarks/fir1/t4.h
@@ -0,0 +1,373 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35#define NX 128
36#define NH 64
37#define FNAME "t4"
38#define MAXERROR 10
39
40DATA x[NX] ={
4119321,
4229939,
431480,
4424912,
45-21434,
4631440,
47-14979,
48-16232,
4924624,
5015552,
51-23822,
52-31998,
5325814,
54-19718,
55-13191,
5610580,
57-14129,
58-2017,
59-28523,
6032003,
615425,
62-5014,
631016,
64-10883,
65-4398,
66-17961,
675230,
6817063,
691954,
709209,
71-19067,
72-7877,
7318568,
7411851,
75-2550,
764445,
7719281,
78-28890,
796741,
80-29474,
81-5546,
82-12780,
8324534,
84-31785,
8517560,
8630857,
8732118,
8818930,
89-4021,
90-111,
91-18746,
929403,
93-11795,
9430152,
9514852,
96-5771,
9716027,
98-15208,
99-3938,
10028401,
10112014,
102-18838,
10322232,
1048440,
105-24002,
106-19194,
1077025,
1088512,
109-8489,
1104924,
111-3184,
112-29892,
113-30987,
114-12276,
115-31926,
116-7605,
11712000,
118-26684,
119-30453,
1207365,
1217113,
122-31736,
123-31697,
124-20312,
1255696,
126-28995,
127-8680,
1288614,
12914262,
13012626,
131-27258,
132-2992,
133-3813,
134-9618,
135-22702,
13611511,
13713055,
13814910,
139-1417,
1403594,
141-24836,
142-3228,
14314148,
14425745,
145-14870,
146-16072,
14723960,
148-17541,
14919980,
15026764,
151-17571,
152-17085,
153-29508,
154-27631,
1559228,
156-20259,
15722535,
158-21372,
159-21575,
16032394,
161-3946,
162-10483,
163-12176,
164-8843,
165-6997,
1665998,
167-24921,
168-30270,
169};
170
171#pragma DATA_SECTION(h,".coeffs")
172DATA h[NH] ={ /* b0 b1 b2 ... b(NH-1) */
173-88,
174783,
175919,
176-499,
177-720,
178789,
179-556,
180308,
181989,
182349,
183784,
184-1039,
185-769,
186675,
187-148,
188826,
189497,
190396,
191-326,
192-708,
193-730,
194-655,
195-165,
196754,
197-21,
198669,
199-84,
200-91,
201-105,
202-186,
203850,
204-1048,
205-430,
206-956,
207409,
208317,
2091023,
210111,
211-212,
212-639,
213265,
214494,
215-263,
216-1039,
217-170,
218537,
219622,
220889,
221730,
222-281,
223255,
224489,
225-649,
226857,
227146,
228279,
229-563,
230103,
231914,
232-350,
233329,
234-229,
235269,
236421,
237};
238
239#pragma DATA_SECTION(db,".dbuffer")
240DATA db[NH+2] ;
241
242DATA rtest[NX] ={
243-52,
244382,
2451254,
246515,
247-186,
248-112,
249173,
25058,
251558,
252-186,
2533885,
254-289,
255-3869,
2561486,
257179,
258-613,
259707,
2601790,
2611014,
262-3139,
263-1208,
264-732,
265942,
266-2527,
267500,
2681082,
269-2031,
270-243,
2711445,
272870,
273224,
274-1415,
275-887,
276-1675,
27719,
2782712,
279-755,
2804141,
281-1750,
282-1729,
283-2884,
284-679,
2852963,
2861169,
287570,
288-11,
289288,
29060,
291-1039,
2924637,
293777,
294-287,
295-1546,
296630,
2972258,
2982765,
2992265,
300-2618,
301-650,
302466,
30315,
3045216,
305-210,
3063122,
307-3383,
308-4135,
309-3715,
310593,
3113042,
3121130,
3133628,
314-3536,
3152692,
316-6114,
317-460,
318-1810,
319-75,
320596,
321-2496,
322-3921,
323-2139,
3241357,
3251899,
326695,
327-2461,
328-927,
329-956,
330-4960,
331-4143,
3322941,
333-1722,
334-1724,
3351982,
3363228,
337608,
338-590,
3391238,
340387,
341-908,
342-24,
343148,
344-1729,
345595,
3462334,
3477396,
3481216,
349-400,
350-81,
351-2759,
352-164,
3531736,
3543601,
355-1529,
356895,
3571652,
358-2928,
3594404,
360-500,
361-2613,
362-4179,
363-3444,
3641784,
365-3339,
366-2382,
3673613,
368-1299,
369-878,
370-3167,
371};
372
373DATA r[NX];
diff --git a/dsplib_benchmarks/fir1/t5.h b/dsplib_benchmarks/fir1/t5.h
new file mode 100644
index 0000000..0f71516
--- /dev/null
+++ b/dsplib_benchmarks/fir1/t5.h
@@ -0,0 +1,597 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35#define NX 256
36#define NH 32
37#define FNAME "t5"
38#define MAXERROR 10
39
40DATA x[NX] ={
41-6739,
42-5661,
4310172,
4422123,
45-8415,
46-4899,
476203,
484308,
4914191,
50741,
5118114,
52-699,
53-20585,
5413148,
5531634,
5620095,
5713340,
58-986,
59-25257,
6010803,
61-8823,
62-23591,
634376,
6421168,
6511399,
6632731,
6730253,
68-28911,
69-9155,
703179,
71-15613,
726379,
73-29539,
744656,
7513163,
7630296,
7716417,
7815728,
79-4465,
808799,
8119859,
82-27271,
8329193,
8427259,
856683,
86-16151,
8724474,
88878,
8915246,
90-5097,
9130236,
92-28046,
933500,
94-13633,
9523459,
96-10764,
9711809,
98-29266,
99-9395,
100-112,
101-4297,
1024093,
1037642,
104-25341,
10526099,
10616682,
10719079,
10820640,
10911141,
110-19604,
111-14871,
1128272,
1132415,
114-28869,
115-26938,
116-14988,
117-5960,
118-1702,
11926803,
1206307,
121-11210,
122-1430,
1236368,
124-22188,
12521592,
12629892,
1276261,
128-30884,
12920454,
1307216,
13113205,
132-26726,
133-4923,
134-8155,
135-21879,
13621833,
13722193,
138-3172,
13929923,
140-23125,
14124243,
14217657,
143-3660,
1447904,
14529601,
1469175,
147-16560,
148-9654,
149-20457,
150-614,
151-5946,
152-2391,
1537270,
154-28104,
155-12172,
1567103,
157-21298,
1587931,
159-16649,
1605725,
161396,
162-2309,
1632714,
16428988,
165-10371,
166-6436,
167-12604,
168-5796,
169-14029,
170-6939,
171197,
17214547,
173-12701,
174-25418,
175-3717,
176-2179,
177-31807,
17810751,
17914684,
180-14311,
181-15610,
18213662,
18318602,
18431860,
185-1748,
18626399,
187-3208,
18819956,
18921552,
190-21872,
191-6953,
1921360,
19314294,
1944534,
195-2569,
196-3585,
197-27018,
198-3704,
199-8763,
200-12942,
20123058,
20217005,
20329475,
2043797,
205-31836,
2066303,
20720722,
20831266,
209-18226,
21013348,
2111445,
21228370,
21313982,
214-17824,
215-3301,
216-21483,
21730724,
218-9456,
219-29554,
22016733,
22125874,
222-14015,
223-16306,
22428359,
225-24184,
22628889,
22713228,
22822785,
229-19054,
230-2944,
231-27455,
23223011,
2334066,
234-11843,
235-8199,
23624103,
237-8378,
238-27939,
239-19672,
240-29525,
2414371,
242-24778,
2431449,
244-25097,
24517689,
246-8189,
24721193,
248-29712,
2496416,
25029435,
251-13842,
25225482,
253-26111,
254-28488,
255-17413,
25628383,
257-28631,
258-15453,
25932737,
260-18876,
261-105,
262-13731,
26311321,
26430014,
26517468,
26610887,
267-24187,
268-26515,
269-31794,
270-13881,
27120757,
27231816,
273-31631,
27420931,
2757938,
2763946,
277-16776,
27821103,
279-15519,
28016622,
28110462,
282-18740,
2836692,
2846877,
28510453,
286-20752,
2878948,
288-21607,
2892595,
2908086,
29112182,
29211622,
29324695,
294-31924,
295-12426,
29618289,
297};
298
299#pragma DATA_SECTION(h,".coeffs")
300DATA h[NH] ={ /* b0 b1 b2 ... b(NH-1) */
301-736,
3021628,
303682,
304-1625,
305-1639,
306-1863,
307-1042,
30862,
309-160,
310775,
311314,
31235,
313-1625,
314-1171,
315-460,
316-854,
3171033,
318-711,
319527,
3201856,
32110,
3221708,
3231251,
3241593,
325-1477,
3261191,
3271558,
328-1312,
329-1443,
3301002,
331846,
332578,
333};
334
335#pragma DATA_SECTION(db,".dbuffer")
336DATA db[NH+2] ;
337
338DATA rtest[NX] ={
339151,
340-208,
341-650,
342225,
3432118,
344314,
345-1627,
346-991,
347-870,
348378,
349-259,
350-129,
351597,
352-2630,
353-2252,
354288,
355707,
356420,
357-2062,
358-5128,
359-3994,
360-417,
361-1463,
362-157,
3635930,
3642561,
365621,
366-1223,
367-4174,
368-3442,
369-3419,
370-2030,
3715735,
3725711,
373986,
3745192,
3754954,
376-1549,
377-3282,
378-2617,
379-2820,
380-2141,
381-1871,
382-4172,
3837497,
3848491,
385-2366,
386-1994,
387-2415,
388-1890,
389-5896,
390-371,
391-3442,
392-5240,
393-27,
3942625,
3955114,
3961397,
397616,
398-298,
3991044,
4002474,
4011501,
4022475,
403-626,
4047629,
4053211,
406-2322,
4073811,
4085244,
409-6609,
410-3300,
411800,
4124438,
413-3374,
4144119,
415-1963,
4161123,
417-1516,
4182136,
4191542,
420-708,
421-3850,
422-166,
423-1583,
4244633,
4256082,
4268720,
427-2254,
428-2240,
429682,
430-493,
431-5470,
432-2891,
433-1406,
434-4181,
435-1347,
4366401,
437-592,
438-1252,
439-2370,
440-1173,
441-1923,
442-1784,
4431746,
444-367,
445-1055,
4462830,
447-3279,
448-4011,
449-2300,
4507378,
451-4506,
452-3287,
4533881,
454-579,
455-590,
456-1256,
4573106,
4586178,
4592176,
4607213,
461693,
4622780,
4631549,
464597,
4653311,
466-296,
467-2980,
468-1979,
4693636,
470709,
471-1083,
4722312,
473-2084,
474-2966,
475-851,
476-2154,
4771570,
4781304,
4793056,
4801499,
4811158,
482-1289,
4832848,
484422,
485-293,
486-5798,
487-1495,
488-588,
489-4762,
490-5678,
491-198,
4921536,
493-308,
494-6628,
495-1216,
496-3352,
497-6953,
498-2468,
4991676,
5004509,
5011518,
5025577,
5036431,
504-9102,
505-1877,
5062436,
5077104,
508955,
509-700,
510421,
511-2458,
5122563,
513-3204,
514-8039,
515-1075,
516883,
5172196,
518-4855,
519-1376,
5204695,
521161,
522642,
523-906,
524123,
5251063,
5262524,
5274142,
528-3539,
529263,
530-2818,
5317146,
5321827,
533-1983,
534-202,
5352408,
536792,
537-3264,
538-2679,
539-6077,
5406873,
5419984,
542-142,
543-1469,
5448124,
5455784,
546-2896,
5471176,
548-317,
5494063,
550968,
5512775,
552-674,
553-1346,
554-3994,
5554656,
5563138,
557-1088,
558-4077,
559-708,
560-1965,
561-4126,
562-6189,
563318,
5647695,
565-2020,
5661269,
567-7182,
568-1921,
569-1436,
5706367,
5715469,
572-2895,
5733619,
574-6982,
575-4691,
576-4216,
577-2935,
578-2207,
5796839,
5808668,
581-6296,
582-1946,
5834820,
584-1064,
585-2817,
586-2480,
587-3364,
58857,
589-813,
590-2221,
591910,
5925214,
593-2303,
594-4027,
595};
596
597DATA r[NX];
diff --git a/dsplib_benchmarks/fir1/t5_ran.h b/dsplib_benchmarks/fir1/t5_ran.h
new file mode 100644
index 0000000..f520a79
--- /dev/null
+++ b/dsplib_benchmarks/fir1/t5_ran.h
@@ -0,0 +1,374 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35#define NH 256
36#define NX 32
37#define FNAME "t5"
38#define MAXERROR 10
39DATA x[NX] ={ /* b0 b1 b2 ... b(NH-1) */
40-736,
411628,
42682,
43-1625,
44-1639,
45-1863,
46-1042,
4762,
48-160,
49775,
50314,
5135,
52-1625,
53-1171,
54-460,
55-854,
561033,
57-711,
58527,
591856,
6010,
611708,
621251,
631593,
64-1477,
651191,
661558,
67-1312,
68-1443,
691002,
70846,
71578,
72};
73
74#pragma DATA_SECTION(h,".coeffs")
75DATA h[NH] ={
76-6739,
77-5661,
7810172,
7922123,
80-8415,
81-4899,
826203,
834308,
8414191,
85741,
8618114,
87-699,
88-20585,
8913148,
9031634,
9120095,
9213340,
93-986,
94-25257,
9510803,
96-8823,
97-23591,
984376,
9921168,
10011399,
10132731,
10230253,
103-28911,
104-9155,
1053179,
106-15613,
1076379,
108-29539,
1094656,
11013163,
11130296,
11216417,
11315728,
114-4465,
1158799,
11619859,
117-27271,
11829193,
11927259,
1206683,
121-16151,
12224474,
123878,
12415246,
125-5097,
12630236,
127-28046,
1283500,
129-13633,
13023459,
131-10764,
13211809,
133-29266,
134-9395,
135-112,
136-4297,
1374093,
1387642,
139-25341,
14026099,
14116682,
14219079,
14320640,
14411141,
145-19604,
146-14871,
1478272,
1482415,
149-28869,
150-26938,
151-14988,
152-5960,
153-1702,
15426803,
1556307,
156-11210,
157-1430,
1586368,
159-22188,
16021592,
16129892,
1626261,
163-30884,
16420454,
1657216,
16613205,
167-26726,
168-4923,
169-8155,
170-21879,
17121833,
17222193,
173-3172,
17429923,
175-23125,
17624243,
17717657,
178-3660,
1797904,
18029601,
1819175,
182-16560,
183-9654,
184-20457,
185-614,
186-5946,
187-2391,
1887270,
189-28104,
190-12172,
1917103,
192-21298,
1937931,
194-16649,
1955725,
196396,
197-2309,
1982714,
19928988,
200-10371,
201-6436,
202-12604,
203-5796,
204-14029,
205-6939,
206197,
20714547,
208-12701,
209-25418,
210-3717,
211-2179,
212-31807,
21310751,
21414684,
215-14311,
216-15610,
21713662,
21818602,
21931860,
220-1748,
22126399,
222-3208,
22319956,
22421552,
225-21872,
226-6953,
2271360,
22814294,
2294534,
230-2569,
231-3585,
232-27018,
233-3704,
234-8763,
235-12942,
23623058,
23717005,
23829475,
2393797,
240-31836,
2416303,
24220722,
24331266,
244-18226,
24513348,
2461445,
24728370,
24813982,
249-17824,
250-3301,
251-21483,
25230724,
253-9456,
254-29554,
25516733,
25625874,
257-14015,
258-16306,
25928359,
260-24184,
26128889,
26213228,
26322785,
264-19054,
265-2944,
266-27455,
26723011,
2684066,
269-11843,
270-8199,
27124103,
272-8378,
273-27939,
274-19672,
275-29525,
2764371,
277-24778,
2781449,
279-25097,
28017689,
281-8189,
28221193,
283-29712,
2846416,
28529435,
286-13842,
28725482,
288-26111,
289-28488,
290-17413,
29128383,
292-28631,
293-15453,
29432737,
295-18876,
296-105,
297-13731,
29811321,
29930014,
30017468,
30110887,
302-24187,
303-26515,
304-31794,
305-13881,
30620757,
30731816,
308-31631,
30920931,
3107938,
3113946,
312-16776,
31321103,
314-15519,
31516622,
31610462,
317-18740,
3186692,
3196877,
32010453,
321-20752,
3228948,
323-21607,
3242595,
3258086,
32612182,
32711622,
32824695,
329-31924,
330-12426,
33118289,
332};
333
334
335
336#pragma DATA_SECTION(db,".dbuffer")
337DATA db[NH+2] ;
338
339DATA rtest[NX] ={
340151,
341-208,
342-650,
343225,
3442118,
345314,
346-1627,
347-991,
348-870,
349378,
350-259,
351-129,
352597,
353-2630,
354-2252,
355288,
356707,
357420,
358-2062,
359-5128,
360-3994,
361-417,
362-1463,
363-157,
3645930,
3652561,
366621,
367-1223,
368-4174,
369-3442,
370-3419,
371-2030,
372};
373
374DATA r[NX];
diff --git a/dsplib_benchmarks/fir1/t6.h b/dsplib_benchmarks/fir1/t6.h
new file mode 100644
index 0000000..0bcecdb
--- /dev/null
+++ b/dsplib_benchmarks/fir1/t6.h
@@ -0,0 +1,269 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35#define NX 100
36#define NH 16
37#define FNAME "t6"
38#define MAXERROR 10
39
40DATA x[NX] ={
4116647,
4210692,
4325132,
44-14932,
45-5281,
46-18810,
47-30435,
48-27449,
4922974,
50-10473,
51-2219,
5227116,
53-17788,
5423726,
5510264,
5625636,
57-778,
5832285,
59-8302,
602056,
61-20886,
62127,
63-5100,
6410513,
6511380,
6629971,
67-20194,
68-25480,
694263,
7030747,
71-31212,
7224262,
73-31007,
741279,
75-20166,
7614135,
77-16340,
7828433,
79-23778,
801417,
8125899,
8228992,
83-10808,
84-4105,
85-1891,
86-22983,
87-23864,
882129,
8914797,
90-6639,
91-9279,
92-14072,
9324158,
948284,
95-16963,
9631331,
979207,
98-17705,
9911883,
10010867,
101-23940,
102-31294,
103-15585,
104-25133,
105-28226,
10623129,
107-20950,
108-30644,
10915330,
1102393,
111-14679,
112-8621,
113-31924,
11425506,
11523987,
116-16106,
1174553,
118-22331,
1196184,
120-11070,
12110394,
12223831,
1234431,
12431488,
12519125,
126-22768,
12721825,
128-20195,
1299108,
13011075,
13117831,
132-7877,
133-3829,
134-1111,
1357084,
136-21234,
137-32636,
13819020,
139891,
140-18794,
141};
142
143#pragma DATA_SECTION(h,".coeffs")
144DATA h[NH] ={ /* b0 b1 b2 ... b(NH-1) */
145-3418,
146-2954,
147-798,
148-796,
149-3856,
1503807,
151-3017,
152-997,
153-1629,
154-2857,
1553418,
156-1528,
1572016,
158-768,
159-864,
16047,
161};
162
163#pragma DATA_SECTION(db,".dbuffer")
164DATA db[NH+2] ;
165
166DATA rtest[NX] ={
167-1736,
168-2616,
169-3990,
170-1372,
171-933,
1722868,
1732113,
1749378,
175-3306,
176655,
1773173,
178-2456,
1791913,
1804811,
181-1515,
182-6392,
1831043,
184-14989,
1853101,
186-7506,
1874425,
188-1740,
189-1236,
190-1123,
191-3454,
192-4844,
193-1747,
1946979,
195-433,
196-1737,
1972248,
198-2645,
199-4542,
2001950,
2019106,
202-2022,
2038390,
204-8709,
2052883,
2061175,
207-1387,
208-1687,
209-1241,
210-927,
211-5625,
2125668,
2132839,
2145298,
215-6759,
2162366,
217557,
2184091,
219739,
2203044,
221828,
222-2849,
223-9027,
2243174,
2252132,
226-7733,
2276350,
2281254,
2292003,
2306028,
2316578,
2325097,
23325,
2348252,
2356497,
236-1525,
23711649,
2383021,
2391626,
2403523,
241-4617,
2424981,
2431670,
244-4693,
2457416,
2463532,
247-2144,
2482472,
249-13599,
2502054,
251-6800,
252-550,
2534747,
254-10274,
2553365,
256-4703,
257-10459,
2584970,
259-7970,
2605237,
261-538,
262453,
2637733,
264-5971,
265590,
2664190,
267};
268
269DATA r[NX];
diff --git a/dsplib_benchmarks/fir1/t7.h b/dsplib_benchmarks/fir1/t7.h
new file mode 100644
index 0000000..710dac9
--- /dev/null
+++ b/dsplib_benchmarks/fir1/t7.h
@@ -0,0 +1,325 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35#define NX 120
36#define NH 32
37#define FNAME "t7"
38#define MAXERROR 10
39
40DATA x[NX] ={
41-21673,
421621,
439253,
44-31707,
4522075,
4619887,
4712962,
48-2498,
49-27354,
5021018,
51-20119,
52-3582,
53-31919,
54-12535,
5524598,
5621971,
57-10939,
5824949,
59-1332,
603985,
617596,
6210610,
637643,
6412133,
65665,
6614022,
67996,
686938,
6930585,
7021110,
71-11944,
725747,
73-24236,
74-16099,
7519859,
7610999,
77-31875,
784035,
79-2978,
8026538,
81-14277,
82-28506,
83-1535,
8431700,
8527679,
864010,
879982,
8817870,
89-25810,
90-32698,
912737,
92-32319,
93-3190,
94-19946,
9518818,
967770,
97-31751,
9825614,
9917150,
10026675,
10116945,
102-7817,
103-11069,
104267,
1054231,
10617511,
10718341,
108-1043,
10919805,
110-1900,
111-19480,
1125217,
11310911,
11411584,
11529000,
11617704,
11715558,
11824003,
11932174,
120257,
1218459,
12219176,
123-3366,
1241596,
125-21531,
126-24205,
127-18430,
128-25856,
129-23500,
130-2821,
13118883,
132-14349,
133-18037,
13426795,
135-32288,
1365815,
1372760,
13810061,
139-12227,
140-17619,
141-5501,
142-13186,
14311300,
14428721,
145-10280,
1464126,
147-24977,
148-21692,
149-14491,
1503723,
151-945,
15229636,
153-17569,
154-1399,
1551738,
15619183,
157-20120,
15826843,
15927669,
160-31899,
161};
162
163#pragma DATA_SECTION(h,".coeffs")
164DATA h[NH] ={ /* b0 b1 b2 ... b(NH-1) */
165964,
1661613,
1671129,
1681528,
169-1086,
170628,
1711540,
172-564,
173340,
174416,
175-1791,
1761738,
1771440,
178695,
179-218,
180724,
181395,
182-722,
1831283,
184-1399,
185-752,
186-1452,
187-370,
188-602,
1891601,
1901220,
191-872,
192-1649,
193-1782,
194268,
195879,
1961106,
197};
198
199#pragma DATA_SECTION(db,".dbuffer")
200DATA db[NH+2] ;
201
202DATA rtest[NX] ={
203-638,
204-1019,
205-395,
206-1433,
207202,
208541,
209-651,
2103956,
211-711,
212-2352,
2132218,
214-2211,
215-1250,
216-2240,
217-3249,
218-337,
219746,
2205031,
221134,
222-1864,
2236383,
224-1385,
2254062,
2261079,
227-2927,
228-1969,
2293134,
230913,
2312372,
2327278,
2333835,
2343624,
235-1963,
236-914,
237855,
2381879,
239-522,
240-904,
241-2390,
2423144,
2437767,
244-2867,
245-4670,
246-3161,
247-1627,
2482955,
2494977,
250-1158,
251-3222,
252-2767,
253-645,
254-2742,
255325,
2562,
257-5838,
2582310,
259-3314,
260-1177,
2615014,
2626037,
2633760,
264623,
265-2823,
266595,
267-4182,
268-1669,
269-226,
270-2494,
2717448,
2724307,
2733784,
274301,
2751500,
276-1226,
2772777,
2783991,
2793835,
2807958,
2812600,
2824694,
2831566,
284631,
285-160,
2865470,
2873233,
288-5398,
289-3797,
290-5616,
291-2819,
2924639,
2933423,
294-522,
295-208,
296-2609,
297-5204,
298-3538,
299437,
300-5223,
301805,
302-2972,
303-9811,
304-2566,
305-1440,
306-2487,
3071521,
3081978,
309936,
310-2396,
3114101,
312-2490,
313-3701,
3143738,
315-1748,
316509,
3174829,
3182157,
319-721,
32080,
321-982,
322-2430,
323};
324
325DATA r[NX];
diff --git a/dsplib_benchmarks/fir1/t8.h b/dsplib_benchmarks/fir1/t8.h
new file mode 100644
index 0000000..b42235f
--- /dev/null
+++ b/dsplib_benchmarks/fir1/t8.h
@@ -0,0 +1,629 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35#define NX 256
36#define NH 64
37#define FNAME "t8"
38#define MAXERROR 10
39
40DATA x[NX] ={
419015,
42-16301,
43-23310,
449932,
4529234,
4620701,
4728196,
48-12456,
49-15151,
502388,
51-22068,
52-18941,
53-18559,
549947,
55-29310,
56-17742,
5710972,
58-12391,
59-12673,
6014462,
6129779,
62-24174,
63-28294,
64-24562,
65-21879,
6626962,
67-23839,
687667,
69-15141,
70-18307,
7113952,
723211,
7328924,
74-11150,
7513401,
7629060,
775347,
7824913,
7916358,
80-7890,
8114782,
82-22099,
8329897,
84-19908,
8518100,
867424,
87-22133,
88-30733,
89-13853,
9030871,
9129523,
92-17823,
9330049,
9411787,
95-29166,
966543,
97-7003,
98-18654,
99-20815,
100-27738,
101-32282,
10218925,
103-31603,
10424768,
105-9664,
10614558,
10730700,
108-22567,
109-22089,
110-12230,
111-30843,
112-9331,
113-30987,
11419245,
11532717,
116-25544,
1178034,
118-24080,
119-12450,
120-23935,
121-18133,
122-6780,
123-23912,
124-16970,
12528017,
126-7137,
127738,
128-26680,
129-31346,
130-22313,
13122578,
13224848,
133-20514,
13432198,
13513895,
13624337,
137-1335,
138-262,
139-13925,
140-28775,
141-15567,
142-20562,
14327334,
144-24689,
145-31887,
146-8540,
14713018,
14825516,
1496145,
150-22500,
151-12014,
152-17473,
153-32217,
154-6757,
1559821,
156-27198,
15717616,
15830782,
15914076,
16018478,
161-17199,
162-19941,
163-15518,
16414010,
16531299,
1668986,
1673009,
16822810,
16919798,
17011030,
17111205,
17221013,
17330832,
174-857,
17520805,
1769277,
177-12692,
17810546,
179-9305,
18028717,
181-809,
182-26805,
18311392,
184975,
185-18247,
18614746,
187-28296,
18830416,
189-19159,
190-22209,
1919058,
192-32754,
193-10772,
194-14740,
195-29850,
196-26615,
197-5899,
19820767,
19924282,
200-31290,
20114888,
20222807,
20314981,
20429825,
20510246,
20615879,
207-10161,
20825167,
209-10012,
210-28871,
21114314,
21230029,
213-22490,
214-5482,
215-26606,
216-3281,
21724192,
218-7103,
219-16202,
220-9544,
22115923,
2229884,
22328822,
22421810,
225-1968,
2268510,
227-28955,
2282764,
229-2902,
23023795,
23123278,
232-1819,
23318803,
23410222,
235-32766,
236-24168,
237-336,
238-30256,
239-17863,
240-11280,
24126179,
242-12208,
243-16275,
244-4392,
24522438,
246-20678,
247536,
248-3131,
249-11431,
250-7860,
25125328,
25217121,
25325150,
254-2792,
25519608,
256-23982,
257-28488,
258-8183,
259-8289,
260-1048,
26130766,
262-10351,
263-16208,
2645563,
2651553,
266-22059,
267-892,
268-259,
26922491,
27020066,
27123447,
2727192,
2734307,
2747333,
275-26020,
276-22393,
277-5660,
2783959,
279-15160,
28018628,
281-7349,
282-30738,
2835603,
2843837,
285-19616,
286-27039,
28728392,
288-15770,
289-19388,
290-29544,
2916957,
2923037,
293-26488,
2948978,
295-3739,
296-28418,
297};
298
299#pragma DATA_SECTION(h,".coeffs")
300DATA h[NH] ={ /* b0 b1 b2 ... b(NH-1) */
301-261,
302-520,
303879,
304268,
305783,
306293,
307617,
308-135,
309996,
310-837,
31156,
31294,
313-447,
314-268,
315-902,
31692,
317696,
318-735,
319-681,
320-895,
321671,
322-759,
323796,
32430,
325960,
326-786,
327-936,
328-249,
329-181,
330-205,
331-164,
332-255,
333843,
334352,
335956,
336-698,
337514,
338-261,
339-95,
340-956,
341129,
342-265,
343606,
344611,
345-243,
346-512,
347-326,
348968,
349-42,
350-273,
351547,
352-255,
353829,
354-656,
355-273,
356864,
35732,
358-849,
359487,
360-1026,
361213,
362946,
363-213,
364479,
365};
366
367#pragma DATA_SECTION(db,".dbuffer")
368DATA db[NH+2] ;
369
370DATA rtest[NX] ={
371-72,
372-13,
373686,
374-73,
375-934,
376-861,
377-219,
378131,
3791934,
380431,
381722,
3821561,
383273,
384-922,
385-708,
386-272,
387-1277,
388-1876,
389-2878,
390-353,
391-406,
392458,
393199,
394-1076,
395903,
396-1890,
397-342,
3981698,
3992174,
4001053,
401-2259,
402-1002,
403-1640,
4041305,
405-3223,
4061562,
4073304,
4081357,
4092522,
410531,
4116908,
4121535,
4132399,
414655,
415-3354,
416-2298,
417-1285,
4183431,
419762,
420-2457,
421-1223,
422-2981,
4232470,
424-568,
425456,
426-18,
427224,
428-1523,
429-13,
430-597,
4311974,
432-874,
433-4949,
434-4608,
435-2565,
436-1182,
437-231,
4382010,
4393450,
4401357,
441-3899,
4421183,
4433066,
444-1800,
4451861,
446-4698,
447-59,
4481346,
449-2056,
450-832,
451-252,
452955,
4531485,
454-1634,
455-1810,
4562772,
4572802,
4581251,
45925,
4601094,
461-974,
462-6536,
463601,
464-286,
465-3350,
4662759,
4672998,
4686579,
4694169,
4703075,
4713324,
472-454,
473-3407,
474-2711,
475-2015,
4761272,
4771216,
478-680,
4792358,
480-6189,
4813062,
482-3220,
483-4762,
4846793,
485-3464,
486159,
4872159,
488499,
4893911,
490-4064,
491-4994,
4921487,
493-109,
494-1977,
4953205,
496-2320,
4974841,
4983460,
499-523,
5004733,
501-972,
502414,
503-1991,
504-2971,
5053420,
506-2617,
5072254,
508-531,
5092052,
5102653,
5112494,
512-217,
513-817,
514-4437,
515-4469,
516-115,
517-4378,
518481,
519-1752,
520386,
521164,
522-577,
523-2744,
524-2879,
525-1446,
526-143,
527-2853,
528-1561,
529-227,
530-2873,
5311732,
532-659,
533-1182,
5342629,
535-1869,
5361550,
5374062,
5381806,
5392633,
5405399,
541-1948,
5422503,
543-130,
544-178,
5451137,
546-1306,
547-4784,
548-480,
549-533,
5503769,
55164,
552861,
553-919,
554-2688,
555-139,
55647,
5571675,
5584163,
559-4458,
560446,
561372,
562-410,
5631517,
564-346,
5652609,
5665729,
567-5201,
5682233,
569-462,
570-1261,
5712556,
572-7545,
573-5595,
5741098,
575-324,
5763813,
577-4538,
578-892,
5792976,
580-3355,
581-1364,
582-1995,
5833763,
5843830,
5852422,
586237,
5872770,
588-1337,
589762,
590-1580,
591-1850,
592-4345,
5932081,
5943857,
595-579,
5962408,
5972049,
598-1992,
599897,
600-6329,
601-1496,
602-42,
6034184,
604-378,
6056701,
606239,
6073941,
608-1768,
609-2634,
610-3356,
611-761,
612-2794,
61351,
6142510,
6152781,
616-536,
617-1102,
618-1681,
6191158,
620-8843,
6211161,
622-1248,
6232396,
6241679,
6253443,
626-1569,
627};
628
629DATA r[NX];
diff --git a/dsplib_benchmarks/fir1/test.h b/dsplib_benchmarks/fir1/test.h
new file mode 100644
index 0000000..f6218ee
--- /dev/null
+++ b/dsplib_benchmarks/fir1/test.h
@@ -0,0 +1,373 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35#define NX 128
36#define NH 64
37#define FNAME "t2"
38#define MAXERROR 10
39
40DATA x[NX] ={
4132767,
420,
430,
440,
450,
460,
470,
480,
490,
500,
510,
520,
530,
540,
550,
560,
570,
580,
590,
600,
610,
620,
630,
640,
650,
660,
670,
680,
690,
700,
710,
720,
730,
740,
750,
760,
770,
780,
790,
800,
810,
820,
830,
840,
850,
860,
870,
880,
890,
900,
910,
920,
930,
940,
950,
960,
970,
980,
990,
1000,
1010,
1020,
1030,
1040,
1050,
1060,
1070,
1080,
1090,
1100,
1110,
1120,
1130,
1140,
1150,
1160,
1170,
1180,
1190,
1200,
1210,
1220,
1230,
1240,
1250,
1260,
1270,
1280,
1290,
1300,
1310,
1320,
1330,
1340,
1350,
1360,
1370,
1380,
1390,
1400,
1410,
1420,
1430,
1440,
1450,
1460,
1470,
1480,
1490,
1500,
1510,
1520,
1530,
1540,
1550,
1560,
1570,
1580,
1590,
1600,
1610,
1620,
1630,
1640,
1650,
1660,
1670,
1680,
169};
170
171#pragma DATA_SECTION(h,".coeffs")
172DATA h[NH] ={ /* b0 b1 b2 ... b(NH-1) */
173816,
174547,
175-91,
176-1006,
177670,
178-116,
179240,
180609,
181880,
182497,
183-676,
184-197,
185909,
186870,
187-188,
188821,
189-923,
190-308,
191653,
192-1024,
193-754,
194-621,
195-629,
196216,
197-476,
198-629,
199-1012,
200515,
201-115,
202901,
203-71,
204-170,
205722,
20652,
207-621,
208359,
209705,
210-1003,
211378,
212-252,
213692,
2145,
215437,
216-149,
217-408,
218-648,
219-640,
220380,
221-412,
22286,
223-729,
224413,
225-254,
226751,
227738,
228195,
229-8,
230834,
231671,
232302,
233663,
234334,
235-330,
236-439,
237};
238
239#pragma DATA_SECTION(db,".dbuffer")
240DATA db[NH+2] ;
241
242DATA rtest[NX] ={
243817,
244547,
245-91,
246-1005,
247671,
248-115,
249241,
250609,
251881,
252497,
253-676,
254-197,
255909,
256870,
257-187,
258822,
259-923,
260-307,
261654,
262-1023,
263-754,
264-620,
265-629,
266217,
267-476,
268-629,
269-1012,
270515,
271-115,
272901,
273-71,
274-170,
275723,
27653,
277-621,
278359,
279706,
280-1003,
281378,
282-252,
283693,
2846,
285437,
286-148,
287-408,
288-648,
289-640,
290380,
291-412,
29287,
293-729,
294413,
295-254,
296752,
297738,
298195,
299-7,
300835,
301671,
302303,
303664,
304334,
305-330,
306-439,
3070,
3080,
3090,
3100,
3110,
3120,
3130,
3140,
3150,
3160,
3170,
3180,
3190,
3200,
3210,
3220,
3230,
3240,
3250,
3260,
3270,
3280,
3290,
3300,
3310,
3320,
3330,
3340,
3350,
3360,
3370,
3380,
3390,
3400,
3410,
3420,
3430,
3440,
3450,
3460,
3470,
3480,
3490,
3500,
3510,
3520,
3530,
3540,
3550,
3560,
3570,
3580,
3590,
3600,
3610,
3620,
3630,
3640,
3650,
3660,
3670,
3680,
3690,
3700,
371};
372
373DATA r[NX];
diff --git a/dsplib_benchmarks/fir2/Fir2_t.c b/dsplib_benchmarks/fir2/Fir2_t.c
new file mode 100644
index 0000000..49e01ed
--- /dev/null
+++ b/dsplib_benchmarks/fir2/Fir2_t.c
@@ -0,0 +1,143 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35//*****************************************************************************
36// Filename: fir2_t.c
37// Version: 0.01
38// Description: test for fir2 routine
39//*****************************************************************************
40
41#include <stdlib.h>
42#include <math.h>
43#include <stdio.h>
44#include <tms320.h>
45#include <dsplib.h>
46#include <time.h>
47
48#define NUMBER_OF_ITERATIONS 1000l
49
50
51//#include "t1.h"
52//#include "t2.h"
53//#include "t3.h"
54//#include "t4.h"
55//#include "t5.h"
56//#include "t6.h"
57//#include "t7.h"
58#include "t5_ran.h"
59//#include "test.h"
60
61short test(DATA *r, DATA *rtest, short n, DATA maxerror);
62
63short eflag1= PASS;
64short eflag2= PASS;
65
66#pragma DATA_SECTION(r, ".bss:saram")
67DATA r[NX];
68
69DATA *dbptr = &db[0];
70void clear_ran(short x[], int N)
71{
72 int i ;
73 for (i=0; i<N; i++)
74 {
75 x[i] = 0 ;
76 }
77 return ;
78}
79
80void main()
81{
82 short i;
83 int nx ;
84 long iterations1 ;
85 clock_t t1,t2, t11,t22 ,total1_t ,total2_t,diff ;
86
87
88 // 1. Test for single-buffer
89
90 // clear
91
92 clear_ran(db, NH+2) ;
93
94 // compute
95
96 nx = 32;
97 t1 = clock() ;
98 t2 = clock() ;
99 diff = t2 - t1 ; /// overhead of calling
100 t1 = clock() ; // compute
101
102
103 (void)fir2(x, h, r, dbptr, nx, NH);
104
105
106
107 t2 = clock() ;
108
109 total1_t = (double) (t2 - t1-diff) ;
110 printf("256 tap, %d values FIR Real 16-bit \n" , nx) ;
111 printf("fir2 time (in cycles) %ld \n", total1_t) ;
112
113
114
115
116 // test
117 eflag1 = test(r, rtest, nx, MAXERROR);
118
119
120 if( (eflag1 != PASS) || (eflag2 != PASS) )
121 {
122 exit(-1);
123 }
124
125
126
127 for (iterations1 = 0; iterations1 < NUMBER_OF_ITERATIONS;iterations1++)
128
129 {
130
131 (void)fir2(x, h, r, dbptr, 4, NH);
132
133 }
134
135
136 printf("Done with %ld iteration \n",iterations1 );
137
138
139
140
141
142 return;
143}
diff --git a/dsplib_benchmarks/fir2/TEST.C b/dsplib_benchmarks/fir2/TEST.C
new file mode 100644
index 0000000..09324f1
--- /dev/null
+++ b/dsplib_benchmarks/fir2/TEST.C
@@ -0,0 +1,90 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35//*****************************************************************************
36// Filename: test.c
37// Version: 0.01
38// Description: test r against rtest (array of n elements)
39// Returns eflag
40//-----------------------------------------------------------------------------
41// Revision History:
42// 0.01, R. Piedra, 06/15/98, - Original release
43//*****************************************************************************
44#include <tms320.h>
45
46short test(DATA *r, DATA *rtest, short n, DATA maxerror)
47
48{
49short i;
50short eflag = PASS; // error flag or index into r vector where error
51DATA elevel = 0; // error level at failing eflag index location
52DATA emax = 0; // max error level detected across when NOERROR
53
54for (i=0;i<n;i++)
55 {
56 if ( (elevel = ABSVAL(rtest[i] - r[i])) > maxerror)
57 {
58 eflag =i; // if error --> eflag = index and emax= max error
59 emax = elevel; // if no error --> eflag = -1 and emax = max error
60 break;
61 }
62 else
63 if (elevel>emax) emax = elevel;
64 }
65 // Pass to Host: eflag and emax
66return(eflag);
67}
68
69short compare(DATA *r, DATA *rtest, short n, DATA maxerror)
70
71{
72short i;
73short eflag = PASS; // error flag or index into r vector where error
74DATA elevel = 0; // error level at failing eflag index location
75DATA emax = 0; // max error level detected across when NOERROR
76
77for (i=0;i<n;i++)
78 {
79 if ( (elevel = ABSVAL(rtest[i] - r[i])) > maxerror)
80 {
81 eflag =i; // if error --> eflag = index and emax= max error
82 emax = elevel; // if no error --> eflag = -1 and emax = max error
83 printf("cpmare values i= %d v1 = %d v2 = %d \n", i, r[i], rtest[i]) ;
84 // break;
85 }
86
87 }
88 // Pass to Host: eflag and emax
89return(eflag);
90}
diff --git a/dsplib_benchmarks/fir2/fir2.cmd b/dsplib_benchmarks/fir2/fir2.cmd
new file mode 100644
index 0000000..94bf6e6
--- /dev/null
+++ b/dsplib_benchmarks/fir2/fir2.cmd
@@ -0,0 +1,68 @@
1/**********************************************************/
2/* */
3/* LINKER command file for LEAD3 memory map */
4/* */
5/**********************************************************/
6
7-stack 0x1000 /* PRIMARY STACK SIZE */
8-sysstack 0x0400 /* SECONDARY STACK SIZE */
9-heap 0x1000 /* HEAP AREA SIZE */
10
11MEMORY
12{
13 PAGE 0:
14
15 MMR : origin = 0000000h, length = 00000c0h
16 SPRAM : origin = 00000c0h, length = 0000040
17 DARAM0 : origin = 0000100h, length = 0003F00h
18 DARAM1 : origin = 0004000h, length = 0004000h
19 DARAM2 : origin = 0008000h, length = 0004000h
20 DARAM3 : origin = 000c000h, length = 0004000h
21
22 SARAM01 : origin = 0010000h, length = 0008000h
23 SARAM2 : origin = 0018000h, length = 0004000h
24 SARAM3 : origin = 001c000h, length = 0004000h
25 SARAM4 : origin = 0020000h, length = 0004000h
26 SARAM5 : origin = 0024000h, length = 0004000h
27 SARAM6 : origin = 0028000h, length = 0004000h
28 SARAM7 : origin = 002c000h, length = 0004000h
29 SARAM8 : origin = 0030000h, length = 0004000h
30 SARAM9 : origin = 0034000h, length = 0004000h
31 SARAM10 : origin = 0038000h, length = 0004000h
32 SARAM11 : origin = 003c000h, length = 0004000h
33 SARAM12 : origin = 0040000h, length = 0004000h
34 SARAM13 : origin = 0044000h, length = 0004000h
35 SARAM14 : origin = 0048000h, length = 0004000h
36 SARAM15 : origin = 004c000h, length = 0004000h
37
38 CE0 : origin = 0050000h, length = 03b0000h
39 CE1 : origin = 0400000h, length = 0400000h
40 CE2 : origin = 0800000h, length = 0400000h
41 CE3 : origin = 0c00000h, length = 03f8000h
42
43 PDROM : origin = 0ff8000h, length = 07f00h
44 VECS : origin = 0ffff00h, length = 00100h /* reset vector */
45}
46
47
48SECTIONS
49{
50 vectors (NOLOAD) : {} > DARAM0 PAGE 0 /* interrupt vector table */ /* was VECS */
51 .cinit : {} > SARAM01 PAGE 0
52 .text : {} > SARAM01 PAGE 0
53 isrs : {} > SARAM2 PAGE 0
54
55 .stack : {} > DARAM0 PAGE 0 ALIGN = 4
56 .sysstack: {} > DARAM0 PAGE 0 ALIGN = 4
57 .sysmem : {} > DARAM1 PAGE 0 ALIGN = 4
58 .data : {} > SARAM8 PAGE 0 /* force .data to not be on Page 0 */
59 .bss:saram : {} > DARAM2 PAGE 0 /* must be a different on-chip block than .bss */
60 .bss:saram2 : {} > SARAM3 PAGE 0 /* must be a different on-chip block than .bss */
61 //.bss : {} > SARAM15 PAGE 0 /* for normal testing, move .bss off of DARAM */
62 .bss : {} > DARAM3 PAGE 0 /* for optimal timing tests, put .bss in DARAM */
63 .input : {} > DARAM3 PAGE 0 /* for optimal timing tests, put .input in DARAM */
64 .coeffs : {} > DARAM0 PAGE 0 /* for optimal timing tests, put .coeffs in DARAM */
65 .dbuffer : {} > DARAM1 PAGE 0 /* for optimal timing tests, put .dbuffer in DARAM */
66 .const : {} > SARAM8 PAGE 0
67 .cio : {} > DARAM2 PAGE 0
68} \ No newline at end of file
diff --git a/dsplib_benchmarks/fir2/t1.h b/dsplib_benchmarks/fir2/t1.h
new file mode 100644
index 0000000..3590d9d
--- /dev/null
+++ b/dsplib_benchmarks/fir2/t1.h
@@ -0,0 +1,73 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35#define NX 8
36#define NH 4
37#define FNAME "t1"
38#define MAXERROR 10
39
40DATA x[NX] ={
4132767,
420,
430,
440,
450,
460,
470,
480,
49};
50
51#pragma DATA_SECTION(h,".coeffs")
52DATA h[NH] ={ /* b0 b1 b2 ... b(NH-1) */
5317562,
54-10491,
554168,
56-547,
57};
58
59#pragma DATA_SECTION(db,".dbuffer")
60DATA db[NH+2] ;
61
62DATA rtest[NX] ={
6317562,
64-10490,
654169,
66-547,
670,
680,
690,
700,
71};
72
73DATA r[NX];
diff --git a/dsplib_benchmarks/fir2/t2.h b/dsplib_benchmarks/fir2/t2.h
new file mode 100644
index 0000000..f6218ee
--- /dev/null
+++ b/dsplib_benchmarks/fir2/t2.h
@@ -0,0 +1,373 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35#define NX 128
36#define NH 64
37#define FNAME "t2"
38#define MAXERROR 10
39
40DATA x[NX] ={
4132767,
420,
430,
440,
450,
460,
470,
480,
490,
500,
510,
520,
530,
540,
550,
560,
570,
580,
590,
600,
610,
620,
630,
640,
650,
660,
670,
680,
690,
700,
710,
720,
730,
740,
750,
760,
770,
780,
790,
800,
810,
820,
830,
840,
850,
860,
870,
880,
890,
900,
910,
920,
930,
940,
950,
960,
970,
980,
990,
1000,
1010,
1020,
1030,
1040,
1050,
1060,
1070,
1080,
1090,
1100,
1110,
1120,
1130,
1140,
1150,
1160,
1170,
1180,
1190,
1200,
1210,
1220,
1230,
1240,
1250,
1260,
1270,
1280,
1290,
1300,
1310,
1320,
1330,
1340,
1350,
1360,
1370,
1380,
1390,
1400,
1410,
1420,
1430,
1440,
1450,
1460,
1470,
1480,
1490,
1500,
1510,
1520,
1530,
1540,
1550,
1560,
1570,
1580,
1590,
1600,
1610,
1620,
1630,
1640,
1650,
1660,
1670,
1680,
169};
170
171#pragma DATA_SECTION(h,".coeffs")
172DATA h[NH] ={ /* b0 b1 b2 ... b(NH-1) */
173816,
174547,
175-91,
176-1006,
177670,
178-116,
179240,
180609,
181880,
182497,
183-676,
184-197,
185909,
186870,
187-188,
188821,
189-923,
190-308,
191653,
192-1024,
193-754,
194-621,
195-629,
196216,
197-476,
198-629,
199-1012,
200515,
201-115,
202901,
203-71,
204-170,
205722,
20652,
207-621,
208359,
209705,
210-1003,
211378,
212-252,
213692,
2145,
215437,
216-149,
217-408,
218-648,
219-640,
220380,
221-412,
22286,
223-729,
224413,
225-254,
226751,
227738,
228195,
229-8,
230834,
231671,
232302,
233663,
234334,
235-330,
236-439,
237};
238
239#pragma DATA_SECTION(db,".dbuffer")
240DATA db[NH+2] ;
241
242DATA rtest[NX] ={
243817,
244547,
245-91,
246-1005,
247671,
248-115,
249241,
250609,
251881,
252497,
253-676,
254-197,
255909,
256870,
257-187,
258822,
259-923,
260-307,
261654,
262-1023,
263-754,
264-620,
265-629,
266217,
267-476,
268-629,
269-1012,
270515,
271-115,
272901,
273-71,
274-170,
275723,
27653,
277-621,
278359,
279706,
280-1003,
281378,
282-252,
283693,
2846,
285437,
286-148,
287-408,
288-648,
289-640,
290380,
291-412,
29287,
293-729,
294413,
295-254,
296752,
297738,
298195,
299-7,
300835,
301671,
302303,
303664,
304334,
305-330,
306-439,
3070,
3080,
3090,
3100,
3110,
3120,
3130,
3140,
3150,
3160,
3170,
3180,
3190,
3200,
3210,
3220,
3230,
3240,
3250,
3260,
3270,
3280,
3290,
3300,
3310,
3320,
3330,
3340,
3350,
3360,
3370,
3380,
3390,
3400,
3410,
3420,
3430,
3440,
3450,
3460,
3470,
3480,
3490,
3500,
3510,
3520,
3530,
3540,
3550,
3560,
3570,
3580,
3590,
3600,
3610,
3620,
3630,
3640,
3650,
3660,
3670,
3680,
3690,
3700,
371};
372
373DATA r[NX];
diff --git a/dsplib_benchmarks/fir2/t3.h b/dsplib_benchmarks/fir2/t3.h
new file mode 100644
index 0000000..9fd46af
--- /dev/null
+++ b/dsplib_benchmarks/fir2/t3.h
@@ -0,0 +1,73 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35#define NX 8
36#define NH 4
37#define FNAME "t3"
38#define MAXERROR 10
39
40DATA x[NX] ={
41-10408,
422233,
4314884,
44-12499,
4522183,
464461,
47-8493,
4813286,
49};
50
51#pragma DATA_SECTION(h,".coeffs")
52DATA h[NH] ={ /* b0 b1 b2 ... b(NH-1) */
533654,
54-4326,
5515268,
569519,
57};
58
59#pragma DATA_SECTION(db,".dbuffer")
60DATA db[NH+2] ;
61
62DATA rtest[NX] ={
63-1161,
641623,
65-3484,
66-5342,
6711708,
68-3930,
695170,
7011126,
71};
72
73DATA r[NX];
diff --git a/dsplib_benchmarks/fir2/t4.h b/dsplib_benchmarks/fir2/t4.h
new file mode 100644
index 0000000..c01c587
--- /dev/null
+++ b/dsplib_benchmarks/fir2/t4.h
@@ -0,0 +1,373 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35#define NX 128
36#define NH 64
37#define FNAME "t4"
38#define MAXERROR 10
39
40DATA x[NX] ={
4119321,
4229939,
431480,
4424912,
45-21434,
4631440,
47-14979,
48-16232,
4924624,
5015552,
51-23822,
52-31998,
5325814,
54-19718,
55-13191,
5610580,
57-14129,
58-2017,
59-28523,
6032003,
615425,
62-5014,
631016,
64-10883,
65-4398,
66-17961,
675230,
6817063,
691954,
709209,
71-19067,
72-7877,
7318568,
7411851,
75-2550,
764445,
7719281,
78-28890,
796741,
80-29474,
81-5546,
82-12780,
8324534,
84-31785,
8517560,
8630857,
8732118,
8818930,
89-4021,
90-111,
91-18746,
929403,
93-11795,
9430152,
9514852,
96-5771,
9716027,
98-15208,
99-3938,
10028401,
10112014,
102-18838,
10322232,
1048440,
105-24002,
106-19194,
1077025,
1088512,
109-8489,
1104924,
111-3184,
112-29892,
113-30987,
114-12276,
115-31926,
116-7605,
11712000,
118-26684,
119-30453,
1207365,
1217113,
122-31736,
123-31697,
124-20312,
1255696,
126-28995,
127-8680,
1288614,
12914262,
13012626,
131-27258,
132-2992,
133-3813,
134-9618,
135-22702,
13611511,
13713055,
13814910,
139-1417,
1403594,
141-24836,
142-3228,
14314148,
14425745,
145-14870,
146-16072,
14723960,
148-17541,
14919980,
15026764,
151-17571,
152-17085,
153-29508,
154-27631,
1559228,
156-20259,
15722535,
158-21372,
159-21575,
16032394,
161-3946,
162-10483,
163-12176,
164-8843,
165-6997,
1665998,
167-24921,
168-30270,
169};
170
171#pragma DATA_SECTION(h,".coeffs")
172DATA h[NH] ={ /* b0 b1 b2 ... b(NH-1) */
173-88,
174783,
175919,
176-499,
177-720,
178789,
179-556,
180308,
181989,
182349,
183784,
184-1039,
185-769,
186675,
187-148,
188826,
189497,
190396,
191-326,
192-708,
193-730,
194-655,
195-165,
196754,
197-21,
198669,
199-84,
200-91,
201-105,
202-186,
203850,
204-1048,
205-430,
206-956,
207409,
208317,
2091023,
210111,
211-212,
212-639,
213265,
214494,
215-263,
216-1039,
217-170,
218537,
219622,
220889,
221730,
222-281,
223255,
224489,
225-649,
226857,
227146,
228279,
229-563,
230103,
231914,
232-350,
233329,
234-229,
235269,
236421,
237};
238
239#pragma DATA_SECTION(db,".dbuffer")
240DATA db[NH+2] ;
241
242DATA rtest[NX] ={
243-52,
244382,
2451254,
246515,
247-186,
248-112,
249173,
25058,
251558,
252-186,
2533885,
254-289,
255-3869,
2561486,
257179,
258-613,
259707,
2601790,
2611014,
262-3139,
263-1208,
264-732,
265942,
266-2527,
267500,
2681082,
269-2031,
270-243,
2711445,
272870,
273224,
274-1415,
275-887,
276-1675,
27719,
2782712,
279-755,
2804141,
281-1750,
282-1729,
283-2884,
284-679,
2852963,
2861169,
287570,
288-11,
289288,
29060,
291-1039,
2924637,
293777,
294-287,
295-1546,
296630,
2972258,
2982765,
2992265,
300-2618,
301-650,
302466,
30315,
3045216,
305-210,
3063122,
307-3383,
308-4135,
309-3715,
310593,
3113042,
3121130,
3133628,
314-3536,
3152692,
316-6114,
317-460,
318-1810,
319-75,
320596,
321-2496,
322-3921,
323-2139,
3241357,
3251899,
326695,
327-2461,
328-927,
329-956,
330-4960,
331-4143,
3322941,
333-1722,
334-1724,
3351982,
3363228,
337608,
338-590,
3391238,
340387,
341-908,
342-24,
343148,
344-1729,
345595,
3462334,
3477396,
3481216,
349-400,
350-81,
351-2759,
352-164,
3531736,
3543601,
355-1529,
356895,
3571652,
358-2928,
3594404,
360-500,
361-2613,
362-4179,
363-3444,
3641784,
365-3339,
366-2382,
3673613,
368-1299,
369-878,
370-3167,
371};
372
373DATA r[NX];
diff --git a/dsplib_benchmarks/fir2/t5.h b/dsplib_benchmarks/fir2/t5.h
new file mode 100644
index 0000000..0f71516
--- /dev/null
+++ b/dsplib_benchmarks/fir2/t5.h
@@ -0,0 +1,597 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35#define NX 256
36#define NH 32
37#define FNAME "t5"
38#define MAXERROR 10
39
40DATA x[NX] ={
41-6739,
42-5661,
4310172,
4422123,
45-8415,
46-4899,
476203,
484308,
4914191,
50741,
5118114,
52-699,
53-20585,
5413148,
5531634,
5620095,
5713340,
58-986,
59-25257,
6010803,
61-8823,
62-23591,
634376,
6421168,
6511399,
6632731,
6730253,
68-28911,
69-9155,
703179,
71-15613,
726379,
73-29539,
744656,
7513163,
7630296,
7716417,
7815728,
79-4465,
808799,
8119859,
82-27271,
8329193,
8427259,
856683,
86-16151,
8724474,
88878,
8915246,
90-5097,
9130236,
92-28046,
933500,
94-13633,
9523459,
96-10764,
9711809,
98-29266,
99-9395,
100-112,
101-4297,
1024093,
1037642,
104-25341,
10526099,
10616682,
10719079,
10820640,
10911141,
110-19604,
111-14871,
1128272,
1132415,
114-28869,
115-26938,
116-14988,
117-5960,
118-1702,
11926803,
1206307,
121-11210,
122-1430,
1236368,
124-22188,
12521592,
12629892,
1276261,
128-30884,
12920454,
1307216,
13113205,
132-26726,
133-4923,
134-8155,
135-21879,
13621833,
13722193,
138-3172,
13929923,
140-23125,
14124243,
14217657,
143-3660,
1447904,
14529601,
1469175,
147-16560,
148-9654,
149-20457,
150-614,
151-5946,
152-2391,
1537270,
154-28104,
155-12172,
1567103,
157-21298,
1587931,
159-16649,
1605725,
161396,
162-2309,
1632714,
16428988,
165-10371,
166-6436,
167-12604,
168-5796,
169-14029,
170-6939,
171197,
17214547,
173-12701,
174-25418,
175-3717,
176-2179,
177-31807,
17810751,
17914684,
180-14311,
181-15610,
18213662,
18318602,
18431860,
185-1748,
18626399,
187-3208,
18819956,
18921552,
190-21872,
191-6953,
1921360,
19314294,
1944534,
195-2569,
196-3585,
197-27018,
198-3704,
199-8763,
200-12942,
20123058,
20217005,
20329475,
2043797,
205-31836,
2066303,
20720722,
20831266,
209-18226,
21013348,
2111445,
21228370,
21313982,
214-17824,
215-3301,
216-21483,
21730724,
218-9456,
219-29554,
22016733,
22125874,
222-14015,
223-16306,
22428359,
225-24184,
22628889,
22713228,
22822785,
229-19054,
230-2944,
231-27455,
23223011,
2334066,
234-11843,
235-8199,
23624103,
237-8378,
238-27939,
239-19672,
240-29525,
2414371,
242-24778,
2431449,
244-25097,
24517689,
246-8189,
24721193,
248-29712,
2496416,
25029435,
251-13842,
25225482,
253-26111,
254-28488,
255-17413,
25628383,
257-28631,
258-15453,
25932737,
260-18876,
261-105,
262-13731,
26311321,
26430014,
26517468,
26610887,
267-24187,
268-26515,
269-31794,
270-13881,
27120757,
27231816,
273-31631,
27420931,
2757938,
2763946,
277-16776,
27821103,
279-15519,
28016622,
28110462,
282-18740,
2836692,
2846877,
28510453,
286-20752,
2878948,
288-21607,
2892595,
2908086,
29112182,
29211622,
29324695,
294-31924,
295-12426,
29618289,
297};
298
299#pragma DATA_SECTION(h,".coeffs")
300DATA h[NH] ={ /* b0 b1 b2 ... b(NH-1) */
301-736,
3021628,
303682,
304-1625,
305-1639,
306-1863,
307-1042,
30862,
309-160,
310775,
311314,
31235,
313-1625,
314-1171,
315-460,
316-854,
3171033,
318-711,
319527,
3201856,
32110,
3221708,
3231251,
3241593,
325-1477,
3261191,
3271558,
328-1312,
329-1443,
3301002,
331846,
332578,
333};
334
335#pragma DATA_SECTION(db,".dbuffer")
336DATA db[NH+2] ;
337
338DATA rtest[NX] ={
339151,
340-208,
341-650,
342225,
3432118,
344314,
345-1627,
346-991,
347-870,
348378,
349-259,
350-129,
351597,
352-2630,
353-2252,
354288,
355707,
356420,
357-2062,
358-5128,
359-3994,
360-417,
361-1463,
362-157,
3635930,
3642561,
365621,
366-1223,
367-4174,
368-3442,
369-3419,
370-2030,
3715735,
3725711,
373986,
3745192,
3754954,
376-1549,
377-3282,
378-2617,
379-2820,
380-2141,
381-1871,
382-4172,
3837497,
3848491,
385-2366,
386-1994,
387-2415,
388-1890,
389-5896,
390-371,
391-3442,
392-5240,
393-27,
3942625,
3955114,
3961397,
397616,
398-298,
3991044,
4002474,
4011501,
4022475,
403-626,
4047629,
4053211,
406-2322,
4073811,
4085244,
409-6609,
410-3300,
411800,
4124438,
413-3374,
4144119,
415-1963,
4161123,
417-1516,
4182136,
4191542,
420-708,
421-3850,
422-166,
423-1583,
4244633,
4256082,
4268720,
427-2254,
428-2240,
429682,
430-493,
431-5470,
432-2891,
433-1406,
434-4181,
435-1347,
4366401,
437-592,
438-1252,
439-2370,
440-1173,
441-1923,
442-1784,
4431746,
444-367,
445-1055,
4462830,
447-3279,
448-4011,
449-2300,
4507378,
451-4506,
452-3287,
4533881,
454-579,
455-590,
456-1256,
4573106,
4586178,
4592176,
4607213,
461693,
4622780,
4631549,
464597,
4653311,
466-296,
467-2980,
468-1979,
4693636,
470709,
471-1083,
4722312,
473-2084,
474-2966,
475-851,
476-2154,
4771570,
4781304,
4793056,
4801499,
4811158,
482-1289,
4832848,
484422,
485-293,
486-5798,
487-1495,
488-588,
489-4762,
490-5678,
491-198,
4921536,
493-308,
494-6628,
495-1216,
496-3352,
497-6953,
498-2468,
4991676,
5004509,
5011518,
5025577,
5036431,
504-9102,
505-1877,
5062436,
5077104,
508955,
509-700,
510421,
511-2458,
5122563,
513-3204,
514-8039,
515-1075,
516883,
5172196,
518-4855,
519-1376,
5204695,
521161,
522642,
523-906,
524123,
5251063,
5262524,
5274142,
528-3539,
529263,
530-2818,
5317146,
5321827,
533-1983,
534-202,
5352408,
536792,
537-3264,
538-2679,
539-6077,
5406873,
5419984,
542-142,
543-1469,
5448124,
5455784,
546-2896,
5471176,
548-317,
5494063,
550968,
5512775,
552-674,
553-1346,
554-3994,
5554656,
5563138,
557-1088,
558-4077,
559-708,
560-1965,
561-4126,
562-6189,
563318,
5647695,
565-2020,
5661269,
567-7182,
568-1921,
569-1436,
5706367,
5715469,
572-2895,
5733619,
574-6982,
575-4691,
576-4216,
577-2935,
578-2207,
5796839,
5808668,
581-6296,
582-1946,
5834820,
584-1064,
585-2817,
586-2480,
587-3364,
58857,
589-813,
590-2221,
591910,
5925214,
593-2303,
594-4027,
595};
596
597DATA r[NX];
diff --git a/dsplib_benchmarks/fir2/t5_ran.h b/dsplib_benchmarks/fir2/t5_ran.h
new file mode 100644
index 0000000..80550fe
--- /dev/null
+++ b/dsplib_benchmarks/fir2/t5_ran.h
@@ -0,0 +1,821 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35#define NX 256
36#define NH 256
37#define FNAME "t5"
38#define MAXERROR 10
39
40DATA x[NX] ={
41-6739,
42-5661,
4310172,
4422123,
45-8415,
46-4899,
476203,
484308,
4914191,
50741,
5118114,
52-699,
53-20585,
5413148,
5531634,
5620095,
5713340,
58-986,
59-25257,
6010803,
61-8823,
62-23591,
634376,
6421168,
6511399,
6632731,
6730253,
68-28911,
69-9155,
703179,
71-15613,
726379,
73-29539,
744656,
7513163,
7630296,
7716417,
7815728,
79-4465,
808799,
8119859,
82-27271,
8329193,
8427259,
856683,
86-16151,
8724474,
88878,
8915246,
90-5097,
9130236,
92-28046,
933500,
94-13633,
9523459,
96-10764,
9711809,
98-29266,
99-9395,
100-112,
101-4297,
1024093,
1037642,
104-25341,
10526099,
10616682,
10719079,
10820640,
10911141,
110-19604,
111-14871,
1128272,
1132415,
114-28869,
115-26938,
116-14988,
117-5960,
118-1702,
11926803,
1206307,
121-11210,
122-1430,
1236368,
124-22188,
12521592,
12629892,
1276261,
128-30884,
12920454,
1307216,
13113205,
132-26726,
133-4923,
134-8155,
135-21879,
13621833,
13722193,
138-3172,
13929923,
140-23125,
14124243,
14217657,
143-3660,
1447904,
14529601,
1469175,
147-16560,
148-9654,
149-20457,
150-614,
151-5946,
152-2391,
1537270,
154-28104,
155-12172,
1567103,
157-21298,
1587931,
159-16649,
1605725,
161396,
162-2309,
1632714,
16428988,
165-10371,
166-6436,
167-12604,
168-5796,
169-14029,
170-6939,
171197,
17214547,
173-12701,
174-25418,
175-3717,
176-2179,
177-31807,
17810751,
17914684,
180-14311,
181-15610,
18213662,
18318602,
18431860,
185-1748,
18626399,
187-3208,
18819956,
18921552,
190-21872,
191-6953,
1921360,
19314294,
1944534,
195-2569,
196-3585,
197-27018,
198-3704,
199-8763,
200-12942,
20123058,
20217005,
20329475,
2043797,
205-31836,
2066303,
20720722,
20831266,
209-18226,
21013348,
2111445,
21228370,
21313982,
214-17824,
215-3301,
216-21483,
21730724,
218-9456,
219-29554,
22016733,
22125874,
222-14015,
223-16306,
22428359,
225-24184,
22628889,
22713228,
22822785,
229-19054,
230-2944,
231-27455,
23223011,
2334066,
234-11843,
235-8199,
23624103,
237-8378,
238-27939,
239-19672,
240-29525,
2414371,
242-24778,
2431449,
244-25097,
24517689,
246-8189,
24721193,
248-29712,
2496416,
25029435,
251-13842,
25225482,
253-26111,
254-28488,
255-17413,
25628383,
257-28631,
258-15453,
25932737,
260-18876,
261-105,
262-13731,
26311321,
26430014,
26517468,
26610887,
267-24187,
268-26515,
269-31794,
270-13881,
27120757,
27231816,
273-31631,
27420931,
2757938,
2763946,
277-16776,
27821103,
279-15519,
28016622,
28110462,
282-18740,
2836692,
2846877,
28510453,
286-20752,
2878948,
288-21607,
2892595,
2908086,
29112182,
29211622,
29324695,
294-31924,
295-12426,
29618289,
297};
298
299#pragma DATA_SECTION(h,".coeffs")
300DATA h[NH] ={ /* b0 b1 b2 ... b(NH-1) */
301-736,
3021628,
303682,
304-1625,
305-1639,
306-1863,
307-1042,
30862,
309-160,
310775,
311314,
31235,
313-1625,
314-1171,
315-460,
316-854,
3171033,
318-711,
319527,
3201856,
32110,
3221708,
3231251,
3241593,
325-1477,
3261191,
3271558,
328-1312,
329-1443,
3301002,
331846,
332578,
333-736,
3341628,
335682,
336-1625,
337-1639,
338-1863,
339-1042,
34062,
341-160,
342775,
343314,
34435,
345-1625,
346-1171,
347-460,
348-854,
3491033,
350-711,
351527,
3521856,
35310,
3541708,
3551251,
3561593,
357-1477,
3581191,
3591558,
360-1312,
361-1443,
3621002,
363846,
364578,
365-736,
3661628,
367682,
368-1625,
369-1639,
370-1863,
371-1042,
37262,
373-160,
374775,
375314,
37635,
377-1625,
378-1171,
379-460,
380-854,
3811033,
382-711,
383527,
3841856,
38510,
3861708,
3871251,
3881593,
389-1477,
3901191,
3911558,
392-1312,
393-1443,
3941002,
395846,
396578,
397-736,
3981628,
399682,
400-1625,
401-1639,
402-1863,
403-1042,
40462,
405-160,
406775,
407314,
40835,
409-1625,
410-1171,
411-460,
412-854,
4131033,
414-711,
415527,
4161856,
41710,
4181708,
4191251,
4201593,
421-1477,
4221191,
4231558,
424-1312,
425-1443,
4261002,
427846,
428578,
429-736,
4301628,
431682,
432-1625,
433-1639,
434-1863,
435-1042,
43662,
437-160,
438775,
439314,
44035,
441-1625,
442-1171,
443-460,
444-854,
4451033,
446-711,
447527,
4481856,
44910,
4501708,
4511251,
4521593,
453-1477,
4541191,
4551558,
456-1312,
457-1443,
4581002,
459846,
460578,
461-736,
4621628,
463682,
464-1625,
465-1639,
466-1863,
467-1042,
46862,
469-160,
470775,
471314,
47235,
473-1625,
474-1171,
475-460,
476-854,
4771033,
478-711,
479527,
4801856,
48110,
4821708,
4831251,
4841593,
485-1477,
4861191,
4871558,
488-1312,
489-1443,
4901002,
491846,
492578,
493-736,
4941628,
495682,
496-1625,
497-1639,
498-1863,
499-1042,
50062,
501-160,
502775,
503314,
50435,
505-1625,
506-1171,
507-460,
508-854,
5091033,
510-711,
511527,
5121856,
51310,
5141708,
5151251,
5161593,
517-1477,
5181191,
5191558,
520-1312,
521-1443,
5221002,
523846,
524578,
525-736,
5261628,
527682,
528-1625,
529-1639,
530-1863,
531-1042,
53262,
533-160,
534775,
535314,
53635,
537-1625,
538-1171,
539-460,
540-854,
5411033,
542-711,
543527,
5441856,
54510,
5461708,
5471251,
5481593,
549-1477,
5501191,
5511558,
552-1312,
553-1443,
5541002,
555846,
556578,
557};
558
559#pragma DATA_SECTION(db,".dbuffer")
560DATA db[NH+2] ;
561
562DATA rtest[NX] ={
563151,
564-208,
565-650,
566225,
5672118,
568314,
569-1627,
570-991,
571-870,
572378,
573-259,
574-129,
575597,
576-2630,
577-2252,
578288,
579707,
580420,
581-2062,
582-5128,
583-3994,
584-417,
585-1463,
586-157,
5875930,
5882561,
589621,
590-1223,
591-4174,
592-3442,
593-3419,
594-2030,
5955735,
5965711,
597986,
5985192,
5994954,
600-1549,
601-3282,
602-2617,
603-2820,
604-2141,
605-1871,
606-4172,
6077497,
6088491,
609-2366,
610-1994,
611-2415,
612-1890,
613-5896,
614-371,
615-3442,
616-5240,
617-27,
6182625,
6195114,
6201397,
621616,
622-298,
6231044,
6242474,
6251501,
6262475,
627-626,
6287629,
6293211,
630-2322,
6313811,
6325244,
633-6609,
634-3300,
635800,
6364438,
637-3374,
6384119,
639-1963,
6401123,
641-1516,
6422136,
6431542,
644-708,
645-3850,
646-166,
647-1583,
6484633,
6496082,
6508720,
651-2254,
652-2240,
653682,
654-493,
655-5470,
656-2891,
657-1406,
658-4181,
659-1347,
6606401,
661-592,
662-1252,
663-2370,
664-1173,
665-1923,
666-1784,
6671746,
668-367,
669-1055,
6702830,
671-3279,
672-4011,
673-2300,
6747378,
675-4506,
676-3287,
6773881,
678-579,
679-590,
680-1256,
6813106,
6826178,
6832176,
6847213,
685693,
6862780,
6871549,
688597,
6893311,
690-296,
691-2980,
692-1979,
6933636,
694709,
695-1083,
6962312,
697-2084,
698-2966,
699-851,
700-2154,
7011570,
7021304,
7033056,
7041499,
7051158,
706-1289,
7072848,
708422,
709-293,
710-5798,
711-1495,
712-588,
713-4762,
714-5678,
715-198,
7161536,
717-308,
718-6628,
719-1216,
720-3352,
721-6953,
722-2468,
7231676,
7244509,
7251518,
7265577,
7276431,
728-9102,
729-1877,
7302436,
7317104,
732955,
733-700,
734421,
735-2458,
7362563,
737-3204,
738-8039,
739-1075,
740883,
7412196,
742-4855,
743-1376,
7444695,
745161,
746642,
747-906,
748123,
7491063,
7502524,
7514142,
752-3539,
753263,
754-2818,
7557146,
7561827,
757-1983,
758-202,
7592408,
760792,
761-3264,
762-2679,
763-6077,
7646873,
7659984,
766-142,
767-1469,
7688124,
7695784,
770-2896,
7711176,
772-317,
7734063,
774968,
7752775,
776-674,
777-1346,
778-3994,
7794656,
7803138,
781-1088,
782-4077,
783-708,
784-1965,
785-4126,
786-6189,
787318,
7887695,
789-2020,
7901269,
791-7182,
792-1921,
793-1436,
7946367,
7955469,
796-2895,
7973619,
798-6982,
799-4691,
800-4216,
801-2935,
802-2207,
8036839,
8048668,
805-6296,
806-1946,
8074820,
808-1064,
809-2817,
810-2480,
811-3364,
81257,
813-813,
814-2221,
815910,
8165214,
817-2303,
818-4027,
819};
820
821DATA r[NX];
diff --git a/dsplib_benchmarks/fir2/t6.h b/dsplib_benchmarks/fir2/t6.h
new file mode 100644
index 0000000..eed5727
--- /dev/null
+++ b/dsplib_benchmarks/fir2/t6.h
@@ -0,0 +1,389 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35#define NX 160
36#define NH 16
37#define FNAME "t6"
38#define MAXERROR 10
39
40DATA x[NX] ={
4116647,
4210692,
4325132,
44-14932,
45-5281,
46-18810,
47-30435,
48-27449,
4922974,
50-10473,
51-2219,
5227116,
53-17788,
5423726,
5510264,
5625636,
57-778,
5832285,
59-8302,
602056,
61-20886,
62127,
63-5100,
6410513,
6511380,
6629971,
67-20194,
68-25480,
694263,
7030747,
71-31212,
7224262,
73-31007,
741279,
75-20166,
7614135,
77-16340,
7828433,
79-23778,
801417,
8125899,
8228992,
83-10808,
84-4105,
85-1891,
86-22983,
87-23864,
882129,
8914797,
90-6639,
91-9279,
92-14072,
9324158,
948284,
95-16963,
9631331,
979207,
98-17705,
9911883,
10010867,
101-23940,
102-31294,
103-15585,
104-25133,
105-28226,
10623129,
107-20950,
108-30644,
10915330,
1102393,
111-14679,
112-8621,
113-31924,
11425506,
11523987,
116-16106,
1174553,
118-22331,
1196184,
120-11070,
12110394,
12223831,
1234431,
12431488,
12519125,
126-22768,
12721825,
128-20195,
1299108,
13011075,
13117831,
132-7877,
133-3829,
134-1111,
1357084,
136-21234,
137-32636,
13819020,
139891,
140-18794,
141-25989,
142-22457,
143-6062,
144-6046,
145-29315,
14628954,
147-22940,
148-7578,
149-12383,
150-21723,
15125994,
152-11618,
15315335,
154-5839,
155-6568,
156361,
157-21673,
1581621,
1599253,
160-31707,
16122075,
16219887,
16312962,
164-2498,
165-27354,
16621018,
167-20119,
168-3582,
169-31919,
170-12535,
17124598,
17221971,
173-10939,
17424949,
175-1332,
1763985,
1777596,
17810610,
1797643,
18012133,
181665,
18214022,
183996,
1846938,
18530585,
18621110,
187-11944,
1885747,
189-24236,
190-16099,
19119859,
19210999,
193-31875,
1944035,
195-2978,
19626538,
197-14277,
198-28506,
199-1535,
20031700,
201};
202
203#pragma DATA_SECTION(h,".coeffs")
204DATA h[NH] ={ /* b0 b1 b2 ... b(NH-1) */
2052983,
206432,
2071075,
2081926,
209-2782,
210-3525,
211295,
212-3484,
213-344,
214-2150,
2152028,
216837,
217-3423,
2182760,
2191848,
2202875,
221};
222
223#pragma DATA_SECTION(db,".dbuffer")
224DATA db[NH+2] ;
225
226DATA rtest[NX] ={
2271516,
2281193,
2292976,
230302,
231-637,
232-3493,
233-7204,
234-6937,
235594,
236-5186,
2375013,
2389037,
2391902,
2404640,
2416757,
2424329,
2432531,
2443761,
245-3898,
246-1506,
247-15447,
248-2852,
249-10363,
250-764,
2511726,
2524981,
253440,
2541411,
2554292,
256-2106,
257-1720,
2586990,
259888,
260-5408,
261-557,
262746,
263-4851,
2643693,
2651342,
26611519,
267-697,
268-92,
269327,
2703794,
271-217,
272-8577,
273-4570,
274-4904,
275-2574,
276-6317,
2779644,
2782856,
279991,
280-1424,
2816633,
2828379,
283693,
284-4219,
2856847,
286-5195,
287-12674,
288-2325,
289-2130,
290-4741,
291-10205,
2924708,
2934317,
294-1761,
29511218,
2966464,
297654,
2986477,
299-1301,
3003417,
301257,
302-1635,
3034089,
304-9383,
305-4177,
3062876,
307-4741,
308-589,
309-172,
3104410,
31111576,
312-12000,
313853,
314-4429,
315-5375,
3163889,
317-6631,
318-517,
319-212,
320-4432,
3213979,
322-7018,
3232066,
3244308,
325-2889,
3262617,
3272294,
328-1384,
329-5591,
3305585,
3311805,
3327854,
333-3891,
3344859,
3359161,
336-6966,
337-2307,
3382986,
3392006,
3406627,
341-8033,
342-832,
343151,
344-10916,
3455576,
346-10317,
3477910,
3482285,
349-5694,
3507458,
351-2854,
3521687,
353-3766,
354-5162,
3552089,
356-9039,
357-2623,
3588854,
359-2507,
36011455,
361-3646,
3625662,
3637271,
364-4254,
365-3078,
366-2779,
367974,
368-310,
369-8613,
370-3839,
3714808,
372120,
3731074,
3742358,
375-4508,
376-7028,
377-286,
378-1566,
379-2004,
3804944,
3811589,
3823018,
383957,
3841647,
3853793,
3861817,
387};
388
389DATA r[NX];
diff --git a/dsplib_benchmarks/fir2/t7.h b/dsplib_benchmarks/fir2/t7.h
new file mode 100644
index 0000000..2a151b5
--- /dev/null
+++ b/dsplib_benchmarks/fir2/t7.h
@@ -0,0 +1,325 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35#define NX 120
36#define NH 32
37#define FNAME "t7"
38#define MAXERROR 10
39
40DATA x[NX] ={
4116945,
42-7817,
43-11069,
44267,
454231,
4617511,
4718341,
48-1043,
4919805,
50-1900,
51-19480,
525217,
5310911,
5411584,
5529000,
5617704,
5715558,
5824003,
5932174,
60257,
618459,
6219176,
63-3366,
641596,
65-21531,
66-24205,
67-18430,
68-25856,
69-23500,
70-2821,
7118883,
72-14349,
73-18037,
7426795,
75-32288,
765815,
772760,
7810061,
79-12227,
80-17619,
81-5501,
82-13186,
8311300,
8428721,
85-10280,
864126,
87-24977,
88-21692,
89-14491,
903723,
91-945,
9229636,
93-17569,
94-1399,
951738,
9619183,
97-20120,
9826843,
9927669,
100-31899,
10117534,
10229317,
10320532,
10427776,
105-19727,
10611421,
10727990,
108-10236,
1096192,
1107568,
111-32547,
11231589,
11326182,
11412632,
115-3955,
11613174,
1177190,
118-13115,
11923333,
120-25424,
121-13661,
122-26382,
123-6721,
124-10925,
12529113,
12622187,
127-15832,
128-29957,
129-32383,
1304877,
13115984,
13220108,
1339015,
134-16301,
135-23310,
1369932,
13729234,
13820701,
13928196,
140-12456,
141-15151,
1422388,
143-22068,
144-18941,
145-18559,
1469947,
147-29310,
148-17742,
14910972,
150-12391,
151-12673,
15214462,
15329779,
154-24174,
155-28294,
156-24562,
157-21879,
15826962,
159-23839,
1607667,
161};
162
163#pragma DATA_SECTION(h,".coeffs")
164DATA h[NH] ={ /* b0 b1 b2 ... b(NH-1) */
165-832,
166-1006,
167766,
168176,
1691588,
170-613,
171736,
1721596,
173293,
1741368,
175898,
176-434,
177811,
178-1214,
1791642,
180-1094,
181994,
182407,
183-1216,
184-1689,
185-761,
1861695,
1871621,
188-979,
1891650,
190647,
191-1603,
192359,
193-385,
194-1025,
195-1144,
196-1524,
197};
198
199#pragma DATA_SECTION(db,".dbuffer")
200DATA db[NH+2] ;
201
202DATA rtest[NX] ={
203-430,
204-322,
205917,
206241,
207405,
208-1323,
209-912,
210766,
211-225,
212389,
2131719,
214-165,
2151611,
216-538,
217550,
2181170,
219424,
220182,
221-155,
222-1003,
2233521,
2243834,
2254903,
226760,
2272965,
2284780,
229388,
2303945,
2313623,
2321394,
2331733,
234-5704,
235-1292,
236-2841,
237-6313,
238-2549,
239-4652,
240-1031,
241-2612,
2424075,
243623,
244-2645,
2451781,
246-3316,
247-2422,
24887,
249-3566,
2501637,
251-10152,
252-3343,
253-3181,
254-951,
255-925,
256129,
2573053,
258105,
259-5284,
2608389,
261631,
2622841,
263897,
264-1572,
265-3086,
266-3026,
2675076,
2688366,
269-2350,
2708419,
271-3099,
2721903,
2733329,
274129,
2753557,
276-2038,
277-1650,
2787318,
279-888,
2801592,
2814244,
2825234,
283-1264,
284-3587,
2858591,
286262,
287-3766,
2882372,
289-5067,
2903650,
291196,
292-3566,
293-934,
294-10853,
295-3333,
2961968,
297113,
298-2878,
299-243,
300-5574,
301-244,
3025028,
3034867,
304-1297,
305-2999,
306-4538,
307-4058,
3084848,
3094811,
3104081,
311-2240,
312-3945,
313-3814,
314-2291,
3152788,
316-914,
317349,
318-2971,
319-4317,
320608,
321696,
3225452,
323};
324
325DATA r[NX];
diff --git a/dsplib_benchmarks/fir2/t8.h b/dsplib_benchmarks/fir2/t8.h
new file mode 100644
index 0000000..d517cc3
--- /dev/null
+++ b/dsplib_benchmarks/fir2/t8.h
@@ -0,0 +1,629 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35#define NX 256
36#define NH 64
37#define FNAME "t8"
38#define MAXERROR 10
39
40DATA x[NX] ={
41-32282,
4218925,
43-31603,
4424768,
45-9664,
4614558,
4730700,
48-22567,
49-22089,
50-12230,
51-30843,
52-9331,
53-30987,
5419245,
5532717,
56-25544,
578034,
58-24080,
59-12450,
60-23935,
61-18133,
62-6780,
63-23912,
64-16970,
6528017,
66-7137,
67738,
68-26680,
69-31346,
70-22313,
7122578,
7224848,
73-20514,
7432198,
7513895,
7624337,
77-1335,
78-262,
79-13925,
80-28775,
81-15567,
82-20562,
8327334,
84-24689,
85-31887,
86-8540,
8713018,
8825516,
896145,
90-22500,
91-12014,
92-17473,
93-32217,
94-6757,
959821,
96-27198,
9717616,
9830782,
9914076,
10018478,
101-17199,
102-19941,
103-15518,
10414010,
10531299,
1068986,
1073009,
10822810,
10919798,
11011030,
11111205,
11221013,
11330832,
114-857,
11520805,
1169277,
117-12692,
11810546,
119-9305,
12028717,
121-809,
122-26805,
12311392,
124975,
125-18247,
12614746,
127-28296,
12830416,
129-19159,
130-22209,
1319058,
132-32754,
133-10772,
134-14740,
135-29850,
136-26615,
137-5899,
13820767,
13924282,
140-31290,
14114888,
14222807,
14314981,
14429825,
14510246,
14615879,
147-10161,
14825167,
149-10012,
150-28871,
15114314,
15230029,
153-22490,
154-5482,
155-26606,
156-3281,
15724192,
158-7103,
159-16202,
160-9544,
16115923,
1629884,
16328822,
16421810,
165-1968,
1668510,
167-28955,
1682764,
169-2902,
17023795,
17123278,
172-1819,
17318803,
17410222,
175-32766,
176-24168,
177-336,
178-30256,
179-17863,
180-11280,
18126179,
182-12208,
183-16275,
184-4392,
18522438,
186-20678,
187536,
188-3131,
189-11431,
190-7860,
19125328,
19217121,
19325150,
194-2792,
19519608,
196-23982,
197-28488,
198-8183,
199-8289,
200-1048,
20130766,
202-10351,
203-16208,
2045563,
2051553,
206-22059,
207-892,
208-259,
20922491,
21020066,
21123447,
2127192,
2134307,
2147333,
215-26020,
216-22393,
217-5660,
2183959,
219-15160,
22018628,
221-7349,
222-30738,
2235603,
2243837,
225-19616,
226-27039,
22728392,
228-15770,
229-19388,
230-29544,
2316957,
2323037,
233-26488,
2348978,
235-3739,
236-28418,
237-8239,
238-16443,
23927844,
2408486,
24124792,
2429284,
24319555,
244-4259,
24531531,
246-26480,
2471801,
2482991,
249-14134,
250-8468,
251-28529,
2522936,
25322044,
254-23245,
255-21528,
256-28309,
25721234,
258-23989,
25925217,
260965,
26130384,
262-24872,
263-29604,
264-7855,
265-5716,
266-6463,
267-5178,
268-8064,
26926695,
27011151,
27130267,
272-22087,
27316295,
274-8254,
275-3000,
276-30241,
2774091,
278-8369,
27919187,
28019348,
281-7674,
282-16202,
283-10294,
28430658,
285-1324,
286-8630,
28717338,
288-8052,
28926234,
290-20747,
291-8630,
29227358,
2931043,
294-26850,
29515421,
296-32460,
297};
298
299#pragma DATA_SECTION(h,".coeffs")
300DATA h[NH] ={ /* b0 b1 b2 ... b(NH-1) */
301221,
302982,
303-221,
304498,
305397,
3061029,
307-638,
308200,
309971,
310-516,
31131,
312293,
313-214,
314-29,
315538,
316-805,
317-984,
318-278,
319415,
320937,
321-49,
322-798,
323-35,
324958,
325-285,
326-370,
327587,
328-437,
329-694,
330410,
331-508,
332-91,
333739,
334820,
335430,
336550,
3371020,
338-211,
339-794,
340483,
341859,
342-709,
343-984,
344-45,
345-874,
346322,
347973,
348-91,
34979,
350-933,
351-14,
352-178,
353-447,
354-453,
355546,
356-868,
357-911,
358475,
359569,
360339,
361667,
362-271,
363-417,
364-279,
365};
366
367#pragma DATA_SECTION(db,".dbuffer")
368DATA db[NH+2] ;
369
370DATA rtest[NX] ={
371-219,
372-840,
373571,
374-1398,
375787,
376-1623,
3771925,
378-735,
379-377,
380140,
381-867,
38268,
383-2280,
384-1190,
385950,
386-1026,
387-898,
3881040,
389-1249,
390-660,
391-2678,
392-399,
393-1710,
394-2235,
3951647,
396822,
397-1753,
398-220,
399-336,
400-842,
401-3174,
402-1098,
4032293,
404-2329,
405508,
406914,
40797,
4081420,
4094341,
410503,
411-1322,
412-1954,
413-779,
414373,
415-2344,
416-1847,
417-2799,
418-960,
419-2982,
4202781,
421192,
422-2860,
423-1777,
4242292,
425-1541,
426-3147,
42769,
428-633,
429-3880,
4303046,
4312576,
432731,
433-3353,
434-3037,
4354707,
4363725,
4372898,
4382474,
439687,
4401000,
4414907,
4424995,
443731,
444311,
445-1472,
446-1427,
4472723,
448522,
449584,
450-1055,
451214,
4521740,
4534769,
4541291,
455-4731,
456-3828,
457-4481,
458-788,
459-373,
460-4196,
4614346,
462-217,
4631242,
4645836,
465-960,
466-2871,
467-1925,
468-561,
469-1619,
470-1002,
471-617,
4722012,
4731469,
4741839,
4755678,
4765676,
4773208,
478267,
4793514,
480-3050,
481676,
4823959,
483-1989,
484-4691,
485-942,
4861292,
4871330,
488-2970,
489-1769,
490-1906,
491-3860,
492-260,
493-1607,
494-108,
4951207,
496123,
497-1867,
498-2983,
499-3447,
500-48,
5015716,
502-3709,
503-1874,
5046911,
5051073,
506-1383,
5073422,
5084185,
509-3070,
510-671,
511480,
512369,
513-2161,
5142876,
5151062,
516-4016,
517-2191,
5182250,
519-874,
520-3119,
521708,
5222783,
523-1073,
524-3608,
525-530,
5264639,
5271700,
528-347,
5291267,
530-833,
531-5639,
5322609,
5333779,
534267,
535940,
5361936,
537-4500,
538-1985,
5391476,
540529,
54157,
542-1662,
543-2117,
544758,
545-3023,
546-451,
5471869,
548-55,
549-1733,
550-33,
5511859,
552-2515,
553-2175,
5543340,
555-1969,
556-5322,
5573227,
5585241,
559-5399,
560-82,
5614744,
562377,
563-3528,
564-1737,
565-786,
566-4468,
567-1170,
56896,
569486,
570250,
5711003,
572-89,
573309,
5741527,
5752623,
5765545,
577349,
578-3218,
579900,
5802751,
581-2345,
582-634,
5833275,
584-3515,
585-3993,
586-3707,
587-890,
588831,
589-1768,
5901810,
591-2490,
592-3058,
593-859,
594942,
595-3640,
596-126,
5972006,
598-427,
599-4101,
600538,
6014643,
6021147,
603-2309,
6043757,
605152,
606-1459,
6072086,
6085640,
6092631,
6101482,
61173,
612-1918,
613-3181,
614811,
6152109,
616-4611,
617-952,
6182520,
619-491,
620-2440,
621-890,
6223993,
6234793,
624-2769,
625-4718,
626-1661,
627};
628
629DATA r[NX];
diff --git a/dsplib_benchmarks/fir2/test.h b/dsplib_benchmarks/fir2/test.h
new file mode 100644
index 0000000..c01c587
--- /dev/null
+++ b/dsplib_benchmarks/fir2/test.h
@@ -0,0 +1,373 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35#define NX 128
36#define NH 64
37#define FNAME "t4"
38#define MAXERROR 10
39
40DATA x[NX] ={
4119321,
4229939,
431480,
4424912,
45-21434,
4631440,
47-14979,
48-16232,
4924624,
5015552,
51-23822,
52-31998,
5325814,
54-19718,
55-13191,
5610580,
57-14129,
58-2017,
59-28523,
6032003,
615425,
62-5014,
631016,
64-10883,
65-4398,
66-17961,
675230,
6817063,
691954,
709209,
71-19067,
72-7877,
7318568,
7411851,
75-2550,
764445,
7719281,
78-28890,
796741,
80-29474,
81-5546,
82-12780,
8324534,
84-31785,
8517560,
8630857,
8732118,
8818930,
89-4021,
90-111,
91-18746,
929403,
93-11795,
9430152,
9514852,
96-5771,
9716027,
98-15208,
99-3938,
10028401,
10112014,
102-18838,
10322232,
1048440,
105-24002,
106-19194,
1077025,
1088512,
109-8489,
1104924,
111-3184,
112-29892,
113-30987,
114-12276,
115-31926,
116-7605,
11712000,
118-26684,
119-30453,
1207365,
1217113,
122-31736,
123-31697,
124-20312,
1255696,
126-28995,
127-8680,
1288614,
12914262,
13012626,
131-27258,
132-2992,
133-3813,
134-9618,
135-22702,
13611511,
13713055,
13814910,
139-1417,
1403594,
141-24836,
142-3228,
14314148,
14425745,
145-14870,
146-16072,
14723960,
148-17541,
14919980,
15026764,
151-17571,
152-17085,
153-29508,
154-27631,
1559228,
156-20259,
15722535,
158-21372,
159-21575,
16032394,
161-3946,
162-10483,
163-12176,
164-8843,
165-6997,
1665998,
167-24921,
168-30270,
169};
170
171#pragma DATA_SECTION(h,".coeffs")
172DATA h[NH] ={ /* b0 b1 b2 ... b(NH-1) */
173-88,
174783,
175919,
176-499,
177-720,
178789,
179-556,
180308,
181989,
182349,
183784,
184-1039,
185-769,
186675,
187-148,
188826,
189497,
190396,
191-326,
192-708,
193-730,
194-655,
195-165,
196754,
197-21,
198669,
199-84,
200-91,
201-105,
202-186,
203850,
204-1048,
205-430,
206-956,
207409,
208317,
2091023,
210111,
211-212,
212-639,
213265,
214494,
215-263,
216-1039,
217-170,
218537,
219622,
220889,
221730,
222-281,
223255,
224489,
225-649,
226857,
227146,
228279,
229-563,
230103,
231914,
232-350,
233329,
234-229,
235269,
236421,
237};
238
239#pragma DATA_SECTION(db,".dbuffer")
240DATA db[NH+2] ;
241
242DATA rtest[NX] ={
243-52,
244382,
2451254,
246515,
247-186,
248-112,
249173,
25058,
251558,
252-186,
2533885,
254-289,
255-3869,
2561486,
257179,
258-613,
259707,
2601790,
2611014,
262-3139,
263-1208,
264-732,
265942,
266-2527,
267500,
2681082,
269-2031,
270-243,
2711445,
272870,
273224,
274-1415,
275-887,
276-1675,
27719,
2782712,
279-755,
2804141,
281-1750,
282-1729,
283-2884,
284-679,
2852963,
2861169,
287570,
288-11,
289288,
29060,
291-1039,
2924637,
293777,
294-287,
295-1546,
296630,
2972258,
2982765,
2992265,
300-2618,
301-650,
302466,
30315,
3045216,
305-210,
3063122,
307-3383,
308-4135,
309-3715,
310593,
3113042,
3121130,
3133628,
314-3536,
3152692,
316-6114,
317-460,
318-1810,
319-75,
320596,
321-2496,
322-3921,
323-2139,
3241357,
3251899,
326695,
327-2461,
328-927,
329-956,
330-4960,
331-4143,
3322941,
333-1722,
334-1724,
3351982,
3363228,
337608,
338-590,
3391238,
340387,
341-908,
342-24,
343148,
344-1729,
345595,
3462334,
3477396,
3481216,
349-400,
350-81,
351-2759,
352-164,
3531736,
3543601,
355-1529,
356895,
3571652,
358-2928,
3594404,
360-500,
361-2613,
362-4179,
363-3444,
3641784,
365-3339,
366-2382,
3673613,
368-1299,
369-878,
370-3167,
371};
372
373DATA r[NX];
diff --git a/dsplib_benchmarks/include/Dsplib.h b/dsplib_benchmarks/include/Dsplib.h
new file mode 100644
index 0000000..b3ab955
--- /dev/null
+++ b/dsplib_benchmarks/include/Dsplib.h
@@ -0,0 +1,206 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/***********************************************************/
36/* Version 2.30.00 */
37/***********************************************************/
38#ifndef _DSPLIB
39#define _DSPLIB
40
41#include <tms320.h>
42
43/* 32-bit fft */
44
45void cfft32_SCALE(LDATA *x, ushort nx);
46void cfft32_NOSCALE(LDATA *x, ushort nx);
47void cifft32_SCALE (LDATA *x, ushort nx);
48void cifft32_NOSCALE (LDATA *x, ushort nx);
49
50/* 32-bit bit reversal */
51
52void cbrev32 (LDATA *x, LDATA *y, ushort n);
53
54
55/* 16-bit fft */
56
57void cfft_SCALE(DATA *x, ushort nx);
58void cfft_NOSCALE(DATA *x, ushort nx);
59void cifft_SCALE (DATA *x, ushort nx);
60void cifft_NOSCALE (DATA *x, ushort nx);
61
62void unpack(DATA *x, ushort nx);
63void unpacki(DATA *x, ushort nx);
64void unpack32(LDATA *x, ushort nx);
65void unpacki32(LDATA *x, ushort nx);
66/* void rfft(DATA *x, ushort nx, ushort scale); */
67/* void rifft(DATA *x, ushort nx, ushort scale); */
68
69/* 16-bit bit reversal */
70
71void cbrev (DATA *x, DATA *y, ushort n);
72
73
74/* correlations */
75
76ushort acorr_raw(DATA *x, DATA *r, ushort nx, ushort nr);
77ushort acorr_bias(DATA *x, DATA *r, ushort nx, ushort nr);
78ushort acorr_unbias(DATA *x, DATA *r, ushort nx, ushort nr);
79
80ushort corr_raw (DATA *x, DATA *y, DATA *r, ushort nx, ushort ny);
81ushort corr_bias (DATA *x, DATA *y, DATA *r, ushort nx, ushort ny);
82ushort corr_unbias (DATA *x, DATA *y, DATA *r, ushort nx, ushort ny);
83
84/* filtering and convolution */
85
86ushort convol(DATA *x, DATA *h, DATA *r, ushort nr, ushort nh);
87ushort convol1(DATA *x, DATA *h, DATA *r, ushort nr, ushort nh);
88ushort convol2(DATA *x, DATA *h, DATA *r, ushort nr, ushort nh);
89
90ushort fir(DATA *x, DATA *h, DATA *r, DATA *dbuffer, ushort nx, ushort nh);
91ushort fir2(DATA *x, DATA *h, DATA *r, DATA *dbuffer, ushort nx, ushort nh);
92ushort firs(DATA *x, DATA *h, DATA *r, DATA *dbuffer, ushort nx, ushort nh2);
93ushort cfir(DATA *x, DATA *h, DATA *r, DATA *dbuffer, ushort nx, ushort nh);
94
95ushort iircas4(DATA *x, DATA *h, DATA *r, DATA *dbuffer, ushort nbiq, ushort nx);
96ushort iircas5(DATA *x, DATA *h, DATA *r, DATA *dbuffer, ushort nbiq, ushort nx);
97ushort iircas51(DATA *x, DATA *h, DATA *r, DATA *dbuffer, ushort nbiq, ushort nx);
98
99ushort firlat (DATA *x, DATA *h, DATA *r, DATA *pbuffer, int nx, int nh);
100ushort iirlat (DATA *x, DATA *h, DATA *r, DATA *pbuffer, int nx, int nh);
101
102ushort hilb16(DATA *x, DATA *h, DATA*r, DATA *dbuffer, ushort nx, ushort nh);
103ushort firdec(DATA *x, DATA *h, DATA *r, DATA *dbuffer, ushort nh, ushort nx, ushort D);
104ushort firinterp(DATA *x, DATA *h, DATA *r, DATA *dbuffer, ushort nh, ushort nx, ushort I);
105ushort iir32(DATA *x,LDATA *h,DATA *r,LDATA *d, ushort nbiq, ushort nx);
106
107/* adaptive filtering */
108
109ushort dlms(DATA *x, DATA *h, DATA *r, DATA *des, DATA *dbuffer, DATA step, ushort nh, ushort nx);
110ushort dlmsfast(DATA *x, DATA *h, DATA *r, DATA *des, DATA *dbuffer, DATA step, ushort nh, ushort nx);
111
112
113/* math */
114ushort add(DATA *x, DATA *y, DATA *r, ushort nx, ushort scale);
115ushort sub(DATA *x, DATA *y, DATA *r, ushort nx, ushort scale);
116ushort neg (DATA *x, DATA *r, ushort nx);
117ushort neg32 (LDATA *x, LDATA *r, ushort nx);
118ushort power (DATA *x, LDATA *r, ushort nx);
119
120ushort sqrt_16(DATA *x, DATA *r, short nx);
121void ldiv16(LDATA *x, DATA *y,DATA *r, DATA *rexp, ushort nx);
122void recip16(DATA *x, DATA *r, DATA *rexp, ushort nx);
123
124ushort mul32(LDATA *x, LDATA *y, LDATA *r, ushort nx);
125
126ushort expn(DATA *x, DATA *r, ushort nx);
127ushort logn(DATA *x, LDATA *r, ushort nx);
128ushort log_2(DATA *x, LDATA *r, ushort nx);
129ushort log_10(DATA *x, LDATA *r, ushort nx);
130short bexp (DATA *x, ushort nx);
131
132
133short maxidx (DATA *x, ushort ng, ushort ng_size);
134short maxidx34 (DATA *x, ushort nx);
135short maxval (DATA *x, ushort nx);
136short minidx (DATA *x, ushort ng, ushort ng_size);
137short minval (DATA *x, ushort nx);
138
139void maxvec (DATA *x, ushort nx, DATA *val, DATA *idx);
140void minvec (DATA *x, ushort nx, DATA *val, DATA *idx);
141
142/* matrix */
143
144ushort mmul(DATA *x1,short row1,short col1,DATA *x2,short row2,short col2,DATA *r);
145ushort mtrans(DATA *x, short row, short col, DATA *r);
146
147
148/* trigonometric */
149
150ushort atan16(DATA *x, DATA *r, ushort nx);
151ushort atan2_16(DATA *i, DATA *q, DATA *r, ushort nx);
152ushort sine(DATA *x, DATA *r, ushort nx);
153
154
155/* miscellaneous */
156
157ushort fltoq15(float *x, DATA *r, ushort nx);
158ushort q15tofl(DATA *x, float *r, ushort nx);
159
160ushort rand16(DATA *r, ushort nr);
161void rand16init(void);
162
163
164
165
166/* macro definition */
167
168#define SCALE 1
169#define NOSCALE 0
170
171#define cfft(x,nx, type) cfft_##type(x,nx)
172#define cifft(x,nx, type) cifft_##type(x,nx)
173
174
175#define acorr(n1, n2, n3, n4, type) acorr_##type(n1, n2, n3, n4)
176#define corr(n1, n2, n3, n4, n5, type) corr_##type(n1, n2, n3, n4, n5)
177#define rfft(x,nx,type)\
178 (\
179 cfft_##type(x,nx/2),\
180 cbrev(x,x,nx/2),\
181 unpack(x,nx)\
182 )
183
184#define rifft(x,nx,type)\
185 (\
186 unpacki(x, nx),\
187 cifft_##type(x,nx/2),\
188 cbrev(x,x,nx/2)\
189 )
190
191
192#define rfft32(x,nx,type)\
193 (\
194 cfft32_##type(x,nx/2),\
195 cbrev32(x,x,nx/2),\
196 unpack32(x,nx)\
197 )
198
199#define rifft32(x,nx,type)\
200 (\
201 unpacki32(x, nx),\
202 cifft32_##type(x,nx/2),\
203 cbrev32(x,x,nx/2)\
204 )
205
206#endif
diff --git a/dsplib_benchmarks/include/Dsplib_c.h b/dsplib_benchmarks/include/Dsplib_c.h
new file mode 100644
index 0000000..3d3e88e
--- /dev/null
+++ b/dsplib_benchmarks/include/Dsplib_c.h
@@ -0,0 +1,73 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/***********************************************************/
36/* Version 2.30.00 */
37/***********************************************************/
38#ifndef _DSPLIBC
39#define _DSPLIBC
40
41#include <tms320.h>
42
43
44/* correlations */
45
46void acorr_c_raw(DATA *x, DATA *r, ushort nx, ushort nr);
47void acorr_c_bias(DATA *x, DATA *r, ushort nx, ushort nr);
48void acorr_c_unbias(DATA *x, DATA *r, ushort nx, ushort nr);
49
50/* filtering and convolution */
51
52
53void fir_c(DATA *x, DATA *h, DATA *r, DATA *dbuffer, ushort nx, ushort nh);
54void fir2_c(DATA *x, DATA *h, DATA *r, DATA *dbuffer, ushort nx, ushort nh);
55void firs_c(DATA *x, DATA *h, DATA *r, DATA *dbuffer, ushort nx, ushort nh2);
56void cfir_c(DATA *x, DATA *h, DATA *r, DATA *dbuffer, ushort nx, ushort nh);
57
58void iircas4_c(DATA *x, DATA *h, DATA *r, DATA *dbuffer, ushort nbiq, ushort nx);
59void iircas5_c(DATA *x, DATA *h, DATA *r, DATA *dbuffer, ushort nbiq, ushort nx);
60void iircas51_c(DATA *x, DATA *h, DATA *r, DATA *dbuffer, ushort nbiq, ushort nx);
61
62
63/* adaptive filtering */
64
65void dlms_c(DATA *x, DATA *h, DATA *r, DATA *des, DATA *dbuffer, DATA step, ushort nh, ushort nx);
66
67
68/* macro definition */
69
70
71#define acorr_c(n1, n2, n3, n4, type) acorr_c_##type(n1, n2, n3, n4)
72
73#endif
diff --git a/dsplib_benchmarks/include/tms320.h b/dsplib_benchmarks/include/tms320.h
new file mode 100644
index 0000000..bf90cf3
--- /dev/null
+++ b/dsplib_benchmarks/include/tms320.h
@@ -0,0 +1,54 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/***********************************************************/
36/* Version 2.30.00 */
37/***********************************************************/
38#ifndef _TMS320
39#define _TMS320
40
41typedef unsigned int uint;
42typedef unsigned short ushort;
43#define PASS -1
44
45
46 typedef short DATA;
47 typedef long LDATA;
48 #define ABSVAL abs
49 #define SHIFT15 >>15
50 #define SHIFT1 /2
51 #define ROUND 0x400
52 #define DIV2 >>1
53
54#endif
diff --git a/dsplib_benchmarks/maxval/MAXVAL_T.C b/dsplib_benchmarks/maxval/MAXVAL_T.C
new file mode 100644
index 0000000..b9cadf9
--- /dev/null
+++ b/dsplib_benchmarks/maxval/MAXVAL_T.C
@@ -0,0 +1,112 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35//*****************************************************************************
36// Filename: maxval_t.c
37// Version: 0.01
38// Description: test for maxidx routine
39//*****************************************************************************
40
41#include <stdlib.h>
42#include <math.h>
43#include <tms320.h>
44#include <stdio.h>
45#include <dsplib.h>
46#include <time.h>
47
48#define NUMBER_OF_ITERATIONS 100l
49
50#pragma DATA_ALIGN(x, 2)
51
52//#include "t1.h"
53//#include "t2.h"
54//#include "t3.h"
55//#include "t4.h"
56//#include "t5.h"
57//#include "t6.h"
58//#include "t7.h"
59#include "t8.h"
60//#include "test.h"
61
62short test(DATA *r, DATA *rtest, short n, DATA maxerror);
63
64short eflag = PASS; // error flag or index into r vector where error
65
66
67void main()
68{
69 // clear
70 r = 0; // clear output index (optional)
71 int nx ;
72 long iterations1 ;
73 clock_t t1,t2, t11,t22 ,total1_t ,total2_t,diff ;
74
75 t1 = clock() ;
76 t2 = clock() ;
77 diff = t2 - t1 ; /// overhead of calling
78 t1 = clock() ;
79 // compute
80 r = maxval(x, 100);
81 nx = 100 ;
82 t2 = clock() ;
83 total1_t = (double) (t2 - t1-diff) ;
84 printf("number of elements in the vector is is %d \n",nx ) ;
85 printf("max value time (in cycles) %ld \n", total1_t) ;
86 // test
87 eflag = test(&r, &rtest, 1, MAXERROR);
88
89 if(eflag != PASS)
90 {
91 exit(-1);
92 }
93 for (iterations1 = 0; iterations1 < NUMBER_OF_ITERATIONS;iterations1++)
94
95 {
96
97 r = maxval(x, NX);
98
99 }
100
101
102 printf("Done with %ld iteration \n",iterations1 );
103
104
105 return;
106}
107
108
109
110
111
112
diff --git a/dsplib_benchmarks/maxval/TEST.C b/dsplib_benchmarks/maxval/TEST.C
new file mode 100644
index 0000000..209777d
--- /dev/null
+++ b/dsplib_benchmarks/maxval/TEST.C
@@ -0,0 +1,67 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35//*****************************************************************************
36// Filename: test.c
37// Version: 0.01
38// Description: test r against rtest (array of n elements)
39// Returns eflag
40//-----------------------------------------------------------------------------
41// Revision History:
42// 0.01, R. Piedra, 06/15/98, - Original release
43//*****************************************************************************
44#include <tms320.h>
45
46short test(DATA *r, DATA *rtest, short n, DATA maxerror)
47
48{
49short i;
50short eflag = PASS; // error flag or index into r vector where error
51DATA elevel = 0; // error level at failing eflag index location
52DATA emax = 0; // max error level detected across when NOERROR
53
54for (i=0;i<n;i++)
55 {
56 if ( (elevel = ABSVAL(rtest[i] - r[i])) > maxerror)
57 {
58 eflag =i; // if error --> eflag = index and emax= max error
59 emax = elevel; // if no error --> eflag = -1 and emax = max error
60 break;
61 }
62 else
63 if (elevel>emax) emax = elevel;
64 }
65 // Pass to Host: eflag and emax
66return(eflag);
67}
diff --git a/dsplib_benchmarks/maxval/maxval.cmd b/dsplib_benchmarks/maxval/maxval.cmd
new file mode 100644
index 0000000..94bf6e6
--- /dev/null
+++ b/dsplib_benchmarks/maxval/maxval.cmd
@@ -0,0 +1,68 @@
1/**********************************************************/
2/* */
3/* LINKER command file for LEAD3 memory map */
4/* */
5/**********************************************************/
6
7-stack 0x1000 /* PRIMARY STACK SIZE */
8-sysstack 0x0400 /* SECONDARY STACK SIZE */
9-heap 0x1000 /* HEAP AREA SIZE */
10
11MEMORY
12{
13 PAGE 0:
14
15 MMR : origin = 0000000h, length = 00000c0h
16 SPRAM : origin = 00000c0h, length = 0000040
17 DARAM0 : origin = 0000100h, length = 0003F00h
18 DARAM1 : origin = 0004000h, length = 0004000h
19 DARAM2 : origin = 0008000h, length = 0004000h
20 DARAM3 : origin = 000c000h, length = 0004000h
21
22 SARAM01 : origin = 0010000h, length = 0008000h
23 SARAM2 : origin = 0018000h, length = 0004000h
24 SARAM3 : origin = 001c000h, length = 0004000h
25 SARAM4 : origin = 0020000h, length = 0004000h
26 SARAM5 : origin = 0024000h, length = 0004000h
27 SARAM6 : origin = 0028000h, length = 0004000h
28 SARAM7 : origin = 002c000h, length = 0004000h
29 SARAM8 : origin = 0030000h, length = 0004000h
30 SARAM9 : origin = 0034000h, length = 0004000h
31 SARAM10 : origin = 0038000h, length = 0004000h
32 SARAM11 : origin = 003c000h, length = 0004000h
33 SARAM12 : origin = 0040000h, length = 0004000h
34 SARAM13 : origin = 0044000h, length = 0004000h
35 SARAM14 : origin = 0048000h, length = 0004000h
36 SARAM15 : origin = 004c000h, length = 0004000h
37
38 CE0 : origin = 0050000h, length = 03b0000h
39 CE1 : origin = 0400000h, length = 0400000h
40 CE2 : origin = 0800000h, length = 0400000h
41 CE3 : origin = 0c00000h, length = 03f8000h
42
43 PDROM : origin = 0ff8000h, length = 07f00h
44 VECS : origin = 0ffff00h, length = 00100h /* reset vector */
45}
46
47
48SECTIONS
49{
50 vectors (NOLOAD) : {} > DARAM0 PAGE 0 /* interrupt vector table */ /* was VECS */
51 .cinit : {} > SARAM01 PAGE 0
52 .text : {} > SARAM01 PAGE 0
53 isrs : {} > SARAM2 PAGE 0
54
55 .stack : {} > DARAM0 PAGE 0 ALIGN = 4
56 .sysstack: {} > DARAM0 PAGE 0 ALIGN = 4
57 .sysmem : {} > DARAM1 PAGE 0 ALIGN = 4
58 .data : {} > SARAM8 PAGE 0 /* force .data to not be on Page 0 */
59 .bss:saram : {} > DARAM2 PAGE 0 /* must be a different on-chip block than .bss */
60 .bss:saram2 : {} > SARAM3 PAGE 0 /* must be a different on-chip block than .bss */
61 //.bss : {} > SARAM15 PAGE 0 /* for normal testing, move .bss off of DARAM */
62 .bss : {} > DARAM3 PAGE 0 /* for optimal timing tests, put .bss in DARAM */
63 .input : {} > DARAM3 PAGE 0 /* for optimal timing tests, put .input in DARAM */
64 .coeffs : {} > DARAM0 PAGE 0 /* for optimal timing tests, put .coeffs in DARAM */
65 .dbuffer : {} > DARAM1 PAGE 0 /* for optimal timing tests, put .dbuffer in DARAM */
66 .const : {} > SARAM8 PAGE 0
67 .cio : {} > DARAM2 PAGE 0
68} \ No newline at end of file
diff --git a/dsplib_benchmarks/maxval/t1.h b/dsplib_benchmarks/maxval/t1.h
new file mode 100644
index 0000000..98e1596
--- /dev/null
+++ b/dsplib_benchmarks/maxval/t1.h
@@ -0,0 +1,50 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* This is a test for maxval: tst1 */
36#define NX 6
37#define FNAME "t1"
38#define MAXERROR 0
39
40DATA x[NX] ={
413276,
429830,
436553,
4426214,
45-13108,
46-3277,
47};
48
49DATA rtest = 26214;
50DATA r;
diff --git a/dsplib_benchmarks/maxval/t2.h b/dsplib_benchmarks/maxval/t2.h
new file mode 100644
index 0000000..b43f5e1
--- /dev/null
+++ b/dsplib_benchmarks/maxval/t2.h
@@ -0,0 +1,60 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* This is a test for maxval: rand */
36#define NX 16
37#define FNAME "t2"
38#define MAXERROR 0
39
40DATA x[NX] ={
4129499,
42-17621,
437002,
44-919,
4525644,
4617176,
47-2853,
48-31556,
4921063,
50-3624,
517564,
5219132,
5327643,
5415611,
55-21217,
56-6180,
57};
58
59DATA rtest = 29499;
60DATA r;
diff --git a/dsplib_benchmarks/maxval/t3.h b/dsplib_benchmarks/maxval/t3.h
new file mode 100644
index 0000000..588e789
--- /dev/null
+++ b/dsplib_benchmarks/maxval/t3.h
@@ -0,0 +1,60 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* This is a test for maxval: ones */
36#define NX 16
37#define FNAME "t3"
38#define MAXERROR 0
39
40DATA x[NX] ={
4132767,
4232767,
4332767,
4432767,
4532767,
4632767,
4732767,
4832767,
4932767,
5032767,
5132767,
5232767,
5332767,
5432767,
5532767,
5632767,
57};
58
59DATA rtest = 32767;
60DATA r;
diff --git a/dsplib_benchmarks/maxval/t4.h b/dsplib_benchmarks/maxval/t4.h
new file mode 100644
index 0000000..d74fe91
--- /dev/null
+++ b/dsplib_benchmarks/maxval/t4.h
@@ -0,0 +1,60 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* This is a test for maxval: rmup */
36#define NX 16
37#define FNAME "t4"
38#define MAXERROR 0
39
40DATA x[NX] ={
410,
422048,
434096,
446144,
458192,
4610240,
4712288,
4814336,
4916384,
5018432,
5120480,
5222528,
5324576,
5426624,
5528672,
5630720,
57};
58
59DATA rtest = 30720;
60DATA r;
diff --git a/dsplib_benchmarks/maxval/t5.h b/dsplib_benchmarks/maxval/t5.h
new file mode 100644
index 0000000..0fdb4fa
--- /dev/null
+++ b/dsplib_benchmarks/maxval/t5.h
@@ -0,0 +1,60 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* This is a test for maxval: rmdn */
36#define NX 16
37#define FNAME "t5"
38#define MAXERROR 0
39
40DATA x[NX] ={
4130720,
4228672,
4326624,
4424576,
4522528,
4620480,
4718432,
4816384,
4914336,
5012288,
5110240,
528192,
536144,
544096,
552048,
560,
57};
58
59DATA rtest = 30720;
60DATA r;
diff --git a/dsplib_benchmarks/maxval/t6.h b/dsplib_benchmarks/maxval/t6.h
new file mode 100644
index 0000000..8adc832
--- /dev/null
+++ b/dsplib_benchmarks/maxval/t6.h
@@ -0,0 +1,76 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* This is a test for maxval: rand */
36#define NX 32
37#define FNAME "t6"
38#define MAXERROR 0
39
40DATA x[NX] ={
4128538,
4227322,
43-5881,
4425798,
45-28975,
46-9643,
4720523,
48-32122,
49-23666,
50-19480,
51-19745,
526802,
53-14930,
54-19739,
55-31768,
5616173,
57-3599,
5828299,
59-2229,
60-5332,
6122689,
621648,
63-19488,
6411281,
6522158,
66-31481,
6711880,
68-7899,
6921744,
70184,
7113727,
72-4661,
73};
74
75DATA rtest = 28538;
76DATA r;
diff --git a/dsplib_benchmarks/maxval/t7.h b/dsplib_benchmarks/maxval/t7.h
new file mode 100644
index 0000000..24520b1
--- /dev/null
+++ b/dsplib_benchmarks/maxval/t7.h
@@ -0,0 +1,172 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* This is a test for maxval: rand */
36#define NX 128
37#define FNAME "t7"
38#define MAXERROR 0
39
40DATA x[NX] ={
41-12805,
42-20339,
43-20092,
4411942,
45-12927,
462731,
47-22881,
4812969,
49-7971,
5023593,
5123177,
526131,
53-226,
5426199,
5521078,
569496,
5720838,
5810500,
59-10357,
60-13781,
61-10408,
622233,
6314884,
64-12499,
6522183,
664461,
67-8493,
6813286,
693052,
70-3613,
7112751,
727950,
7319321,
7429939,
751480,
7624912,
77-21434,
7831440,
79-14979,
80-16232,
8124624,
8215552,
83-23822,
84-31998,
8525814,
86-19718,
87-13191,
8810580,
89-14129,
90-2017,
91-28523,
9232003,
935425,
94-5014,
951016,
96-10883,
97-4398,
98-17961,
995230,
10017063,
1011954,
1029209,
103-19067,
104-7877,
10518568,
10611851,
107-2550,
1084445,
10919281,
110-28890,
1116741,
112-29474,
113-5546,
114-12780,
11524534,
116-31785,
11717560,
11830857,
11932118,
12018930,
121-4021,
122-111,
123-18746,
1249403,
125-11795,
12630153,
12714852,
128-5771,
12916027,
130-15208,
131-3938,
13228401,
13312014,
134-18838,
13522232,
1368440,
137-24002,
138-19194,
1397025,
1408512,
141-8489,
1424924,
143-3184,
144-29892,
145-30987,
146-12276,
147-31926,
148-7605,
14912000,
150-26684,
151-30453,
1527365,
1537113,
154-31736,
155-31697,
156-20312,
1575696,
158-28995,
159-8680,
1608614,
16114262,
16212626,
163-27258,
164-2992,
165-3813,
166-9618,
167-22702,
16811511,
169};
170
171DATA rtest = 32118;
172DATA r;
diff --git a/dsplib_benchmarks/maxval/t8 - original.h b/dsplib_benchmarks/maxval/t8 - original.h
new file mode 100644
index 0000000..80b0ca0
--- /dev/null
+++ b/dsplib_benchmarks/maxval/t8 - original.h
@@ -0,0 +1,300 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* This is a test for maxval: rand */
36#define NX 256
37#define FNAME "t8"
38#define MAXERROR 0
39
40DATA x[NX] ={
4113055,
4214910,
43-1417,
443594,
45-24836,
46-3228,
4714148,
4825745,
49-14870,
50-16072,
5123960,
52-17541,
5319980,
5426764,
55-17571,
56-17085,
57-29508,
58-27632,
599228,
60-20259,
6122535,
62-21372,
63-21575,
6432394,
65-3946,
66-10483,
67-12176,
68-8843,
69-6997,
705998,
71-24921,
72-30270,
73-2714,
7424239,
7528458,
76-15438,
77-22263,
7824435,
79-17179,
809557,
8130597,
8210808,
8324273,
84-32118,
85-23789,
8620889,
87-4577,
8825580,
8915394,
9012276,
91-10086,
92-21887,
93-22570,
94-20243,
95-5083,
9623329,
97-639,
9820705,
99-2571,
100-2795,
101-3232,
102-5753,
10326319,
104-32403,
105-13278,
106-29547,
10712660,
1089837,
10931653,
1103451,
111-6549,
112-19741,
1138205,
11415293,
115-8134,
116-32121,
117-5253,
11816624,
11919259,
12027522,
12122591,
122-8667,
1237916,
12415156,
125-20062,
12626529,
1274535,
1288636,
129-17406,
1303196,
13128284,
132-10801,
13310192,
134-7085,
1358343,
13613046,
137-6739,
138-5661,
13910172,
14022123,
141-8415,
142-4899,
1436203,
1444308,
14514191,
146741,
14718114,
148-699,
149-20585,
15013148,
15131634,
15220095,
15313341,
154-986,
155-25257,
15610803,
157-8823,
158-23591,
1594376,
16021168,
16111399,
16232731,
16330253,
164-28911,
165-9155,
1663179,
167-15613,
1686379,
169-29539,
1704656,
17113163,
17230296,
17316417,
17415728,
175-4465,
1768799,
17719859,
178-27271,
17929193,
18027259,
1816683,
182-16151,
18324474,
184878,
18515246,
186-5097,
18730236,
188-28046,
1893500,
190-13633,
19123459,
192-10764,
19311809,
194-29266,
195-9395,
196-112,
197-4297,
1984093,
1997642,
200-25341,
20126099,
20216682,
20319079,
20420640,
20511141,
206-19604,
207-14871,
2088272,
2092415,
210-28869,
211-26938,
212-14988,
213-5960,
214-1702,
21526803,
2166307,
217-11210,
218-1430,
2196368,
220-22188,
22121592,
22229892,
2236261,
224-30884,
22520454,
2267216,
22713205,
228-26726,
229-4923,
230-8155,
231-21879,
23221833,
23322193,
234-3172,
23529923,
236-23125,
23724243,
23817657,
239-3660,
2407904,
24129601,
2429175,
243-16560,
244-9654,
245-20457,
246-614,
247-5946,
248-2391,
2497270,
250-28104,
251-12172,
2527103,
253-21298,
2547931,
255-16649,
2565725,
257396,
258-2309,
2592714,
26028988,
261-10371,
262-6436,
263-12604,
264-5796,
265-14029,
266-6939,
267197,
26814547,
269-12701,
270-25418,
271-3717,
272-2179,
273-31807,
27410751,
27514684,
276-14311,
277-15610,
27813662,
27918602,
28031860,
281-1748,
28226399,
283-3208,
28419956,
28521552,
286-21872,
287-6953,
2881360,
28914294,
2904534,
291-2569,
292-3585,
293-27018,
294-3704,
295-8763,
296-12942,
297};
298
299DATA rtest = 32731;
300DATA r;
diff --git a/dsplib_benchmarks/maxval/t8.h b/dsplib_benchmarks/maxval/t8.h
new file mode 100644
index 0000000..59f6dc8
--- /dev/null
+++ b/dsplib_benchmarks/maxval/t8.h
@@ -0,0 +1,300 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* This is a test for maxval: rand */
36#define NX 256
37#define FNAME "t8"
38#define MAXERROR 0
39
40DATA x[NX] ={
4113055,
4214910,
43-1417,
443594,
45-24836,
46-3228,
4714148,
4825745,
49-14870,
50-16072,
5123960,
52-17541,
5319980,
5426764,
55-17571,
56-17085,
57-29508,
5832731,//-27632,
599228,
60-20259,
6122535,
62-21372,
63-21575,
6432394,
65-3946,
66-10483,
67-12176,
68-8843,
69-6997,
705998,
71-24921,
72-30270,
73-2714,
7424239,
7528458,
76-15438,
77-22263,
7824435,
79-17179,
809557,
8130597,
8210808,
8324273,
84-32118,
85-23789,
8620889,
87-4577,
8825580,
8915394,
9012276,
91-10086,
92-21887,
93-22570,
94-20243,
95-5083,
9623329,
97-639,
9820705,
99-2571,
100-2795,
101-3232,
102-5753,
10326319,
104-32403,
105-13278,
106-29547,
10712660,
1089837,
10931653,
1103451,
111-6549,
112-19741,
1138205,
11415293,
115-8134,
116-32121,
117-5253,
11816624,
11919259,
12027522,
12122591,
122-8667,
1237916,
12415156,
125-20062,
12626529,
1274535,
1288636,
129-17406,
1303196,
13128284,
132-10801,
13310192,
134-7085,
1358343,
13613046,
137-6739,
138-5661,
13910172,
14022123,
141-8415,
142-4899,
1436203,
1444308,
14514191,
146741,
14718114,
148-699,
149-20585,
15013148,
15131634,
15220095,
15313341,
154-986,
155-25257,
15610803,
157-8823,
158-23591,
1594376,
16021168,
16111399,
16233,
16330253,
164-28911,
165-9155,
1663179,
167-15613,
1686379,
169-29539,
1704656,
17113163,
17230296,
17316417,
17415728,
175-4465,
1768799,
17719859,
178-27271,
17929193,
18027259,
1816683,
182-16151,
18324474,
184878,
18515246,
186-5097,
18730236,
188-28046,
1893500,
190-13633,
19123459,
192-10764,
19311809,
194-29266,
195-9395,
196-112,
197-4297,
1984093,
1997642,
200-25341,
20126099,
20216682,
20319079,
20420640,
20511141,
206-19604,
207-14871,
2088272,
2092415,
210-28869,
211-26938,
212-14988,
213-5960,
214-1702,
21526803,
2166307,
217-11210,
218-1430,
2196368,
220-22188,
22121592,
22229892,
2236261,
224-30884,
22520454,
2267216,
22713205,
228-26726,
229-4923,
230-8155,
231-21879,
23221833,
23322193,
234-3172,
23529923,
236-23125,
23724243,
23817657,
239-3660,
2407904,
24129601,
2429175,
243-16560,
244-9654,
245-20457,
246-614,
247-5946,
248-2391,
2497270,
250-28104,
251-12172,
2527103,
253-21298,
2547931,
255-16649,
2565725,
257396,
258-2309,
2592714,
26028988,
261-10371,
262-6436,
263-12604,
264-5796,
265-14029,
266-6939,
267197,
26814547,
269-12701,
270-25418,
271-3717,
272-2179,
273-31807,
27410751,
27514684,
276-14311,
277-15610,
27813662,
27918602,
28031860,
281-1748,
28226399,
283-3208,
28419956,
28521552,
286-21872,
287-6953,
2881360,
28914294,
2904534,
291-2569,
292-3585,
293-27018,
294-3704,
295-8763,
296 -12942,
297};
298
299DATA rtest = 32731;
300DATA r;
diff --git a/dsplib_benchmarks/maxvec/Maxvec_t.c b/dsplib_benchmarks/maxvec/Maxvec_t.c
new file mode 100644
index 0000000..17c69c9
--- /dev/null
+++ b/dsplib_benchmarks/maxvec/Maxvec_t.c
@@ -0,0 +1,113 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35//*****************************************************************************
36// Filename: maxidx_t.c
37// Version: 0.01
38// Description: test for maxidx routine
39//*****************************************************************************
40
41#include <stdlib.h>
42#include <math.h>
43#include <tms320.h>
44#include <stdio.h>
45#include <dsplib.h>
46#include <time.h>
47
48#define NUMBER_OF_ITERATIONS 1000l
49//#include "t1.h"
50//#include "t2.h"
51//#include "t3.h"
52//#include "t4.h"
53//#include "t5.h"
54//#include "t6.h"
55//#include "t7.h"
56#include "t8.h"
57//#include "test.h"
58
59short test(DATA *r, DATA *rtest, short n, DATA maxerror);
60
61short eflagv = PASS; // error flag for value into r vector where error
62short eflagi = PASS; // error flag for index into r vector where error
63
64
65void main()
66{
67 int nx ;
68 long iterations1 ;
69 clock_t t1,t2, t11,t22 ,total1_t ,total2_t,diff ;
70
71
72 // clear
73 r_val = 0; // clear output index and value(optional)
74 r_idx = 0;
75
76 t1 = clock() ;
77 t2 = clock() ;
78 diff = t2 - t1 ; /// overhead of calling
79 t1 = clock() ; // compute
80// maxvec(x, NX, &r_val, &r_idx);
81 maxvec(x, 100, &r_val, &r_idx);
82
83 t2 = clock() ;
84 nx = 100 ;
85 total1_t = (double) (t2 - t1-diff) ;
86 printf("number of elements in the vector is is %d \n",nx ) ;
87 printf("max (index and value) time (in cycles) %ld \n", total1_t) ;
88 // test
89 eflagv = test(&r_val, &r_testval, 1, MAXERROR);
90 eflagi = test(&r_idx, &r_testidx, 1, MAXERROR);
91
92 if( (eflagv != PASS) || (eflagi != PASS) )
93 {
94 exit(-1);
95 }
96
97
98
99 for (iterations1 = 0; iterations1 < NUMBER_OF_ITERATIONS;iterations1++)
100
101 {
102
103 maxvec(x, NX, &r_val, &r_idx);
104
105 }
106
107
108 printf("Done with %ld iteration \n",iterations1 );
109
110
111 return;
112}
113
diff --git a/dsplib_benchmarks/maxvec/TEST.C b/dsplib_benchmarks/maxvec/TEST.C
new file mode 100644
index 0000000..209777d
--- /dev/null
+++ b/dsplib_benchmarks/maxvec/TEST.C
@@ -0,0 +1,67 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35//*****************************************************************************
36// Filename: test.c
37// Version: 0.01
38// Description: test r against rtest (array of n elements)
39// Returns eflag
40//-----------------------------------------------------------------------------
41// Revision History:
42// 0.01, R. Piedra, 06/15/98, - Original release
43//*****************************************************************************
44#include <tms320.h>
45
46short test(DATA *r, DATA *rtest, short n, DATA maxerror)
47
48{
49short i;
50short eflag = PASS; // error flag or index into r vector where error
51DATA elevel = 0; // error level at failing eflag index location
52DATA emax = 0; // max error level detected across when NOERROR
53
54for (i=0;i<n;i++)
55 {
56 if ( (elevel = ABSVAL(rtest[i] - r[i])) > maxerror)
57 {
58 eflag =i; // if error --> eflag = index and emax= max error
59 emax = elevel; // if no error --> eflag = -1 and emax = max error
60 break;
61 }
62 else
63 if (elevel>emax) emax = elevel;
64 }
65 // Pass to Host: eflag and emax
66return(eflag);
67}
diff --git a/dsplib_benchmarks/maxvec/maxvec.cmd b/dsplib_benchmarks/maxvec/maxvec.cmd
new file mode 100644
index 0000000..94bf6e6
--- /dev/null
+++ b/dsplib_benchmarks/maxvec/maxvec.cmd
@@ -0,0 +1,68 @@
1/**********************************************************/
2/* */
3/* LINKER command file for LEAD3 memory map */
4/* */
5/**********************************************************/
6
7-stack 0x1000 /* PRIMARY STACK SIZE */
8-sysstack 0x0400 /* SECONDARY STACK SIZE */
9-heap 0x1000 /* HEAP AREA SIZE */
10
11MEMORY
12{
13 PAGE 0:
14
15 MMR : origin = 0000000h, length = 00000c0h
16 SPRAM : origin = 00000c0h, length = 0000040
17 DARAM0 : origin = 0000100h, length = 0003F00h
18 DARAM1 : origin = 0004000h, length = 0004000h
19 DARAM2 : origin = 0008000h, length = 0004000h
20 DARAM3 : origin = 000c000h, length = 0004000h
21
22 SARAM01 : origin = 0010000h, length = 0008000h
23 SARAM2 : origin = 0018000h, length = 0004000h
24 SARAM3 : origin = 001c000h, length = 0004000h
25 SARAM4 : origin = 0020000h, length = 0004000h
26 SARAM5 : origin = 0024000h, length = 0004000h
27 SARAM6 : origin = 0028000h, length = 0004000h
28 SARAM7 : origin = 002c000h, length = 0004000h
29 SARAM8 : origin = 0030000h, length = 0004000h
30 SARAM9 : origin = 0034000h, length = 0004000h
31 SARAM10 : origin = 0038000h, length = 0004000h
32 SARAM11 : origin = 003c000h, length = 0004000h
33 SARAM12 : origin = 0040000h, length = 0004000h
34 SARAM13 : origin = 0044000h, length = 0004000h
35 SARAM14 : origin = 0048000h, length = 0004000h
36 SARAM15 : origin = 004c000h, length = 0004000h
37
38 CE0 : origin = 0050000h, length = 03b0000h
39 CE1 : origin = 0400000h, length = 0400000h
40 CE2 : origin = 0800000h, length = 0400000h
41 CE3 : origin = 0c00000h, length = 03f8000h
42
43 PDROM : origin = 0ff8000h, length = 07f00h
44 VECS : origin = 0ffff00h, length = 00100h /* reset vector */
45}
46
47
48SECTIONS
49{
50 vectors (NOLOAD) : {} > DARAM0 PAGE 0 /* interrupt vector table */ /* was VECS */
51 .cinit : {} > SARAM01 PAGE 0
52 .text : {} > SARAM01 PAGE 0
53 isrs : {} > SARAM2 PAGE 0
54
55 .stack : {} > DARAM0 PAGE 0 ALIGN = 4
56 .sysstack: {} > DARAM0 PAGE 0 ALIGN = 4
57 .sysmem : {} > DARAM1 PAGE 0 ALIGN = 4
58 .data : {} > SARAM8 PAGE 0 /* force .data to not be on Page 0 */
59 .bss:saram : {} > DARAM2 PAGE 0 /* must be a different on-chip block than .bss */
60 .bss:saram2 : {} > SARAM3 PAGE 0 /* must be a different on-chip block than .bss */
61 //.bss : {} > SARAM15 PAGE 0 /* for normal testing, move .bss off of DARAM */
62 .bss : {} > DARAM3 PAGE 0 /* for optimal timing tests, put .bss in DARAM */
63 .input : {} > DARAM3 PAGE 0 /* for optimal timing tests, put .input in DARAM */
64 .coeffs : {} > DARAM0 PAGE 0 /* for optimal timing tests, put .coeffs in DARAM */
65 .dbuffer : {} > DARAM1 PAGE 0 /* for optimal timing tests, put .dbuffer in DARAM */
66 .const : {} > SARAM8 PAGE 0
67 .cio : {} > DARAM2 PAGE 0
68} \ No newline at end of file
diff --git a/dsplib_benchmarks/maxvec/t1.h b/dsplib_benchmarks/maxvec/t1.h
new file mode 100644
index 0000000..5ddd35e
--- /dev/null
+++ b/dsplib_benchmarks/maxvec/t1.h
@@ -0,0 +1,53 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* This is a test for maxvec: tst1 */
36#define NX 6
37#define FNAME "t1"
38#define MAXERROR 0
39
40DATA x[NX] ={
413276,
429830,
436553,
4426214,
45-13108,
46-3277,
47};
48
49DATA r_testval = 26214;
50DATA r_testidx = 3;
51
52DATA r_val;
53DATA r_idx;
diff --git a/dsplib_benchmarks/maxvec/t2.h b/dsplib_benchmarks/maxvec/t2.h
new file mode 100644
index 0000000..9f45c83
--- /dev/null
+++ b/dsplib_benchmarks/maxvec/t2.h
@@ -0,0 +1,63 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* This is a test for maxvec: rand */
36#define NX 16
37#define FNAME "t2"
38#define MAXERROR 0
39
40DATA x[NX] ={
4129499,
42-17621,
437002,
44-919,
4525644,
4617176,
47-2853,
48-31556,
4921063,
50-3624,
517564,
5219132,
5327643,
5415611,
55-21217,
56-6180,
57};
58
59DATA r_testval = 29499;
60DATA r_testidx = 0;
61
62DATA r_val;
63DATA r_idx;
diff --git a/dsplib_benchmarks/maxvec/t3.h b/dsplib_benchmarks/maxvec/t3.h
new file mode 100644
index 0000000..f36a142
--- /dev/null
+++ b/dsplib_benchmarks/maxvec/t3.h
@@ -0,0 +1,63 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* This is a test for maxvec: rmup */
36#define NX 16
37#define FNAME "t3"
38#define MAXERROR 0
39
40DATA x[NX] ={
410,
422048,
434096,
446144,
458192,
4610240,
4712288,
4814336,
4916384,
5018432,
5120480,
5222528,
5324576,
5426624,
5528672,
5630720,
57};
58
59DATA r_testval = 30720;
60DATA r_testidx = 15;
61
62DATA r_val;
63DATA r_idx;
diff --git a/dsplib_benchmarks/maxvec/t4.h b/dsplib_benchmarks/maxvec/t4.h
new file mode 100644
index 0000000..1deee2f
--- /dev/null
+++ b/dsplib_benchmarks/maxvec/t4.h
@@ -0,0 +1,63 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* This is a test for maxvec: rmdn */
36#define NX 16
37#define FNAME "t4"
38#define MAXERROR 0
39
40DATA x[NX] ={
4130720,
4228672,
4326624,
4424576,
4522528,
4620480,
4718432,
4816384,
4914336,
5012288,
5110240,
528192,
536144,
544096,
552048,
560,
57};
58
59DATA r_testval = 30720;
60DATA r_testidx = 0;
61
62DATA r_val;
63DATA r_idx;
diff --git a/dsplib_benchmarks/maxvec/t5.h b/dsplib_benchmarks/maxvec/t5.h
new file mode 100644
index 0000000..8468f0c
--- /dev/null
+++ b/dsplib_benchmarks/maxvec/t5.h
@@ -0,0 +1,63 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* This is a test for maxvec: tst7 */
36#define NX 16
37#define FNAME "t5"
38#define MAXERROR 0
39
40DATA x[NX] ={
412,
4221,
433,
444,
455,
464,
473,
482,
496,
507,
518,
529,
5310,
549,
5518,
5621,
57};
58
59DATA r_testval = 21;
60DATA r_testidx = 1;
61
62DATA r_val;
63DATA r_idx;
diff --git a/dsplib_benchmarks/maxvec/t6.h b/dsplib_benchmarks/maxvec/t6.h
new file mode 100644
index 0000000..5ffb540
--- /dev/null
+++ b/dsplib_benchmarks/maxvec/t6.h
@@ -0,0 +1,63 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* This is a test for maxvec: tst8 */
36#define NX 16
37#define FNAME "t6"
38#define MAXERROR 0
39
40DATA x[NX] ={
412,
4221,
433,
444,
455,
464,
473,
482,
496,
507,
518,
529,
5310,
5421,
5518,
5620,
57};
58
59DATA r_testval = 21;
60DATA r_testidx = 1;
61
62DATA r_val;
63DATA r_idx;
diff --git a/dsplib_benchmarks/maxvec/t7.h b/dsplib_benchmarks/maxvec/t7.h
new file mode 100644
index 0000000..58bcdfe
--- /dev/null
+++ b/dsplib_benchmarks/maxvec/t7.h
@@ -0,0 +1,207 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* This is a test for maxvec: rand */
36#define NX 160
37#define FNAME "t7"
38#define MAXERROR 0
39
40DATA x[NX] ={
4128538,
4227322,
43-5881,
4425798,
45-28975,
46-9643,
4720523,
48-32122,
49-23666,
50-19480,
51-19745,
526802,
53-14930,
54-19739,
55-31768,
5616173,
57-3599,
5828299,
59-2229,
60-5332,
6122689,
621648,
63-19488,
6411281,
6522158,
66-31481,
6711880,
68-7899,
6921744,
70184,
7113727,
72-4661,
73-12805,
74-20339,
75-20092,
7611942,
77-12927,
782731,
79-22881,
8012969,
81-7971,
8223593,
8323177,
846131,
85-226,
8626199,
8721078,
889496,
8920838,
9010500,
91-10357,
92-13781,
93-10408,
942233,
9514884,
96-12499,
9722183,
984461,
99-8493,
10013286,
1013052,
102-3613,
10312751,
1047950,
10519321,
10629939,
1071480,
10824912,
109-21434,
11031440,
111-14979,
112-16232,
11324624,
11415552,
115-23822,
116-31998,
11725814,
118-19718,
119-13191,
12010580,
121-14129,
122-2017,
123-28523,
12432003,
1255425,
126-5014,
1271016,
128-10883,
129-4398,
130-17961,
1315230,
13217063,
1331954,
1349209,
135-19067,
136-7877,
13718568,
13811851,
139-2550,
1404445,
14119281,
142-28890,
1436741,
144-29474,
145-5546,
146-12780,
14724534,
148-31785,
14917560,
15030857,
15132118,
15218930,
153-4021,
154-111,
155-18746,
1569403,
157-11795,
15830153,
15914852,
160-5771,
16116027,
162-15208,
163-3938,
16428401,
16512014,
166-18838,
16722232,
1688440,
169-24002,
170-19194,
1717025,
1728512,
173-8489,
1744924,
175-3184,
176-29892,
177-30987,
178-12276,
179-31926,
180-7605,
18112000,
182-26684,
183-30453,
1847365,
1857113,
186-31736,
187-31697,
188-20312,
1895696,
190-28995,
191-8680,
1928614,
19314262,
19412626,
195-27258,
196-2992,
197-3813,
198-9618,
199-22702,
20011511,
201};
202
203DATA r_testval = 32118;
204DATA r_testidx = 110;
205
206DATA r_val;
207DATA r_idx;
diff --git a/dsplib_benchmarks/maxvec/t8.h b/dsplib_benchmarks/maxvec/t8.h
new file mode 100644
index 0000000..a124c2f
--- /dev/null
+++ b/dsplib_benchmarks/maxvec/t8.h
@@ -0,0 +1,303 @@
1/*
2 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the
15 * distribution.
16 *
17 * Neither the name of Texas Instruments Incorporated nor the names of
18 * its contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33*/
34
35/* This is a test for maxvec: rand */
36#define NX 256
37#define FNAME "t8"
38#define MAXERROR 0
39
40DATA x[NX] ={
4113055,
4214910,
43-1417,
443594,
45-24836,
46-3228,
4714148,
4825745,
49-14870,
50-16072,
5132731, // 23960,
52-17541,
5319980,
5426764,
55-17571,
56-17085,
57-29508,
58-27632,
599228,
60-20259,
6122535,
62-21372,
63-21575,
6432394,
65-3946,
66-10483,
67-12176,
68-8843,
69-6997,
705998,
71-24921,
72-30270,
73-2714,
7424239,
7528458,
76-15438,
77-22263,
7824435,
79-17179,
809557,
8130597,
8210808,
8324273,
84-32118,
85-23789,
8620889,
87-4577,
8825580,
8915394,
9012276,
91-10086,
92-21887,
93-22570,
94-20243,
95-5083,
9623329,
97-639,
9820705,
99-2571,
100-2795,
101-3232,
102-5753,
10326319,
104-32403,
105-13278,
106-29547,
10712660,
1089837,
10931653,
1103451,
111-6549,
112-19741,
1138205,
11415293,
115-8134,
116-32121,
117-5253,
11816624,
11919259,
12027522,
12122591,
122-8667,
1237916,
12415156,
125-20062,
12626529,
1274535,
1288636,
129-17406,
1303196,
13128284,
132-10801,
13310192,
134-7085,
1358343,
13613046,
137-6739,
138-5661,
13910172,
14022123,
141-8415,
142-4899,
1436203,
1444308,
14514191,
146741,
14718114,
148-699,
149-20585,
15013148,
15131634,
15220095,
15313341,
154-986,
155-25257,
15610803,
157-8823,
158-23591,
1594376,
16021168,
16111399,
16233,
16330253,
164-28911,
165-9155,
1663179,
167-15613,
1686379,
169-29539,
1704656,
17113163,
17230296,
17316417,
17415728,
175-4465,
1768799,
17719859,
178-27271,
17929193,
18027259,
1816683,
182-16151,
18324474,
184878,
18515246,
186-5097,
18730236,
188-28046,
1893500,
190-13633,
19123459,
192-10764,
19311809,
194-29266,
195-9395,
196-112,
197-4297,
1984093,
1997642,
200-25341,
20126099,
20216682,
20319079,
20420640,
20511141,
206-19604,
207-14871,
2088272,
2092415,
210-28869,
211-26938,
212-14988,
213-5960,
214-1702,
21526803,
2166307,
217-11210,
218-1430,
2196368,
220-22188,
22121592,
22229892,
2236261,
224-30884,
22520454,
2267216,
22713205,
228-26726,
229-4923,
230-8155,
231-21879,
23221833,
23322193,
234-3172,
23529923,
236-23125,
23724243,
23817657,
239-3660,
2407904,
24129601,
2429175,
243-16560,
244-9654,
245-20457,
246-614,
247-5946,
248-2391,
2497270,
250-28104,
251-12172,
2527103,
253-21298,
2547931,
255-16649,
2565725,
257396,
258-2309,
2592714,
26028988,
261-10371,
262-6436,
263-12604,
264-5796,
265-14029,
266-6939,
267197,
26814547,
269-12701,
270-25418,
271-3717,
272-2179,
273-31807,
27410751,
27514684,
276-14311,
277-15610,
27813662,
27918602,
28031860,
281-1748,
28226399,
283-3208,
28419956,
28521552,
286-21872,
287-6953,
2881360,
28914294,
2904534,
291-2569,
292-3585,
293-27018,
294-3704,
295-8763,
296 -12942,
297};
298
299DATA r_testval = 32731;
300DATA r_testidx = 10;
301
302DATA r_val;
303DATA r_idx;