Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[Manta] r1755 - trunk/Core/Util


Chronological Thread 
  • From: thiago@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [Manta] r1755 - trunk/Core/Util
  • Date: Wed, 3 Oct 2007 12:54:27 -0600 (MDT)

Author: thiago
Date: Wed Oct  3 12:54:27 2007
New Revision: 1755

Modified:
   trunk/Core/Util/SpinLock.h
Log:
Code was not compiling on hex because:
   error: an empty clobbers list must be omitted entirely
Hopefully this patch fixes that, but my x86 asm knowledge is
very limited, so I might have broken the functionality. Someone
who knows better should double check the code.

Modified: trunk/Core/Util/SpinLock.h
==============================================================================
--- trunk/Core/Util/SpinLock.h  (original)
+++ trunk/Core/Util/SpinLock.h  Wed Oct  3 12:54:27 2007
@@ -23,7 +23,7 @@
           "lock;\n"
           "xchg %1, %0;\n" :
           "=m" (value), "=r"(return_val) :
-          "m" (value) , "r" (return_val) :
+          "m" (value) , "r" (return_val)
           /* no unknown clobbers */
           );
         // Check that we unlocked the lock (meaning that return_val = 1)
@@ -42,7 +42,7 @@
           "lock;\n"
           "xchg %1, %0;\n" :
           "=m" (value), "=r"(return_val) :
-          "m" (value) , "r" (return_val) :
+          "m" (value) , "r" (return_val)
           /* no unknown clobbers */
           );
         // Check that we got the lock, so return_val == 0 to exit
@@ -57,7 +57,7 @@
         "lock;\n"
         "xchg %1, %0;\n" :
         "=m" (value), "=r"(return_val) :
-        "m" (value) , "r" (return_val) :
+        "m" (value) , "r" (return_val)
         /* no unknown clobbers */
         );
       return return_val == 0;




  • [Manta] r1755 - trunk/Core/Util, thiago, 10/03/2007

Archive powered by MHonArc 2.6.16.

Top of page