comparison libmpdemux/demuxer.c @ 23457:a124f3abc1ec

Replace implicit use of fast_memcpy via macro by explicit use to allow for future optimization.
author reimar
date Tue, 05 Jun 2007 14:27:54 +0000
parents a257dd426da5
children ba9e664dbbaa
comparison
equal deleted inserted replaced
23456:1582297cc3d2 23457:a124f3abc1ec
427 x=ds->buffer_size-ds->buffer_pos; 427 x=ds->buffer_size-ds->buffer_pos;
428 if(x==0){ 428 if(x==0){
429 if(!ds_fill_buffer(ds)) return bytes; 429 if(!ds_fill_buffer(ds)) return bytes;
430 } else { 430 } else {
431 if(x>len) x=len; 431 if(x>len) x=len;
432 if(mem) memcpy(mem+bytes,&ds->buffer[ds->buffer_pos],x); 432 if(mem) fast_memcpy(mem+bytes,&ds->buffer[ds->buffer_pos],x);
433 bytes+=x;len-=x;ds->buffer_pos+=x; 433 bytes+=x;len-=x;ds->buffer_pos+=x;
434 } 434 }
435 } 435 }
436 return bytes; 436 return bytes;
437 } 437 }
443 x=ds->buffer_size-ds->buffer_pos; 443 x=ds->buffer_size-ds->buffer_pos;
444 if(x==0){ 444 if(x==0){
445 if(!ds_fill_buffer(ds)) return bytes; 445 if(!ds_fill_buffer(ds)) return bytes;
446 } else { 446 } else {
447 if(x>len) x=len; 447 if(x>len) x=len;
448 if(mem) memcpy(mem+bytes,&ds->buffer[ds->buffer_pos],x); 448 if(mem) fast_memcpy(mem+bytes,&ds->buffer[ds->buffer_pos],x);
449 bytes+=x;len-=x;ds->buffer_pos+=x; 449 bytes+=x;len-=x;ds->buffer_pos+=x;
450 return bytes; // stop at end of package! (for correct timestamping) 450 return bytes; // stop at end of package! (for correct timestamping)
451 } 451 }
452 } 452 }
453 return bytes; 453 return bytes;