diff --git a/include/gcc/ppc/ck_pr.h b/include/gcc/ppc/ck_pr.h index a1b98f5..683c329 100644 --- a/include/gcc/ppc/ck_pr.h +++ b/include/gcc/ppc/ck_pr.h @@ -82,16 +82,16 @@ CK_PR_FENCE(release, "lwsync") #undef CK_PR_FENCE -#define CK_PR_LOAD(S, M, T, C, I) \ - CK_CC_INLINE static T \ - ck_pr_load_##S(const M *target) \ - { \ - T r; \ - __asm__ __volatile__(I "%U1%X1 %0, %1" \ - : "=r" (r) \ - : "m" (*(C *)target) \ - : "memory"); \ - return (r); \ +#define CK_PR_LOAD(S, M, T, C, I) \ + CK_CC_INLINE static T \ + ck_pr_load_##S(const M *target) \ + { \ + T r; \ + __asm__ __volatile__(I "%U1%X1 %0, %1" \ + : "=r" (r) \ + : "m" (*(const C *)target) \ + : "memory"); \ + return (r); \ } CK_PR_LOAD(ptr, void, void *, uint32_t, "lwz") diff --git a/include/gcc/ppc64/ck_pr.h b/include/gcc/ppc64/ck_pr.h index 69da1b9..90e8ded 100644 --- a/include/gcc/ppc64/ck_pr.h +++ b/include/gcc/ppc64/ck_pr.h @@ -85,16 +85,16 @@ CK_PR_FENCE(release, "lwsync") #undef CK_PR_FENCE -#define CK_PR_LOAD(S, M, T, C, I) \ - CK_CC_INLINE static T \ - ck_pr_load_##S(const M *target) \ - { \ - T r; \ - __asm__ __volatile__(I "%U1%X1 %0, %1" \ - : "=r" (r) \ - : "m" (*(C *)target) \ - : "memory"); \ - return (r); \ +#define CK_PR_LOAD(S, M, T, C, I) \ + CK_CC_INLINE static T \ + ck_pr_load_##S(const M *target) \ + { \ + T r; \ + __asm__ __volatile__(I "%U1%X1 %0, %1" \ + : "=r" (r) \ + : "m" (*(const C *)target) \ + : "memory"); \ + return (r); \ } CK_PR_LOAD(ptr, void, void *, uint64_t, "ld")