diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-05-19 19:03:24 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-01-25 16:13:52 +0300 |
commit | e3e23f774697782424647d8a12792dbc768501ad (patch) | |
tree | 5c37c3e91aa2536edb2eb3a54a7ad051fbfb33fb /source/blender/blenlib/BLI_utildefines.h | |
parent | 83c9109926677b6b6a75ccb36ae0017733e8c8a2 (diff) |
ImBuf: Make luminance calculation inlined
Title actually tells it all, it is rather simple function which totally makes
sense to be inlined.
This gives up to 5% of speedup when updating scopes for a large image.
Reviewers: campbellbarton
Differential Revision: https://developer.blender.org/D1310
Diffstat (limited to 'source/blender/blenlib/BLI_utildefines.h')
-rw-r--r-- | source/blender/blenlib/BLI_utildefines.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/source/blender/blenlib/BLI_utildefines.h b/source/blender/blenlib/BLI_utildefines.h index 31852fa0f43..617634bb182 100644 --- a/source/blender/blenlib/BLI_utildefines.h +++ b/source/blender/blenlib/BLI_utildefines.h @@ -628,18 +628,6 @@ extern bool BLI_memory_is_zero(const void *arr, const size_t arr_size); # define UNUSED_VARS_NDEBUG UNUSED_VARS #endif -/*little macro so inline keyword works*/ -#if defined(_MSC_VER) -# define BLI_INLINE static __forceinline -#else -# if (defined(__APPLE__) && defined(__ppc__)) -/* static inline __attribute__ here breaks osx ppc gcc42 build */ -# define BLI_INLINE static __attribute__((always_inline)) __attribute__((__unused__)) -# else -# define BLI_INLINE static inline __attribute__((always_inline)) __attribute__((__unused__)) -# endif -#endif - /* BLI_assert(), default only to print * for aborting need to define WITH_ASSERT_ABORT |