Define 64-bits atomics unconditionally

They are used on all platforms in prng.h.
This commit is contained in:
Mike Hommey 2016-06-09 23:17:39 +09:00 committed by Jason Evans
parent 79647fe465
commit af33e9a597

View File

@ -66,7 +66,6 @@ void atomic_write_u(unsigned *p, unsigned x);
#if (defined(JEMALLOC_ENABLE_INLINE) || defined(JEMALLOC_ATOMIC_C_))
/******************************************************************************/
/* 64-bit operations. */
#if (LG_SIZEOF_PTR == 3 || LG_SIZEOF_INT == 3)
#if (defined(__amd64__) || defined(__x86_64__))
JEMALLOC_INLINE uint64_t
atomic_add_uint64(uint64_t *p, uint64_t x)
@ -287,7 +286,6 @@ atomic_write_uint64(uint64_t *p, uint64_t x)
#else
# error "Missing implementation for 64-bit atomic operations"
#endif
#endif
/******************************************************************************/
/* 32-bit operations. */