forked from bartvdbraak/blender
Cycles: Fix compilation error on platforms without SSE support
Overview this in one of the previous BVH commits.
This commit is contained in:
parent
a3bfaa481f
commit
e8730af87f
@ -34,6 +34,21 @@
|
|||||||
|
|
||||||
CCL_NAMESPACE_BEGIN
|
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 */
|
/* BVH Build Task */
|
||||||
|
|
||||||
class BVHBuildTask : public Task {
|
class BVHBuildTask : public Task {
|
||||||
|
Loading…
Reference in New Issue
Block a user