blender/intern
Sergey Sharybin 4d38932cb4 Cycles: Use more stable version of integer square root function
Old code was working quite unreliable in combination with fast math
flag, especially when compiling with Clang. It seems we were hitting
result of the following bug submitted to Clang [1].

Basically, it was happening so that (int)sqrtf(64) was 7 when Cycles
is built with Clang but was correct 8 when built with GCC.

This commit works this around. Annoying, but don't see other way to
keep sampling pattern the same for Clang and GCC.

[1] https://bugs.llvm.org//show_bug.cgi?id=24063
2017-05-09 17:07:17 +02:00
..
atomic Cleanup: Use explicit unsigned int in atomics 2017-03-01 12:01:19 +01:00
audaspace Fix T50843: Pitched Audio renders incorrectly in VSE 2017-03-05 12:19:32 +01:00
container Remove SCons building system 2016-01-04 14:20:48 +05:00
cycles Cycles: Use more stable version of integer square root function 2017-05-09 17:07:17 +02:00
decklink Cleanup: code style & cmake 2017-03-12 02:47:53 +11:00
dualcon Remove SCons building system 2016-01-04 14:20:48 +05:00
eigen Remove SCons building system 2016-01-04 14:20:48 +05:00
elbeem Fix fluid sim build error with MSVC. 2016-10-03 22:15:24 +02:00
ffmpeg FFmpeg: Update for the deprecated API in 3.2.x 2017-03-06 10:34:57 +01:00
ghost Fix GHOST crash on X11 with recent DPI changes on some systems. 2017-03-25 19:32:50 +01:00
glew-mx Remove SCons building system 2016-01-04 14:20:48 +05:00
gpudirect Cleanup: comment blocks 2016-07-02 10:08:33 +10:00
guardedalloc Atomics: Make naming more obvious about which value is being returned 2016-11-15 12:16:26 +01:00
iksolver FIX T49899: Add EIGEN_MAKE_ALIGNED_OPERATOR_NEW to classes that use eigen's data types , to force aligned on 16 byte boundaries. 2016-11-15 13:21:01 -07:00
itasc Cleanup: Reduce amount of misleading indentation 2016-09-01 12:14:16 +02:00
libmv Libmv: Fix strict compiler warnings, unused variables 2017-05-09 10:16:42 +02:00
locale Add C internal version of msgfmt (similar to makesrna/dna binaries). 2017-04-24 10:49:54 +02:00
memutil Remove SCons building system 2016-01-04 14:20:48 +05:00
mikktspace Fix T49523: very slow normal map tangent computation for rendering in 2.78. 2016-10-06 03:12:04 +02:00
moto BGE: Various render improvements. 2016-06-11 22:05:20 +02:00
opencolorio OCIO: Implement exposure/gamma for fallback implementation 2016-12-02 16:57:00 +01:00
opensubdiv OpensSubdiv: Cleanup, unused argument 2016-12-20 12:29:41 +01:00
openvdb Fix T48236: OpenVDB smoke cache glitches out with smokeless flames. 2016-04-22 11:46:02 +02:00
rigidbody Remove SCons building system 2016-01-04 14:20:48 +05:00
smoke Cleanup: Strict CLang warning in Smoke module 2017-01-09 13:12:43 +01:00
string Fix STR_String Capitalize on non Win32 2016-12-15 12:58:19 +11:00
utfconv C++ conformance fixes (MSVC /permissive-) 2017-02-06 10:44:56 +01:00
CMakeLists.txt Cleanup: code style & cmake 2017-03-12 02:47:53 +11:00