mirror of
https://git.planet-casio.com/Lephenixnoir/gint.git
synced 2025-01-19 19:02:29 +01:00
fc7aab6eba
Adds support for dma_memcpy(), and uses a proper ILRAM allocation scheme (static linking here) for the temporary buffer in dma_memset().
10 lines
251 B
C
10 lines
251 B
C
#include <gint/dma.h>
|
|
|
|
/* dma_memcpy(): Fast 32-aligned memcpy */
|
|
void *dma_memcpy(void * restrict dst, const void * restrict src, size_t size)
|
|
{
|
|
dma_transfer(1, DMA_32B, size >> 5, src, DMA_INC, dst, DMA_INC);
|
|
dma_transfer_wait(1);
|
|
|
|
return dst;
|
|
}
|