1 // See LICENSE for license details.
3 // *************************************************************************
4 // multiply filter bencmark
5 // -------------------------------------------------------------------------
7 // This benchmark tests the software multiply implemenation. The
8 // input data (and reference data) should be generated using the
9 // multiply_gendata.pl perl script and dumped to a file named
16 //--------------------------------------------------------------------------
17 // Input/Reference Data
21 //--------------------------------------------------------------------------
24 int main( int argc
, char* argv
[] )
27 int results_data
[DATA_SIZE
];
30 for (i
= 0; i
< DATA_SIZE
; i
++)
32 results_data
[i
] = multiply( input_data1
[i
], input_data2
[i
] );
37 for (i
= 0; i
< DATA_SIZE
; i
++)
39 results_data
[i
] = multiply( input_data1
[i
], input_data2
[i
] );
44 return verify( DATA_SIZE
, results_data
, verify_data
);