ck_pr/ppc64: Use unsafe for ugly aliasing hack.

Once we migrate to using the wrappers, this ugliness won't be
necessary. Last argument can be macro-expanded instead.
ck_pring
Samy Al Bahra 10 years ago
parent 93c3d452a2
commit a5b4ca9ffc

@ -184,7 +184,7 @@ ck_pr_cas_ptr_value(void *target, void *compare, void *set, void *value)
"r" (compare) "r" (compare)
: "memory", "cc"); : "memory", "cc");
ck_pr_store_ptr(value, previous); ck_pr_md_store_ptr(value, previous);
return (previous == compare); return (previous == compare);
} }
@ -418,4 +418,3 @@ CK_PR_FAA(int, int, "w")
#undef CK_PR_FAA #undef CK_PR_FAA
#endif /* CK_PR_PPC64_H */ #endif /* CK_PR_PPC64_H */

Loading…
Cancel
Save