Code: Select all
/** \brief Copy a block of memory to VRAM
\ingroup store_queues
\author TapamN
This function is similar to sq_cpy(), but it has been
optimized for writing to a destination residing within VRAM.
\note
TapamN has reported over a 2x speedup versus the regular
sq_cpy() when using this function to write to VRAM.
\warning
This function cannot be used at the same time as a PVR DMA transfer.
The dest pointer must be at least 32-byte aligned and reside
in video memory, the src pointer must be at least 8-byte aligned,
and n must be a multiple of 32.
\param dest The address to copy to (32-byte aligned).
\param src The address to copy from (32-bit (8-byte) aligned).
\param n The number of bytes to copy (multiple of 32).
\return The original value of dest.
\sa sq_cpy()
*/
void * sq_cpy_pvr(void *dest, const void *src, int n);
EDIT: Also thanks to BB Hood who put this whole PR together.