ck_pr: Reference MD-implementation for CAS wrapper.

ck_pring
Samy Al Bahra 10 years ago
parent cb7620ed78
commit 8ee26212f9

@ -459,7 +459,7 @@ CK_PR_BIN_S(or, 8, uint8_t, |)
{ \ { \
T previous; \ T previous; \
C punt; \ C punt; \
punt = ck_pr_load_##S(target); \ punt = ck_pr_md_load_##S(target); \
previous = (T)punt; \ previous = (T)punt; \
while (ck_pr_cas_##S##_value(target, (C)previous, \ while (ck_pr_cas_##S##_value(target, (C)previous, \
(C)(previous P (R ((T)1 << offset))), &previous) == false) \ (C)(previous P (R ((T)1 << offset))), &previous) == false) \
@ -600,7 +600,7 @@ CK_PR_BTX_S(bts, 16, uint16_t, |,)
{ \ { \
T previous; \ T previous; \
C punt; \ C punt; \
punt = (C)ck_pr_load_##S(target); \ punt = (C)ck_pr_md_load_##S(target); \
previous = (T)punt; \ previous = (T)punt; \
while (ck_pr_cas_##S##_value(target, \ while (ck_pr_cas_##S##_value(target, \
(C)previous, \ (C)previous, \

Loading…
Cancel
Save