x86: -Wcast-qual clean-up.

ck_pring
Samy Al Bahra 10 years ago
parent 2030767b21
commit 9d59c3d004

@ -114,16 +114,16 @@ CK_PR_FAS_S(8, uint8_t, "xchgb")
#undef CK_PR_FAS_S #undef CK_PR_FAS_S
#undef CK_PR_FAS #undef CK_PR_FAS
#define CK_PR_LOAD(S, M, T, C, I) \ #define CK_PR_LOAD(S, M, T, C, I) \
CK_CC_INLINE static T \ CK_CC_INLINE static T \
ck_pr_load_##S(const M *target) \ ck_pr_load_##S(const M *target) \
{ \ { \
T r; \ T r; \
__asm__ __volatile__(I " %1, %0" \ __asm__ __volatile__(I " %1, %0" \
: "=q" (r) \ : "=q" (r) \
: "m" (*(C *)target) \ : "m" (*(const C *)target) \
: "memory"); \ : "memory"); \
return (r); \ return (r); \
} }
CK_PR_LOAD(ptr, void, void *, char, "movl") CK_PR_LOAD(ptr, void, void *, char, "movl")

Loading…
Cancel
Save