From: Ivan Maidanski Date: Fri, 21 Oct 2011 09:48:59 +0000 (+0400) Subject: Document atomic 'and', 'xor' primitives in doc/README.txt X-Git-Tag: libatomic_ops-7_3alpha2~69 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d9861176304476789ce2d3f9189a1f10176148ab;p=platform%2Fupstream%2Flibatomic_ops.git Document atomic 'and', 'xor' primitives in doc/README.txt --- diff --git a/doc/README.txt b/doc/README.txt index 88445c0..26a4f7f 100644 --- a/doc/README.txt +++ b/doc/README.txt @@ -90,8 +90,12 @@ AO_t fetch_and_add1(volatile AO_t *addr) Equivalent to AO_fetch_and_add(addr, 1). AO_t fetch_and_sub1(volatile AO_t *addr) Equivalent to AO_fetch_and_add(addr, (AO_t)(-1)). -void or(volatile AO_t *addr, AO_t incr) - Atomically or incr into *addr. +void and(volatile AO_t *addr, AO_t value) + Atomically 'and' value into *addr. +void or(volatile AO_t *addr, AO_t value) + Atomically 'or' value into *addr. +void xor(volatile AO_t *addr, AO_t value) + Atomically 'xor' value into *addr. int compare_and_swap(volatile AO_t * addr, AO_t old_val, AO_t new_val) Atomically compare *addr to old_val, and replace *addr by new_val if the first comparison succeeds. Returns nonzero if the comparison