[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [29493] branches/render25/source/blender/ blenlib/BLI_math_inline.h: Render Branch: add some defines for " always inline" in addition to "inline".
Brecht Van Lommel
brecht at blender.org
Wed Jun 16 21:07:00 CEST 2010
Revision: 29493
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=29493
Author: blendix
Date: 2010-06-16 21:07:00 +0200 (Wed, 16 Jun 2010)
Log Message:
-----------
Render Branch: add some defines for "always inline" in addition to "inline".
Modified Paths:
--------------
branches/render25/source/blender/blenlib/BLI_math_inline.h
Modified: branches/render25/source/blender/blenlib/BLI_math_inline.h
===================================================================
--- branches/render25/source/blender/blenlib/BLI_math_inline.h 2010-06-16 19:05:47 UTC (rev 29492)
+++ branches/render25/source/blender/blenlib/BLI_math_inline.h 2010-06-16 19:07:00 UTC (rev 29493)
@@ -38,11 +38,14 @@
#ifdef BLI_MATH_INLINE
#ifdef _MSC_VER
#define MINLINE static __forceinline
+#define MALWAYS_INLINE MINLINE
#else
#define MINLINE static inline
+#define MALWAYS_INLINE static __attribute__((always_inline))
#endif
#else
#define MINLINE
+#define MALWAYS_INLINE
#endif
#ifdef __cplusplus
More information about the Bf-blender-cvs
mailing list