Age | Commit message (Collapse) | Author | |
---|---|---|---|
2014-05-13 | Fix compilation error with debug SCons | Sergey Sharybin | |
For some reason SCons defines _DEBUG, not DEBUG as mathutils was expecting it to be. Made it so mathutils checks for NDEBUG which mimics BLI_assert define. | |||
2014-04-19 | Math Lib: add shell_v3v3_normalized_to_dist and v2 version | Campbell Barton | |
bypass angle calculation to avoids (asin, sqrt, cos). | |||
2014-04-19 | Math Lib: add rotation_between_vecs_to_mat3 | Campbell Barton | |
- behaves like rotation_between_vecs_to_quat - avoids calling sin,cos calls (approx 1.6x faster). | |||
2014-04-11 | Math Lib: use less strict epsilon with BLI_ASSERT_UNIT_QUAT | Campbell Barton | |
was causing issues with pointcache | |||
2014-04-05 | Math Lib: add power of 2 min/max for unsigned ints | Campbell Barton | |
2014-03-20 | Math Lib: add angle_qt functions | Campbell Barton | |
2014-02-15 | Compile fix for 004decc1d940... | Thomas Dinges | |
2014-02-15 | Code cleanup: warnings | Campbell Barton | |
2014-01-15 | Math Lib: add iroundf function for: (int)floorf(a + 0.5f) | Campbell Barton | |
2014-01-03 | Code Cleanup: WIN32 defines, check for _MSC_VER instead of !FREE_WINDOWS | Campbell Barton | |
2014-01-03 | Fix :I broke the build for MSVC 2008 this fixes it | Martijn Berger | |
2014-01-03 | Fix T37987: MSVC 2013 has C99 headers and warns for out define hypot _hypot ↵ | Martijn Berger | |
for good reason it seems | |||
2013-12-07 | Util Macros: reduce multiple access & conversion for CLAMP/CLAMPIS/ABS | Campbell Barton | |
2013-12-05 | Code Cleanup: use strict flags for math lib, add inline declarations | Campbell Barton | |
2013-11-30 | Woo Hoo. First git commit. | Alexandr Kuznetsov | |
Changes for VC2013 Now, I can build Blender with VC2013 with Cycles, Collada, OpenExr,OpenImageIO disabled. Also, you need VC2008 sp1 installed to make old libs compatible. | |||
2013-11-26 | Math library: minor additions sqrtf_signed and copy_v2_fl2 | Campbell Barton | |
2013-09-06 | rename positive_mod to mod_i, make it work with nagative numbers (matching ↵ | Campbell Barton | |
pythons modulo), and use in a few more places. allow mesh-checker-deselect to have a negative offset. | |||
2013-09-05 | add positive_mod() utility function. | Campbell Barton | |
2013-08-13 | use __builtin_nanf with gcc and clang. | Campbell Barton | |
2013-08-13 | Moved NAN_FLT define to BLI_math, this may come in useful. | Lukas Toenne | |
2013-05-08 | add in asserts when rv3d->viewmatob, rv3d->persmatob are not initialized. | Campbell Barton | |
This is often hard to spot since in many cases it works correctly even when not initialized but may still fail in other situations. | |||
2013-04-25 | Fix part of #34640: colors darkening when using the vertex paint blur tool. | Brecht Van Lommel | |
The problem was that vertex colors only have 8 bits of precision, and integer division always rounds down, so after some color blending iterations everything gets darker. Instead use integer division that behaves like round() instead of floor() for blending operations. | |||
2013-03-13 | attempt to quiet warnings for gcc4.2 | Campbell Barton | |
2013-03-12 | use gcc warning -Wredundant-decls, exposes some odd/duplicate declarations ↵ | Campbell Barton | |
which have been removed. | |||
2013-02-19 | internal: increase error threshold for normalize assert since normals ↵ | Campbell Barton | |
converted from shorts are not always exactly unit length. | |||
2013-02-19 | make asserts that check for unit length vectors into a macro. | Campbell Barton | |
this was really not nice logic to try to fit into an assert. | |||
2013-01-25 | Fix warnings about undefined _POSIX_C_SOURCE with gcc 4.2 on Mac. | Brecht Van Lommel | |
2013-01-25 | header cleanup, include BLI before BKE, also use bool for ntreeShaderExecTree | Campbell Barton | |
2013-01-25 | Do not redefine math functions for floats if compiler complies with C99 or ↵ | Sv. Lockal | |
POSIX.1-2001 This is useful for gcc which does not define sqrtf/powf/... functions with preprocessor and therefore always used sqrt/pow/... Float functions are generally 20-50% faster than their equivalents for double type. | |||
2012-11-23 | Patch [#33196] Warning Fixes 11-16-2012 | Jason Wilkins | |
* MEM_CacheLimitier - Size type to int conversion, should be safe for now (doing my best Bill Gates 640k impression) * OpenNL CMakeLists.txt - MSVC and GCC have slightly different ways to remove definitions (DEBUG) without the compiler complaining * BLI_math inlines - The include guard name and inline option macro name should be different. Suppressed warning about not exporting any symbols from inline math library * BLI string / utf8 - Fixed some inconsistencies between declarations and definitions * nodes - node_composite_util is apparently not used unless you enable the legacy compositor, so it should not be compiled in that case. Leaving out changes to BLI_fileops for now, need to do more testing. | |||
2012-10-23 | rename api functions... | Campbell Barton | |
- minf, maxf, mini, maxi --> min_ff, max_ff, min_ii, max_ii | |||
2012-09-20 | code cleanup: remove unused macros, commet some which may be useful later - ↵ | Campbell Barton | |
or good to keep for completeness. quieted some warnings and add flags -Wmissing-include-dirs and -Wno-div-by-zero to cmake/gcc | |||
2012-09-08 | style cleanup | Campbell Barton | |
2012-08-26 | make SWAP macros typesafe using CHECK_TYPE macro. | Campbell Barton | |
Its unlikely you want to do short -> int, int -> float etc, conversion during swapping (if its needed we could have a non type checking macro). Double that the optimized assembler outbut using SWAP() remains unchanged from before. This exposed quite a few places where redundant type conversion was going on. Also remove curve.c's swapdata() and replace its use with swap_v3_v3() | |||
2012-05-31 | math lib changes from tomato | Campbell Barton | |
2012-05-27 | code cleanup: defines with braces - end with '(void)0' so callers must end ↵ | Campbell Barton | |
with ';' like normal function. ... without this some editors dont parse the source so well. | |||
2012-05-13 | code cleanup: header cleanup and remove some duplicate defines. | Campbell Barton | |
2012-03-18 | spelling cleanup | Campbell Barton | |
2012-02-17 | unify include guard defines, __$FILENAME__ | Campbell Barton | |
without the underscores these clogged up the namespace for autocompleation which was annoying. | |||
2011-12-16 | static functions for getting power of 2 values were being copied about too ↵ | Campbell Barton | |
much, add to the BLI_math api. - is_power_of_2_i - power_of_2_min_i - power_of_2_max_i | |||
2011-10-23 | remove $Id: tags after discussion on the mailign list: ↵ | Campbell Barton | |
http://markmail.org/message/fp7ozcywxum3ar7n | |||
2011-07-05 | Patch #27842: build fix for solaris, missing finite(). Patch by A. Hettinger. | Brecht Van Lommel | |
2011-02-18 | Remove #ifdef __cplusplus, as it caused C2732 (differences in linkage). ↵ | Nathan Letwory | |
Compiles and runs fine without. | |||
2011-02-18 | declare round() and copysign() when on windows. Implementations for them ↵ | Nathan Letwory | |
already where in math_base.c | |||
2011-02-18 | doxygen: add blenlib under core as module. | Nathan Letwory | |
2011-01-15 | remove/comment unused defines. | Campbell Barton | |
2010-10-22 | Add some missing const's | Nathan Letwory | |
2010-10-14 | Move MAXFLOAT to BLI_math_base.h | Nathan Letwory | |
2010-09-25 | Fix #23901: displace node not working with negative values. | Brecht Van Lommel | |
2010-06-22 | Merge a few small blenlib changes from the render25 branch: | Brecht Van Lommel | |
* define for missing hypotf on msvc. * svd_m4 and pseudoinverse_m4_m4 functions. * small tweak to perlin noise, use static function instead of macro. * BLI_linklist_find and BLI_linklist_insert_after functions. * MALWAYS_INLINE define to force inlining. |