diff options
author | Arnstein Ressem <aressem@gmail.com> | 2016-06-16 13:32:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-16 13:32:31 +0200 |
commit | a46f6dcc87f07996fbd32ecc07b4253bd563b840 (patch) | |
tree | e55e45be370d77ae3b7db5fc25638ec8de261164 /vespalib/src | |
parent | fa0c1fd54301974aba4024efe7baf320b9a0766e (diff) | |
parent | df4ffdb221f28eab6245ff5280b5c0f3acb4d96d (diff) |
Merge pull request #10 from yahoo/balder/gc-some-defines
Balder/gc some defines
Diffstat (limited to 'vespalib/src')
-rw-r--r-- | vespalib/src/vespa/vespalib/util/atomic.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/vespalib/src/vespa/vespalib/util/atomic.h b/vespalib/src/vespa/vespalib/util/atomic.h index 77f1f7554ae..c9259671cae 100644 --- a/vespalib/src/vespa/vespalib/util/atomic.h +++ b/vespalib/src/vespa/vespalib/util/atomic.h @@ -67,7 +67,7 @@ public: static inline int64_t postDec(volatile int64_t *data); static inline bool cmpSwap(volatile int64_t * dest, int64_t newVal, int64_t oldVal); -#if defined(FASTOS_64BIT_LONG) +#if defined(__x86_64__) static inline bool cmpSwap(volatile long long * dest, long long newVal, long long oldVal); static inline bool cmpSwap(volatile unsigned long long * dest, unsigned long long newVal, unsigned long long oldVal); #endif @@ -75,8 +75,6 @@ public: #if defined(__x86_64__) #define VESPALIB_ATOMIC_TAGGEDPTR_ALIGNMENT __attribute__ ((aligned (16))) -#elif defined(__i386__) - #define VESPALIB_ATOMIC_TAGGEDPTR_ALIGNMENT #else #error "VESPALIB_ATOMIC_TAGGEDPTR_ALIGNMENT can not be defined." #endif |