diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-03-23 14:55:51 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-03-23 19:45:19 +0300 |
commit | b797a5ff7849b6c32c7aefeccbf52445c9ccc597 (patch) | |
tree | 49a228ee7bac8644aada6ed07f3feee9df6c72c2 /intern/cycles/kernel | |
parent | aa0602130bef65a11d068db7f3641a6f51fd3427 (diff) |
Cycles: Cleanup, move utility function to utility file
Was an old TODO, this function is handy for some math utilities as well.
Diffstat (limited to 'intern/cycles/kernel')
-rw-r--r-- | intern/cycles/kernel/geom/geom_triangle_intersect.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/intern/cycles/kernel/geom/geom_triangle_intersect.h b/intern/cycles/kernel/geom/geom_triangle_intersect.h index 4f4ee93c077..ca6e54c6b33 100644 --- a/intern/cycles/kernel/geom/geom_triangle_intersect.h +++ b/intern/cycles/kernel/geom/geom_triangle_intersect.h @@ -96,12 +96,6 @@ void triangle_intersect_precalc(float3 dir, isect_precalc->kz = kz; } -/* TODO(sergey): Make it general utility function. */ -ccl_device_inline float xor_signmask(float x, int y) -{ - return __int_as_float(__float_as_int(x) ^ y); -} - ccl_device_inline bool triangle_intersect(KernelGlobals *kg, const IsectPrecalc *isect_precalc, Intersection *isect, |