comparison libao2/ao_jack.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 99e20a22d5d0
children acfe034e5386
comparison
equal deleted inserted replaced
23456:1582297cc3d2 23457:a124f3abc1ec
109 int first_len = BUFFSIZE - write_pos; 109 int first_len = BUFFSIZE - write_pos;
110 int free = buf_free(); 110 int free = buf_free();
111 if (len > free) len = free; 111 if (len > free) len = free;
112 if (first_len > len) first_len = len; 112 if (first_len > len) first_len = len;
113 // till end of buffer 113 // till end of buffer
114 memcpy (&buffer[write_pos], data, first_len); 114 fast_memcpy (&buffer[write_pos], data, first_len);
115 if (len > first_len) { // we have to wrap around 115 if (len > first_len) { // we have to wrap around
116 // remaining part from beginning of buffer 116 // remaining part from beginning of buffer
117 memcpy (buffer, &data[first_len], len - first_len); 117 fast_memcpy (buffer, &data[first_len], len - first_len);
118 } 118 }
119 write_pos = (write_pos + len) % BUFFSIZE; 119 write_pos = (write_pos + len) % BUFFSIZE;
120 return len; 120 return len;
121 } 121 }
122 122