[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [59164] branches/soc-2013-depsgraph_mt/ intern/atomic/atomic_ops.h: Code cleanup
Sergey Sharybin
sergey.vfx at gmail.com
Thu Aug 15 14:15:43 CEST 2013
Revision: 59164
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=59164
Author: nazgul
Date: 2013-08-15 12:15:42 +0000 (Thu, 15 Aug 2013)
Log Message:
-----------
Code cleanup
And checking whether mail indeed works now.
Modified Paths:
--------------
branches/soc-2013-depsgraph_mt/intern/atomic/atomic_ops.h
Modified: branches/soc-2013-depsgraph_mt/intern/atomic/atomic_ops.h
===================================================================
--- branches/soc-2013-depsgraph_mt/intern/atomic/atomic_ops.h 2013-08-15 12:13:01 UTC (rev 59163)
+++ branches/soc-2013-depsgraph_mt/intern/atomic/atomic_ops.h 2013-08-15 12:15:42 UTC (rev 59164)
@@ -258,10 +258,10 @@
{
#if (LG_SIZEOF_PTR == 3)
return ((size_t)atomic_add_uint64((uint64_t *)p,
- (uint64_t)-((int64_t)x)));
+ (uint64_t) - ((int64_t)x)));
#elif (LG_SIZEOF_PTR == 2)
return ((size_t)atomic_add_uint32((uint32_t *)p,
- (uint32_t)-((int32_t)x)));
+ (uint32_t) - ((int32_t)x)));
#endif
}
@@ -282,10 +282,10 @@
{
#if (LG_SIZEOF_INT == 3)
return ((unsigned)atomic_add_uint64((uint64_t *)p,
- (uint64_t)-((int64_t)x)));
+ (uint64_t) - ((int64_t)x)));
#elif (LG_SIZEOF_INT == 2)
return ((unsigned)atomic_add_uint32((uint32_t *)p,
- (uint32_t)-((int32_t)x)));
+ (uint32_t) - ((int32_t)x)));
#endif
}
More information about the Bf-blender-cvs
mailing list