MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / ringBufferClear

Function ringBufferClear

pcsx2/ps2/pgif.cpp:84–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84void 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:

Callers 1

pgifInitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected