Commit 9aae344a authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

put sync_fetch_and_add in the portability layer closes[t:2105]

git-svn-id: file:///svn/toku/tokudb@15294 c7de825b-a66e-492c-adef-691d508d4ae1
parent 07dbf119
#if !defined(TOKU_ATOMIC_H)
#define TOKU_ATOMIC_H
#if __GNUC__ && __i386__
// workaround for a gcc 4.1.2 bug on 32 bit platforms.
static uint64_t toku_sync_fetch_and_add_uint64(uint64_t *a, uint64_t b) __attribute__((noinline));
#endif
static int32_t toku_sync_fetch_and_add_int32(int32_t *a, int32_t b) {
return __sync_fetch_and_add(a, b);
}
static uint64_t toku_sync_fetch_and_add_uint64(uint64_t *a, uint64_t b) {
return __sync_fetch_and_add(a, b);
}
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment