[Bf-blender-cvs] [c3f09c0] master: Fix atomix operations on unofficial 64bit archs

Matteo F. Vescovi noreply at git.blender.org
Fri Jul 25 08:27:35 CEST 2014


Commit: c3f09c06cb362b716a4fcb5b2de8f1e256bcce91
Author: Matteo F. Vescovi
Date:   Thu Jul 24 11:29:04 2014 +0200
Branches: master
https://developer.blender.org/rBc3f09c06cb362b716a4fcb5b2de8f1e256bcce91

Fix atomix operations on unofficial 64bit archs

===================================================================

M	intern/atomic/atomic_ops.h

===================================================================

diff --git a/intern/atomic/atomic_ops.h b/intern/atomic/atomic_ops.h
index bb55ac1..127552f 100644
--- a/intern/atomic/atomic_ops.h
+++ b/intern/atomic/atomic_ops.h
@@ -61,7 +61,10 @@
 #  endif
 #endif
 
-#if defined(_M_X64) || defined(__amd64__) || defined(__x86_64__) || defined(__s390x__) || defined(__powerpc64__) || defined(__aarch64__) || (defined(__sparc__) && defined(__arch64__))
+/* This is becoming a bit nastier that it was originally foreseen,
+ * consider using autoconfig detection instead.
+ */
+#if defined(_M_X64) || defined(__amd64__) || defined(__x86_64__) || defined(__s390x__) || defined(__powerpc64__) || defined(__aarch64__) || (defined(__sparc__) && defined(__arch64__)) || defined(__alpha__) || defined(__mips64)
 #  define LG_SIZEOF_PTR 3
 #  define LG_SIZEOF_INT 2
 #else




More information about the Bf-blender-cvs mailing list