You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by jo...@apache.org on 2004/01/06 14:58:18 UTC
cvs commit: apr/atomic/unix apr_atomic.c
jorton 2004/01/06 05:58:18
Modified: atomic/unix apr_atomic.c
Log:
* atomic/unix/apr_atomic.c: Enable x86 asm on AMD64.
Revision Changes Path
1.43 +2 -1 apr/atomic/unix/apr_atomic.c
Index: apr_atomic.c
===================================================================
RCS file: /home/cvs/apr/atomic/unix/apr_atomic.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -b -d -u -r1.42 -r1.43
--- apr_atomic.c 31 Dec 2003 21:37:33 -0000 1.42
+++ apr_atomic.c 6 Jan 2004 13:58:18 -0000 1.43
@@ -58,7 +58,8 @@
#include <stdlib.h>
-#if defined(__i386__) && defined(__GNUC__) && !APR_FORCE_ATOMIC_GENERIC
+#if (defined(__i386__) || defined(__x86_64__)) \
+ && defined(__GNUC__) && !APR_FORCE_ATOMIC_GENERIC
APR_DECLARE(apr_uint32_t) apr_atomic_cas32(volatile apr_uint32_t *mem,
apr_uint32_t with,