ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Algorithm-FEC/FEC.xs
(Generate patch)

Comparing Algorithm-FEC/FEC.xs (file contents):
Revision 1.6 by root, Sat Sep 13 21:16:33 2003 UTC vs.
Revision 1.7 by root, Sat Sep 13 21:58:36 2003 UTC

227void 227void
228set_decode_blocks (self, blocks, indices) 228set_decode_blocks (self, blocks, indices)
229 Algorithm::FEC self 229 Algorithm::FEC self
230 SV * blocks 230 SV * blocks
231 SV * indices 231 SV * indices
232 ALIAS:
233 shuffle = 1
232 CODE: 234 CODE:
233{ 235{
234 int i; 236 int i;
235 int *idx; 237 int *idx;
236 238
279 d = idx[i]; idx[i] = idx[j]; idx[j] = d; 281 d = idx[i]; idx[i] = idx[j]; idx[j] = d;
280 s = *a; *a = *b; *b = s; 282 s = *a; *a = *b; *b = s;
281 s = *e; *e = *f; *f = s; 283 s = *e; *e = *f; *f = s;
282 } 284 }
283 285
286 if (ix)
287 Safefree (idx);
288 else
289 {
284 open_files (self, (AV *)SvRV (blocks), 1); 290 open_files (self, (AV *)SvRV (blocks), 1);
285 self->idx = idx; 291 self->idx = idx;
292 }
286} 293}
287 294
288void 295void
289decode (self) 296decode (self)
290 Algorithm::FEC self 297 Algorithm::FEC self

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines