From 950f86200bfef6e9cde59a9b5e690533c02e78a1 Mon Sep 17 00:00:00 2001 From: Matt Pharr Date: Mon, 30 Jan 2012 15:03:54 -0800 Subject: [PATCH] Fix examples/tasksys.cpp to compile with 32-bit targets. (Change a cmpxchgd to cmpxchl.) Note that a number of the examples still don't work with 32-bit compilation, why still TBD. --- examples/tasksys.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/tasksys.cpp b/examples/tasksys.cpp index 92dc50f0..4ce5d354 100644 --- a/examples/tasksys.cpp +++ b/examples/tasksys.cpp @@ -273,7 +273,7 @@ lAtomicCompareAndSwapPointer(void **v, void *newValue, void *oldValue) { #else void *result; #if (ISPC_POINTER_BYTES == 4) - __asm__ __volatile__("lock\ncmpxchgd %2,%1" + __asm__ __volatile__("lock\ncmpxchgl %2,%1" : "=a"(result), "=m"(*v) : "q"(newValue), "0"(oldValue) : "memory");