]> git.sesse.net Git - vlc/blobdiff - include/input_ext-dec.h
* Borrowed MPlayer's fast memcpy() routines. Best is autodetected, choose
[vlc] / include / input_ext-dec.h
index eea1a0ebc1009860fb9bfbd8e1fe62d6fb906a8a..a16260c4c3d5c5d4b177c62352750559b302ddef 100644 (file)
@@ -2,7 +2,7 @@
  * input_ext-dec.h: structures exported to the VideoLAN decoders
  *****************************************************************************
  * Copyright (C) 1999, 2000 VideoLAN
- * $Id: input_ext-dec.h,v 1.39 2001/11/15 17:39:12 sam Exp $
+ * $Id: input_ext-dec.h,v 1.40 2001/12/03 16:18:37 sam Exp $
  *
  * Authors: Christophe Massiot <massiot@via.ecp.fr>
  *          Michel Kaempf <maxx@via.ecp.fr>
@@ -479,14 +479,14 @@ static __inline__ void GetChunk( bit_stream_t * p_bit_stream,
     if( (i_available = p_bit_stream->p_end - p_bit_stream->p_byte)
             >= i_buf_len )
     {
-        memcpy( p_buffer, p_bit_stream->p_byte, i_buf_len );
+        pf_fast_memcpy( p_buffer, p_bit_stream->p_byte, i_buf_len );
         p_bit_stream->p_byte += i_buf_len;
     }
     else
     {
         do
         {
-            memcpy( p_buffer, p_bit_stream->p_byte, i_available );
+            pf_fast_memcpy( p_buffer, p_bit_stream->p_byte, i_available );
             p_bit_stream->p_byte = p_bit_stream->p_end;
             p_buffer += i_available;
             i_buf_len -= i_available;
@@ -497,7 +497,7 @@ static __inline__ void GetChunk( bit_stream_t * p_bit_stream,
 
         if( i_buf_len )
         {
-            memcpy( p_buffer, p_bit_stream->p_byte, i_buf_len );
+            pf_fast_memcpy( p_buffer, p_bit_stream->p_byte, i_buf_len );
             p_bit_stream->p_byte += i_buf_len;
         }
     }