| 82 | } |
| 83 | |
| 84 | void ringBufferClear(struct ringBuf_t* rb) |
| 85 | { |
| 86 | rb->head = 0; |
| 87 | rb->tail = 0; |
| 88 | rb->count = 0; |
| 89 | // wisi comment: |
| 90 | // Yes, the memset should be commented-out. The reason is that it shouldn't really be necessary (but I am not sure). |
| 91 | // It is better not to be enabled, because clearing the new huge PGIF FIFO, can waste significant time. |
| 92 | //memset(rb->buf, 0, rb->size * sizeof(u32)); |
| 93 | return; |
| 94 | } |
| 95 | |
| 96 | |
| 97 | //Ring buffers definition and initialization: |