Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/22/02 19:26
Read: times


 
#23275 - RE: circular buffers by pointers or index ?
Or, in 'C',
buffer[idx++] = SBUF;
idx          &= RINGBUFMASK;

In 'C', arrays & pointers are very closely related - so the use of one doesn't necessarily preclude the use of the other.

Note that there is quite a widespread belief that pointers are inherently faster than indices; this is not necessarily so; eg, see:
http://www.keil.com/discuss/docs/thread1156.htm


List of 25 messages in thread
TopicAuthorDate
circular buffers by pointers or index ?            01/01/70 00:00      
RE: circular buffers by pointers or inde            01/01/70 00:00      
RE: circular buffers by pointers or index ?            01/01/70 00:00      
RE: circular buffers by pointers or index ?            01/01/70 00:00      
RE: circular buffers by pointers or index ?            01/01/70 00:00      
RE: circular buffers by pointers or index ?            01/01/70 00:00      
RE: circular buffers by pointers or index ?            01/01/70 00:00      
RE: circular buffers by pointers or index ?            01/01/70 00:00      
RE: circular buffers by pointers or index ?            01/01/70 00:00      
RE: circular buffers by pointers or index ?            01/01/70 00:00      
RE: circular buffers by pointers or index ?            01/01/70 00:00      
RE: circular buffers by pointers or inde            01/01/70 00:00      
RE: circular buffers by pointers or inde            01/01/70 00:00      
RE: circular buffers by pointers or index ?            01/01/70 00:00      
RE: Steve            01/01/70 00:00      
RE: Peter            01/01/70 00:00      
Ring buffered serial IO            01/01/70 00:00      
RE: pointers vs. indexes            01/01/70 00:00      
RE: Ring buffered serial IO            01/01/70 00:00      
RE: pointers vs. indexes            01/01/70 00:00      
RE: circular buffers by pointers or index ?            01/01/70 00:00      
RE: circular buffers by pointers or inde            01/01/70 00:00      
RE: circular buffers by pointers or index ?            01/01/70 00:00      
RE: circular buffers by pointers or index ?            01/01/70 00:00      
RE: circular buffers by pointers or index ?            01/01/70 00:00      

Back to Subject List