/* -*- c++ -*- */
/*
- * Copyright 2004 Free Software Foundation, Inc.
+ * Copyright 2004,2008 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
#include <gr_complex_to_xxx.h>
#include <gr_io_signature.h>
+#include <gr_math.h>
// ----------------------------------------------------------------
{
const gr_complex *in = (const gr_complex *) input_items[0];
float *out0 = (float *) output_items[0];
- float *out1 = (float *) output_items[1];
+ float* out1;
int noi = noutput_items * d_vlen;
switch (output_items.size ()){
break;
case 2:
+ out1 = (float *) output_items[1];
for (int i = 0; i < noi; i++){
out0[i] = in[i].real ();
out1[i] = in[i].imag ();
int noi = noutput_items * d_vlen;
for (int i = 0; i < noi; i++){
- out[i] = std::arg (in[i]);
+ // out[i] = std::arg (in[i]);
+ out[i] = gr_fast_atan2f(in[i]);
}
return noutput_items;
}