- 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/lookup.c
r7952 r20839 4 4 5 5 int i, j; 6 float *ip, *op, *xp, *yp;6 opihi_flt *ip, *op, *xp, *yp; 7 7 Vector *in, *out, *xv, *yv; 8 8 … … 23 23 24 24 out[0].Nelements = in[0].Nelements; 25 REALLOCATE (out[0].elements , float, out[0].Nelements);25 REALLOCATE (out[0].elements.Flt, opihi_flt, out[0].Nelements); 26 26 27 ip = in[0].elements ;28 op = out[0].elements ;27 ip = in[0].elements.Flt; 28 op = out[0].elements.Flt; 29 29 30 30 for (i = 0; i < in[0].Nelements; i++, ip++, op++) { 31 31 // re-write this using bisection 32 xp = xv[0].elements ;33 yp = yv[0].elements ;32 xp = xv[0].elements.Flt; 33 yp = yv[0].elements.Flt; 34 34 35 35 for (j = 0; (*ip < *xp) && (j < yv[0].Nelements); j++);
Note:
See TracChangeset
for help on using the changeset viewer.
