Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo F. Vescovi <mfvescovi@gmail.com>2014-07-24 13:29:04 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2014-07-25 10:26:10 +0400
commitc3f09c06cb362b716a4fcb5b2de8f1e256bcce91 (patch)
tree649cd03f38a0bdb82efe77b46c41998c023802f4 /intern/atomic
parent2dc139cd892b71e43a3b4e6ba2924ad0e93b207a (diff)
Fix atomix operations on unofficial 64bit archs
Diffstat (limited to 'intern/atomic')
-rw-r--r--intern/atomic/atomic_ops.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/intern/atomic/atomic_ops.h b/intern/atomic/atomic_ops.h
index bb55ac1a11f..127552f8bd4 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