Cycles: Fixed SYCL build with newer compilers
This commit is contained in:
committed by
Stefan Werner
parent
74772c6920
commit
d7794f3540
@@ -101,7 +101,6 @@ using std::isfinite;
|
||||
using std::isnan;
|
||||
using std::sqrt;
|
||||
# else
|
||||
using sycl::sqrt;
|
||||
# define isfinite(x) sycl::isfinite((x))
|
||||
# define isnan(x) sycl::isnan((x))
|
||||
# endif
|
||||
@@ -795,7 +794,10 @@ ccl_device float bits_to_01(uint bits)
|
||||
|
||||
#if !defined(__KERNEL_GPU__)
|
||||
# if defined(__GNUC__)
|
||||
# define popcount(x) __builtin_popcount(x)
|
||||
ccl_device_inline uint popcount(uint x)
|
||||
{
|
||||
return __builtin_popcount(x);
|
||||
}
|
||||
# else
|
||||
ccl_device_inline uint popcount(uint x)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user