~ubuntu-branches/ubuntu/trusty/gnuradio/trusty-updates

« back to all changes in this revision

Viewing changes to gnuradio-core/src/tests/benchmark_dotprod_ccf.cc

  • Committer: Package Import Robot
  • Author(s): A. Maitland Bottoms
  • Date: 2012-02-26 21:26:16 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20120226212616-vsfkbi1158xshdql
Tags: 3.5.1-1
* new upstream version, re-packaged from scratch with modern tools
    closes: #642716, #645332, #394849, #616832, #590048, #642580,
    #647018, #557050, #559640, #631863
* CMake build

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
{
57
57
  int   i;
58
58
  float coeffs[NTAPS];
59
 
  gr_complex    input[BLOCK_SIZE + NTAPS];
 
59
  //gr_complex   input[BLOCK_SIZE + NTAPS];  // not always 16-bit aligned
 
60
  gr_complex   *input = new gr_complex[BLOCK_SIZE + NTAPS];
60
61
  long  n;
61
62
  gr_complex    result;
62
63
#ifdef HAVE_SYS_RESOURCE_H
86
87
    exit (1);
87
88
  }
88
89
#else
89
 
  clock_start= (double) clock() * (1000000. / CLOCKS_PER_SEC);
 
90
  clock_start= (double) clock() / CLOCKS_PER_SEC;
90
91
#endif
91
92
 
92
93
  // do the actual work
118
119
 
119
120
  double total = user + sys;
120
121
#else
121
 
  clock_end= (double) clock() * (1000000. / CLOCKS_PER_SEC);
 
122
  clock_end= (double) clock() / CLOCKS_PER_SEC;
122
123
  double total = clock_end - clock_start;
123
124
#endif
124
125
 
128
129
          implementation_name, NTAPS, (double) TOTAL_TEST_SIZE, total, macs / total);
129
130
 
130
131
  delete f;
 
132
  delete [] input;
131
133
}
132
134
 
133
135
static void