Cycles: Fix function inline attributes

forceinline attribute is only applicable for function which are
marked inline. Interestingly, it can be used for class methods
without explicit inline statement. But for functions it is another
story.
This commit is contained in:
Sergey Sharybin 2020-11-09 14:41:00 +01:00
parent 1f4062cf6e
commit ed75a50119
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ namespace {
} \
(void)0
ccl_always_inline float frac(float x, int *ix)
ccl_device_inline float frac(float x, int *ix)
{
int i = float_to_int(x) - ((x < 0.0f) ? 1 : 0);
*ix = i;