search for: fetch_and_add

Displaying 1 result from an estimated 1 matches for "fetch_and_add".

2008 Mar 03
3
[LLVMdev] Atomic operations: minimal or maximal?
Looking through the various architectures, it seems that the minimal approach to atomic intrinsics isn't necessarily the best. If we assume CAS and atomic add, then we can implement atomic N, where n is some other operation with a loop. however, for the ll/sc architectures, this will lower into a double loop (the outer loop of load-op-CAS and the CAS loop. On such archs, the atomic op can