Cycles: Attempt to fix 32 bit linux compilation

This commit is contained in:
Sergey Sharybin 2018-02-01 15:13:54 +01:00
parent 7bd86d74ba
commit ff54dbd8fa

@ -460,6 +460,16 @@ ccl_device_inline int bitscan(int value)
return bit; return bit;
} }
ccl_device_inline int __bsr(int value)
{
assert(value != 0);
int bit = 0;
while(value >>= 1) {
++bit;
}
return bit;
}
#endif /* __KERNEL_SSE2__ */ #endif /* __KERNEL_SSE2__ */
/* quiet unused define warnings */ /* quiet unused define warnings */