blender/intern/cycles
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
..
app CMake: Add option to build against system-wide Glog 2017-04-21 14:36:34 +02:00
blender Fix denoiser tooltip 2017-05-09 14:44:59 +02:00
bvh Cycles: Header cleanup in BVH: move self header to be the first one 2017-04-13 11:28:02 +02:00
cmake CMake: Add option to build against system-wide Glog 2017-04-21 14:36:34 +02:00
device Cycles: Properly free memory used by KernelGlobals 2017-05-09 17:07:17 +02:00
doc Cycles: relicense GNU GPL source code to Apache version 2.0. 2013-08-18 14:16:15 +00:00
graph Cycles: Make all #include statements relative to cycles source directory 2017-03-29 13:41:11 +02:00
kernel Cycles: Use more stable version of integer square root function 2017-05-09 17:07:17 +02:00
render Cycles: Implement denoising option for reducing noise in the rendered image 2017-05-07 14:40:58 +02:00
subd Cycles: Make all #include statements relative to cycles source directory 2017-03-29 13:41:11 +02:00
test Cycles: Cleanup, order of arguments to EXPECT_EQ 2017-02-03 11:35:34 +01:00
util Cycles: Fix compilation error with gcc-6.3.0 and debug mode 2017-05-08 15:41:28 +02:00
CMakeLists.txt CMake: Add option to build against system-wide Glog 2017-04-21 14:36:34 +02:00