diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-02-21 17:13:09 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-03-31 11:06:21 +0300 |
commit | 65b375e798f9b6f48acf1e1bd14801d357a5b9da (patch) | |
tree | e96c12cf753be14863f5b00b51413f3cb863e8e8 /intern/cycles/bvh/bvh_build.cpp | |
parent | 0b6b094a8c6ffc19730294723c9e305f18d1182b (diff) |
Cycles: Move non-vectorized bitscan() to util
This way we can use bitscan() from both vectorized and non-vectorized
code, which applies to both kernel and host code.
Diffstat (limited to 'intern/cycles/bvh/bvh_build.cpp')
-rw-r--r-- | intern/cycles/bvh/bvh_build.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/intern/cycles/bvh/bvh_build.cpp b/intern/cycles/bvh/bvh_build.cpp index a8b9fe0d52b..84d036b22bf 100644 --- a/intern/cycles/bvh/bvh_build.cpp +++ b/intern/cycles/bvh/bvh_build.cpp @@ -34,21 +34,6 @@ CCL_NAMESPACE_BEGIN -#if !defined(__KERNEL_SSE2__) -/* TODO(sergey): Move to some generic header so all code - * can use bitscan on non-SSE processors. - */ -ccl_device_inline int bitscan(int value) -{ - assert(value != 0); - int bit = 0; - while(value >>= 1) { - ++bit; - } - return bit; -} -#endif - /* BVH Build Task */ class BVHBuildTask : public Task { |