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
AgeCommit message (Collapse)Author
2016-02-03Cleanup: parenthesize macrosCampbell Barton
2016-01-25ImBuf: Make luminance calculation inlinedSergey Sharybin
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
2015-10-20BLI: add new 'memory_utils' module with func checking a whole memory chunk ↵Bastien Montagne
is filled of zero, and an helper to ensure all memory of a given structure passed a given member is filled of zero.
2015-10-10Fix various compiler warnings.Brecht Van Lommel
2015-07-24parenthisize macro args to avoid errorsCampbell Barton
2015-04-28disable ARRAY_SIZE fixed length check for ClangCampbell Barton
2015-04-28BLI_utildefines: add MEMSET_STRUCT_OFS macroCampbell Barton
2015-03-20Fix stupid strict flags in math_color_inline.cSergey Sharybin
It was unleashed with recent ghash commit and issue seems to be the same as fixed in 69065b5b.
2015-02-23BLI_utildefines: correct commentCampbell Barton
2015-02-23BLI_utildefines: add pointer offset macroCampbell Barton
Handy since it keeps the type of the original.
2015-02-18Fix Windows build.Bastien Montagne
Mighty M$VC never heard of 'strcasecmp' family of functions, it prefers its own names, as usual...
2015-02-14cleanup: doxy commentsCampbell Barton
2015-02-12Fix for previous commit - since it's for non-debug unused vars, name it ↵Bastien Montagne
UNUSED_VARS_NDEBUG. This commit was proudly crafted by the Commit Rate Raising Committee!
2015-02-12Add new UNUSED_VARS_DEBUG utils, which is NOP in debug build, but tags given ↵Bastien Montagne
vars as unused in non-debug builds. Helps handling cleanly pure-debug variables.
2015-01-13Cleanup: fixes for building with recent clangCampbell Barton
2015-01-06PyAPI: add utilities PyTuple_SET_ITEMS, Py_INCREF_RETCampbell Barton
Setting all values of a tuple is such a common operation that it deserves its own macro. Also added Py_INCREF_RET to avoid confusing use of comma operator.
2014-12-08BMesh: ensure iterator macros assign to valid typesCampbell Barton
note, this is for C++ code which expects a cast, (will be added later) also add a macro for nop-expressions (EXPR_NOP), when we never want an expression to be evaluated, but it should still be valid.
2014-11-24BLI_utildefines: add UNUSED_VARS() macroCampbell Barton
2014-11-18correct another problem with BLI_assertCampbell Barton
need to use extern C for C++
2014-11-18BLI_assert: print a backtrace with the errorCampbell Barton
Add BLI_system_backtrace()
2014-11-16Macros: ELEM() can now take 2 argsCampbell Barton
Handy when used indirectly.
2014-11-04Add utility macros to clamp all elements of 2,3,4 component vectorsSergey Sharybin
2014-10-13BLI_utildefines: add SQUARE macroCampbell Barton
also minor cleanup
2014-09-25Move typecheck macros into own headerCampbell Barton
2014-09-23Macro VA_NARGS, increase max to 64Campbell Barton
2014-08-05Macros: replace UNPACK#OP -> UNPACK#_EX, allow suffixCampbell Barton
2014-08-04Tweaks to macrosCampbell Barton
2014-08-04Macros: prevent instantiation of args for type checksCampbell Barton
also make CHECK_TYPE_INLINE more strict
2014-08-02Make CHECK_TYPE_NONCONST macro portableCampbell Barton
also replace __typeof -> typeof
2014-08-01Prevent macros hiding casts from `const` pointersCampbell Barton
2014-07-19Defines: replace ELEM3-16 with ELEM(...), that can take varargsCampbell Barton
2014-07-19Cleanup: Use more logically constructed ELEM macrosCampbell Barton
- name primary comparison var 'v' - names remain same when expanded - no odd mixing of macros, use prev ELEM + extra arg - use 16, even if not used yet, saves adding more in future
2014-06-24move STACK_* macros into BLI_stackdefines.hCampbell Barton
2014-06-24Add MEMCPY_STRUCT_OFS macro for copying values after a struct memberCampbell Barton
use for DM_to_mesh to avoid clobbering the ListBase
2014-06-24add STACK_REMOVE macroCampbell Barton
2014-06-18Correct casts for IS_EQ and other macro tweaksCampbell Barton
- ensure GET_INT_FROM_POINTER us only used to get values - rename STACK_POP_ELSE -> STACK_POP_DEFAULT
2014-06-13Resolve MSVC errorCampbell Barton
2014-06-13Code cleanup: remove redundant arg from ARRAY_LAST_ITEMCampbell Barton
2014-05-19Correct ARRAY_SIZE macro and make doxy comments consistentCampbell Barton
2014-05-18Add ARRAY_SIZE macro to check fixed size arraysCampbell Barton
2014-05-11Code cleanup: comment typosCampbell Barton
2014-05-01Add BLI_compiler_compat.h to help with portabilityCampbell Barton
2014-04-13Code cleanup: quiet warnings & styleCampbell Barton
2014-03-30Correct own recent changes broke release buildsCampbell Barton
2014-03-30Enable GCC pedantic warnings with strict flags,Campbell Barton
also modify MIN/MAX macros to prevent shadowing.
2014-03-28BMesh: optimize quad_coord, avoid duplicate sqrt callsCampbell Barton
2014-02-28Revert own changes to CLAMP and CLAMPIS, caused T38875Campbell Barton
2013-12-08Util-defines: avoid multiple calculation/access for MIN/MAX macrosCampbell Barton
2013-12-07Util Macros: reduce multiple access & conversion for CLAMP/CLAMPIS/ABSCampbell Barton
2013-12-07Compiler warnings: quiet warnings for gcc4.7xCampbell Barton
patch from Sergey