forked from bartvdbraak/blender
Cycles: Attempt to fix 32 bit linux compilation
This commit is contained in:
parent
7bd86d74ba
commit
ff54dbd8fa
@ -460,6 +460,16 @@ ccl_device_inline int bitscan(int value)
|
||||
return bit;
|
||||
}
|
||||
|
||||
ccl_device_inline int __bsr(int value)
|
||||
{
|
||||
assert(value != 0);
|
||||
int bit = 0;
|
||||
while(value >>= 1) {
|
||||
++bit;
|
||||
}
|
||||
return bit;
|
||||
}
|
||||
|
||||
#endif /* __KERNEL_SSE2__ */
|
||||
|
||||
/* quiet unused define warnings */
|
||||
|
Loading…
Reference in New Issue
Block a user