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

« back to all changes in this revision

Viewing changes to gr-trellis/src/lib/trellis_metrics_c.cc

  • Committer: Bazaar Package Importer
  • Author(s): Kamal Mostafa
  • Date: 2010-03-13 07:46:01 UTC
  • mfrom: (2.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100313074601-zjsa893a87bozyh7
Tags: 3.2.2.dfsg-1ubuntu1
* Fix build for Ubuntu lucid (LP: #260406)
  - add binary package dep for libusrp0, libusrp2-0: adduser
  - debian/rules clean: remove pre-built Qt moc files

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 * Boston, MA 02110-1301, USA.
21
21
 */
22
22
 
 
23
// WARNING: this file is machine generated.  Edits will be over written
 
24
 
23
25
#ifndef HAVE_CONFIG_H
24
26
#include "config.h"
25
27
#endif
52
54
  set_output_multiple ((int)d_O);
53
55
}
54
56
 
55
 
 
 
57
void trellis_metrics_c::set_TABLE (const std::vector<gr_complex> &table)
 
58
{
 
59
  d_TABLE = table;
 
60
}
56
61
 
57
62
 
58
63
void
83
88
  float *out = (float *) output_items[m];
84
89
 
85
90
  for (int i = 0; i < noutput_items / d_O ; i++){
86
 
/*
87
 
#if 0
88
 
    calc_metric_s(d_O, d_D, d_TABLE,&(in[i*d_D]),&(out[i*d_O]), d_TYPE);
89
 
#elif 0
90
 
    calc_metric_i(d_O, d_D, d_TABLE,&(in[i*d_D]),&(out[i*d_O]), d_TYPE);
91
 
#elif 0
92
 
    calc_metric_f(d_O, d_D, d_TABLE,&(in[i*d_D]),&(out[i*d_O]), d_TYPE);
93
 
#elif 1
94
 
    calc_metric_c(d_O, d_D, d_TABLE,&(in[i*d_D]),&(out[i*d_O]), d_TYPE);
95
 
#endif
96
 
*/
97
91
    calc_metric(d_O, d_D, d_TABLE,&(in[i*d_D]),&(out[i*d_O]), d_TYPE);
98
92
  } 
99
93
}