- Timestamp:
- Nov 25, 2008, 4:51:39 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20081124/Ohana/src/opihi/cmd.data/vbin.c
r7917 r20839 5 5 int i, j, n, N, Nin, Nout; 6 6 int Normalize, Ignore; 7 float *Vout, *Vin, IgnoreValue;7 opihi_flt *Vout, *Vin, IgnoreValue; 8 8 double scale; 9 9 Vector *in, *out; … … 42 42 Nout = Nin / scale; 43 43 44 REALLOCATE (out[0].elements , float, Nout);44 REALLOCATE (out[0].elements.Flt, opihi_flt, Nout); 45 45 out[0].Nelements = Nout; 46 46 47 Vin = in[0].elements ;48 Vout = out[0].elements ;47 Vin = in[0].elements.Flt; 48 Vout = out[0].elements.Flt; 49 49 for (n = j = 0; j < Nout; j++, Vout++) { 50 50 *Vout = 0; … … 57 57 if (Normalize) { 58 58 if (N > 0) { 59 *Vout /= ( float) N;59 *Vout /= (opihi_flt) N; 60 60 } else { 61 61 *Vout = 0;
Note:
See TracChangeset
for help on using the changeset viewer.
