commit | c1e567bda042d94159026b96e7a77683606037fa | [log] [tgz] |
---|---|---|
author | Mike Hommey <mh@glandium.org> | Mon Mar 26 17:03:41 2012 +0200 |
committer | Jason Evans <jasone@canonware.com> | Mon Mar 26 11:51:13 2012 -0700 |
tree | e0df931a3921136fcd552fb9c3d23dcf6e55968d | |
parent | 1e6138c88c7f3bb1f0e8fb785080ac5abc24210c [diff] |
Use __sync_add_and_fetch and __sync_sub_and_fetch when they are available These functions may be available as inlines or as libgcc functions. In the former case, a __GCC_HAVE_SYNC_COMPARE_AND_SWAP_n macro is defined. But we still want to use these functions in the latter case, when we don't have our own implementation.