All: Const-correctness for PPC

This commit is contained in:
Jeffrey Pfau 2015-10-14 22:00:36 -07:00
parent 4c176ef51b
commit 0211106a3d
1 changed files with 2 additions and 2 deletions

View File

@ -52,13 +52,13 @@ typedef intptr_t ssize_t;
#if defined(__PPC__) || defined(__POWERPC__)
#define LOAD_32LE(DEST, ADDR, ARR) { \
uint32_t _addr = (ADDR); \
void* _ptr = (ARR); \
const void* _ptr = (ARR); \
__asm__("lwbrx %0, %1, %2" : "=r"(DEST) : "b"(_ptr), "r"(_addr)); \
}
#define LOAD_16LE(DEST, ADDR, ARR) { \
uint32_t _addr = (ADDR); \
void* _ptr = (ARR); \
const void* _ptr = (ARR); \
__asm__("lhbrx %0, %1, %2" : "=r"(DEST) : "b"(_ptr), "r"(_addr)); \
}