diff options
author | aliaspider | 2014-10-28 06:47:04 +0100 |
---|---|---|
committer | aliaspider | 2014-10-28 06:47:04 +0100 |
commit | ad4866e0cb1f7ddefbe1e31a890741e4cbc50181 (patch) | |
tree | 86b8351ca560156abbeaed5e2c1964de38a49544 /source/nds/dma_adj.c | |
parent | 2b75359c7ea0485b509460ea81606ac8052a6333 (diff) | |
download | snes9x2005-ad4866e0cb1f7ddefbe1e31a890741e4cbc50181.tar.gz snes9x2005-ad4866e0cb1f7ddefbe1e31a890741e4cbc50181.tar.bz2 snes9x2005-ad4866e0cb1f7ddefbe1e31a890741e4cbc50181.zip |
remove unused files
Diffstat (limited to 'source/nds/dma_adj.c')
-rw-r--r-- | source/nds/dma_adj.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/source/nds/dma_adj.c b/source/nds/dma_adj.c deleted file mode 100644 index 8b6f9ad..0000000 --- a/source/nds/dma_adj.c +++ /dev/null @@ -1,26 +0,0 @@ -#include "ds2_malloc.h" -#include "dma_adj.h" - -#ifdef DS2_DMA - -struct SPointerAdjustments PtrAdj; - -void* AlignedMalloc (unsigned int Size, unsigned int Alignment, unsigned int* Adjustment) -{ - if (Alignment == 0) Alignment = 1; - - unsigned char* result = (unsigned char*) malloc(Size + Alignment); - if (!result) { - return result; - } else { - *Adjustment = Alignment - ((unsigned int) result & (Alignment - 1)); - return (void*) (result + *Adjustment); - } -} - -void AlignedFree (void* Memory, unsigned int Adjustment) -{ - free((void*) ((unsigned char*) Memory - Adjustment)); -} - -#endif // DS2_DMA |