Cycles: Cleanup, spacing after preprocessor
authorSergey Sharybin <sergey.vfx@gmail.com>
Fri, 9 Nov 2018 10:34:54 +0000 (11:34 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Fri, 9 Nov 2018 10:34:54 +0000 (11:34 +0100)
It is supposed to be two spaces before comment stating which if
else/endif statements corresponds to. Was mainly violated in the
header guards.

176 files changed:
intern/cycles/app/cycles_xml.h
intern/cycles/blender/CCL_api.h
intern/cycles/blender/blender_object_cull.h
intern/cycles/blender/blender_python.cpp
intern/cycles/blender/blender_session.h
intern/cycles/blender/blender_sync.h
intern/cycles/blender/blender_util.h
intern/cycles/bvh/bvh.h
intern/cycles/bvh/bvh2.h
intern/cycles/bvh/bvh4.h
intern/cycles/bvh/bvh8.h
intern/cycles/bvh/bvh_build.h
intern/cycles/bvh/bvh_embree.cpp
intern/cycles/bvh/bvh_embree.h
intern/cycles/bvh/bvh_node.h
intern/cycles/bvh/bvh_params.h
intern/cycles/bvh/bvh_sort.h
intern/cycles/bvh/bvh_split.h
intern/cycles/bvh/bvh_unaligned.h
intern/cycles/device/device.h
intern/cycles/device/device_cpu.cpp
intern/cycles/device/device_cuda.cpp
intern/cycles/device/device_denoising.h
intern/cycles/device/device_intern.h
intern/cycles/device/device_memory.h
intern/cycles/device/device_network.h
intern/cycles/device/device_opencl.cpp
intern/cycles/device/device_split_kernel.h
intern/cycles/device/device_task.h
intern/cycles/device/opencl/opencl_split.cpp
intern/cycles/kernel/bvh/bvh.h
intern/cycles/kernel/bvh/bvh_local.h
intern/cycles/kernel/bvh/bvh_shadow_all.h
intern/cycles/kernel/bvh/bvh_traversal.h
intern/cycles/kernel/bvh/bvh_volume.h
intern/cycles/kernel/bvh/bvh_volume_all.h
intern/cycles/kernel/closure/bsdf_ashikhmin_shirley.h
intern/cycles/kernel/closure/bsdf_ashikhmin_velvet.h
intern/cycles/kernel/closure/bsdf_diffuse.h
intern/cycles/kernel/closure/bsdf_diffuse_ramp.h
intern/cycles/kernel/closure/bsdf_hair.h
intern/cycles/kernel/closure/bsdf_hair_principled.h
intern/cycles/kernel/closure/bsdf_microfacet.h
intern/cycles/kernel/closure/bsdf_microfacet_multi_impl.h
intern/cycles/kernel/closure/bsdf_oren_nayar.h
intern/cycles/kernel/closure/bsdf_phong_ramp.h
intern/cycles/kernel/closure/bsdf_principled_diffuse.h
intern/cycles/kernel/closure/bsdf_principled_sheen.h
intern/cycles/kernel/closure/bsdf_reflection.h
intern/cycles/kernel/closure/bsdf_refraction.h
intern/cycles/kernel/closure/bsdf_toon.h
intern/cycles/kernel/closure/bsdf_transparent.h
intern/cycles/kernel/closure/bsdf_util.h
intern/cycles/kernel/closure/bssrdf.h
intern/cycles/kernel/filter/filter.h
intern/cycles/kernel/filter/filter_defines.h
intern/cycles/kernel/geom/geom_curve_intersect.h
intern/cycles/kernel/geom/geom_subd_triangle.h
intern/cycles/kernel/geom/geom_triangle_intersect.h
intern/cycles/kernel/kernel.h
intern/cycles/kernel/kernel_color.h
intern/cycles/kernel/kernel_compat_cpu.h
intern/cycles/kernel/kernel_compat_cuda.h
intern/cycles/kernel/kernel_compat_opencl.h
intern/cycles/kernel/kernel_id_passes.h
intern/cycles/kernel/kernel_math.h
intern/cycles/kernel/kernel_montecarlo.h
intern/cycles/kernel/kernel_passes.h
intern/cycles/kernel/kernel_path.h
intern/cycles/kernel/kernel_path_volume.h
intern/cycles/kernel/kernel_queues.h
intern/cycles/kernel/kernel_random.h
intern/cycles/kernel/kernel_shadow.h
intern/cycles/kernel/kernel_types.h
intern/cycles/kernel/kernel_volume.h
intern/cycles/kernel/kernels/cpu/kernel_cpu_image.h
intern/cycles/kernel/kernels/cpu/kernel_cpu_impl.h
intern/cycles/kernel/osl/osl_closures.h
intern/cycles/kernel/osl/osl_globals.h
intern/cycles/kernel/osl/osl_services.h
intern/cycles/kernel/osl/osl_shader.h
intern/cycles/kernel/shaders/oslutil.h
intern/cycles/kernel/shaders/stdosl.h
intern/cycles/kernel/split/kernel_shader_sort.h
intern/cycles/kernel/split/kernel_split_data_types.h
intern/cycles/kernel/svm/svm.h
intern/cycles/kernel/svm/svm_closure.h
intern/cycles/kernel/svm/svm_hsv.h
intern/cycles/kernel/svm/svm_ramp.h
intern/cycles/kernel/svm/svm_ramp_util.h
intern/cycles/kernel/svm/svm_types.h
intern/cycles/kernel/svm/svm_wave.h
intern/cycles/render/attribute.h
intern/cycles/render/background.h
intern/cycles/render/bake.h
intern/cycles/render/buffers.h
intern/cycles/render/camera.h
intern/cycles/render/constant_fold.h
intern/cycles/render/coverage.h
intern/cycles/render/curves.h
intern/cycles/render/film.h
intern/cycles/render/graph.h
intern/cycles/render/image.h
intern/cycles/render/integrator.h
intern/cycles/render/light.h
intern/cycles/render/mesh.h
intern/cycles/render/nodes.h
intern/cycles/render/object.h
intern/cycles/render/osl.cpp
intern/cycles/render/osl.h
intern/cycles/render/particles.h
intern/cycles/render/scene.h
intern/cycles/render/session.h
intern/cycles/render/shader.h
intern/cycles/render/sobol.h
intern/cycles/render/stats.h
intern/cycles/render/svm.cpp
intern/cycles/render/svm.h
intern/cycles/render/tables.h
intern/cycles/render/tile.h
intern/cycles/subd/subd_dice.h
intern/cycles/subd/subd_patch.h
intern/cycles/subd/subd_patch_table.h
intern/cycles/subd/subd_split.h
intern/cycles/test/util_path_test.cpp
intern/cycles/util/util_algorithm.h
intern/cycles/util/util_args.h
intern/cycles/util/util_atomic.h
intern/cycles/util/util_boundbox.h
intern/cycles/util/util_color.h
intern/cycles/util/util_debug.h
intern/cycles/util/util_defines.h
intern/cycles/util/util_foreach.h
intern/cycles/util/util_function.h
intern/cycles/util/util_half.h
intern/cycles/util/util_hash.h
intern/cycles/util/util_ies.h
intern/cycles/util/util_image.h
intern/cycles/util/util_list.h
intern/cycles/util/util_logging.h
intern/cycles/util/util_map.h
intern/cycles/util/util_math.h
intern/cycles/util/util_math_cdf.h
intern/cycles/util/util_math_float2.h
intern/cycles/util/util_math_float3.h
intern/cycles/util/util_math_float4.h
intern/cycles/util/util_math_int2.h
intern/cycles/util/util_math_int3.h
intern/cycles/util/util_math_int4.h
intern/cycles/util/util_math_intersect.h
intern/cycles/util/util_md5.h
intern/cycles/util/util_murmurhash.h
intern/cycles/util/util_opengl.h
intern/cycles/util/util_optimization.h
intern/cycles/util/util_param.h
intern/cycles/util/util_path.cpp
intern/cycles/util/util_progress.h
intern/cycles/util/util_projection.h
intern/cycles/util/util_queue.h
intern/cycles/util/util_rect.h
intern/cycles/util/util_set.h
intern/cycles/util/util_simd.h
intern/cycles/util/util_sky_model.h
intern/cycles/util/util_static_assert.h
intern/cycles/util/util_stats.h
intern/cycles/util/util_string.h
intern/cycles/util/util_system.h
intern/cycles/util/util_texture.h
intern/cycles/util/util_thread.h
intern/cycles/util/util_transform.h
intern/cycles/util/util_types.h
intern/cycles/util/util_vector.h
intern/cycles/util/util_version.h
intern/cycles/util/util_view.h
intern/cycles/util/util_windows.h
intern/cycles/util/util_xml.h

index 6a48980..a7bc189 100644 (file)
@@ -29,4 +29,4 @@ void xml_read_file(Scene *scene, const char *filepath);
 
 CCL_NAMESPACE_END
 
-#endif /* __CYCLES_XML_H__ */
+#endif  /* __CYCLES_XML_H__ */
index 233ffc8..b9750ad 100644 (file)
@@ -33,4 +33,4 @@ void CCL_logging_verbosity_set(int verbosity);
 }
 #endif
 
-#endif /* __CCL_API_H__ */
+#endif  /* __CCL_API_H__ */
index 2147877..6e2a224 100644 (file)
@@ -46,4 +46,4 @@ private:
 
 CCL_NAMESPACE_END
 
-#endif /* __BLENDER_OBJECT_CULL_H__ */
+#endif  /* __BLENDER_OBJECT_CULL_H__ */
index 997176f..8b3bec5 100644 (file)
@@ -839,18 +839,18 @@ void *CCL_python_module_init()
 #ifdef WITH_NETWORK
        PyModule_AddObject(mod, "with_network", Py_True);
        Py_INCREF(Py_True);
-#else /* WITH_NETWORK */
+#else  /* WITH_NETWORK */
        PyModule_AddObject(mod, "with_network", Py_False);
        Py_INCREF(Py_False);
-#endif /* WITH_NETWORK */
+#endif  /* WITH_NETWORK */
 
 #ifdef WITH_EMBREE
        PyModule_AddObject(mod, "with_embree", Py_True);
        Py_INCREF(Py_True);
-#else /* WITH_EMBREE */
+#else  /* WITH_EMBREE */
        PyModule_AddObject(mod, "with_embree", Py_False);
        Py_INCREF(Py_False);
-#endif /* WITH_EMBREE */
+#endif  /* WITH_EMBREE */
 
        return (void*)mod;
 }
index 540fa6a..82d828c 100644 (file)
@@ -176,4 +176,4 @@ protected:
 
 CCL_NAMESPACE_END
 
-#endif /* __BLENDER_SESSION_H__ */
+#endif  /* __BLENDER_SESSION_H__ */
index eb84bed..6d78f62 100644 (file)
@@ -213,4 +213,4 @@ private:
 
 CCL_NAMESPACE_END
 
-#endif /* __BLENDER_SYNC_H__ */
+#endif  /* __BLENDER_SYNC_H__ */
index 09ae9be..8f5fb59 100644 (file)
@@ -838,4 +838,4 @@ protected:
 
 CCL_NAMESPACE_END
 
-#endif /* __BLENDER_UTIL_H__ */
+#endif  /* __BLENDER_UTIL_H__ */
index f14c8f5..9c29013 100644 (file)
@@ -126,4 +126,4 @@ struct BVHStackEntry
 
 CCL_NAMESPACE_END
 
-#endif /* __BVH_H__ */
+#endif  /* __BVH_H__ */
index df65ddc..ecc6975 100644 (file)
@@ -84,4 +84,4 @@ protected:
 
 CCL_NAMESPACE_END
 
-#endif /* __BVH2_H__ */
+#endif  /* __BVH2_H__ */
index 310909a..28bab2f 100644 (file)
@@ -84,4 +84,4 @@ protected:
 
 CCL_NAMESPACE_END
 
-#endif /* __BVH4_H__ */
+#endif  /* __BVH4_H__ */
index 274a244..834daf3 100644 (file)
@@ -95,4 +95,4 @@ protected:
 
 CCL_NAMESPACE_END
 
-#endif /* __BVH8_H__ */
+#endif  /* __BVH8_H__ */
index 7b24513..6dae5a9 100644 (file)
@@ -142,4 +142,4 @@ protected:
 
 CCL_NAMESPACE_END
 
-#endif /* __BVH_BUILD_H__ */
+#endif  /* __BVH_BUILD_H__ */
index 87891b6..7489fe8 100644 (file)
@@ -881,4 +881,4 @@ void BVHEmbree::refit_nodes()
 }
 CCL_NAMESPACE_END
 
-#endif /* WITH_EMBREE */
+#endif  /* WITH_EMBREE */
index 4b3219d..9990826 100644 (file)
@@ -74,6 +74,6 @@ private:
 
 CCL_NAMESPACE_END
 
-#endif /* WITH_EMBREE */
+#endif  /* WITH_EMBREE */
 
-#endif /* __BVH_EMBREE_H__ */
+#endif  /* __BVH_EMBREE_H__ */
index ed89d52..65d5df0 100644 (file)
@@ -169,4 +169,4 @@ public:
 
 CCL_NAMESPACE_END
 
-#endif /* __BVH_NODE_H__ */
+#endif  /* __BVH_NODE_H__ */
index ebede6a..6408d56 100644 (file)
@@ -286,4 +286,4 @@ struct BVHSpatialStorage {
 
 CCL_NAMESPACE_END
 
-#endif /* __BVH_PARAMS_H__ */
+#endif  /* __BVH_PARAMS_H__ */
index 936401d..6910cc1 100644 (file)
@@ -35,4 +35,4 @@ void bvh_reference_sort(int start,
 
 CCL_NAMESPACE_END
 
-#endif /* __BVH_SORT_H__ */
+#endif  /* __BVH_SORT_H__ */
index a874a11..cb47dea 100644 (file)
@@ -259,4 +259,4 @@ public:
 
 CCL_NAMESPACE_END
 
-#endif /* __BVH_SPLIT_H__ */
+#endif  /* __BVH_SPLIT_H__ */
index c3ece05..bcfb6ed 100644 (file)
@@ -77,4 +77,4 @@ protected:
 
 CCL_NAMESPACE_END
 
-#endif /* __BVH_UNALIGNED_H__ */
+#endif  /* __BVH_UNALIGNED_H__ */
index 54a3ae1..f49915b 100644 (file)
@@ -360,4 +360,4 @@ private:
 
 CCL_NAMESPACE_END
 
-#endif /* __DEVICE_H__ */
+#endif  /* __DEVICE_H__ */
index 9e27a48..bb5e998 100644 (file)
@@ -288,7 +288,7 @@ public:
                }
 #ifdef WITH_EMBREE
                bvh_layout_mask |= BVH_LAYOUT_EMBREE;
-#endif /* WITH_EMBREE */
+#endif  /* WITH_EMBREE */
                return bvh_layout_mask;
        }
 
index f0e58f2..a52e77f 100644 (file)
@@ -2393,7 +2393,7 @@ bool device_cuda_init(void)
        return result;
 #else  /* WITH_CUDA_DYNLOAD */
        return true;
-#endif /* WITH_CUDA_DYNLOAD */
+#endif  /* WITH_CUDA_DYNLOAD */
 }
 
 Device *device_cuda_create(DeviceInfo& info, Stats &stats, bool background)
index 7474f71..8e0666d 100644 (file)
@@ -166,4 +166,4 @@ protected:
 
 CCL_NAMESPACE_END
 
-#endif /* __DEVICE_DENOISING_H__ */
+#endif  /* __DEVICE_DENOISING_H__ */
index 941be44..d5a96c2 100644 (file)
@@ -40,4 +40,4 @@ string device_cuda_capabilities(void);
 
 CCL_NAMESPACE_END
 
-#endif /* __DEVICE_INTERN_H__ */
+#endif  /* __DEVICE_INTERN_H__ */
index 2b4835c..1801cda 100644 (file)
@@ -496,4 +496,4 @@ protected:
 
 CCL_NAMESPACE_END
 
-#endif /* __DEVICE_MEMORY_H__ */
+#endif  /* __DEVICE_MEMORY_H__ */
index 96e0de7..67626ae 100644 (file)
@@ -488,4 +488,4 @@ CCL_NAMESPACE_END
 
 #endif
 
-#endif /* __DEVICE_NETWORK_H__ */
+#endif  /* __DEVICE_NETWORK_H__ */
index 0f62243..036f8a2 100644 (file)
@@ -245,4 +245,4 @@ string device_opencl_capabilities(void)
 
 CCL_NAMESPACE_END
 
-#endif /* WITH_OPENCL */
+#endif  /* WITH_OPENCL */
index 26ddce5..5af4367 100644 (file)
@@ -130,4 +130,4 @@ public:
 
 CCL_NAMESPACE_END
 
-#endif /* __DEVICE_SPLIT_KERNEL_H__ */
+#endif  /* __DEVICE_SPLIT_KERNEL_H__ */
index ec87aa8..db27470 100644 (file)
@@ -85,4 +85,4 @@ protected:
 
 CCL_NAMESPACE_END
 
-#endif /* __DEVICE_TASK_H__ */
+#endif  /* __DEVICE_TASK_H__ */
index 83389ef..adb73bc 100644 (file)
@@ -463,4 +463,4 @@ Device *opencl_create_split_device(DeviceInfo& info, Stats& stats, bool backgrou
 
 CCL_NAMESPACE_END
 
-#endif /* WITH_OPENCL */
+#endif  /* WITH_OPENCL */
index 0d39ac8..57c850b 100644 (file)
@@ -203,40 +203,40 @@ ccl_device_intersect bool scene_intersect(KernelGlobals *kg,
                }
                return false;
        }
-#endif /* __EMBREE__ */
+#endif  /* __EMBREE__ */
 #ifdef __OBJECT_MOTION__
        if(kernel_data.bvh.have_motion) {
 #  ifdef __HAIR__
                if(kernel_data.bvh.have_curves)
                        return bvh_intersect_hair_motion(kg, &ray, isect, visibility, lcg_state, difl, extmax);
-#  endif /* __HAIR__ */
+#  endif  /* __HAIR__ */
 
                return bvh_intersect_motion(kg, &ray, isect, visibility);
        }
-#endif /* __OBJECT_MOTION__ */
+#endif  /* __OBJECT_MOTION__ */
 
 #ifdef __HAIR__
        if(kernel_data.bvh.have_curves)
                return bvh_intersect_hair(kg, &ray, isect, visibility, lcg_state, difl, extmax);
-#endif /* __HAIR__ */
+#endif  /* __HAIR__ */
 
 #ifdef __KERNEL_CPU__
 
 #  ifdef __INSTANCING__
        if(kernel_data.bvh.have_instancing)
                return bvh_intersect_instancing(kg, &ray, isect, visibility);
-#  endif /* __INSTANCING__ */
+#  endif  /* __INSTANCING__ */
 
        return bvh_intersect(kg, &ray, isect, visibility);
-#else /* __KERNEL_CPU__ */
+#else  /* __KERNEL_CPU__ */
 
 #  ifdef __INSTANCING__
        return bvh_intersect_instancing(kg, &ray, isect, visibility);
 #  else
        return bvh_intersect(kg, &ray, isect, visibility);
-#  endif /* __INSTANCING__ */
+#  endif  /* __INSTANCING__ */
 
-#endif /* __KERNEL_CPU__ */
+#endif  /* __KERNEL_CPU__ */
 }
 
 #ifdef __BVH_LOCAL__
@@ -298,7 +298,7 @@ ccl_device_intersect bool scene_intersect_local(KernelGlobals *kg,
 
                return local_isect->num_hits > 0;
        }
-#endif /* __EMBREE__ */
+#endif  /* __EMBREE__ */
 #ifdef __OBJECT_MOTION__
        if(kernel_data.bvh.have_motion) {
                return bvh_intersect_local_motion(kg,
@@ -308,7 +308,7 @@ ccl_device_intersect bool scene_intersect_local(KernelGlobals *kg,
                                                  lcg_state,
                                                  max_hits);
        }
-#endif /* __OBJECT_MOTION__ */
+#endif  /* __OBJECT_MOTION__ */
        return bvh_intersect_local(kg,
                                    &ray,
                                    local_isect,
@@ -358,7 +358,7 @@ ccl_device_intersect bool scene_intersect_shadow_all(KernelGlobals *kg,
                                                                    max_hits,
                                                                    num_hits);
                }
-#    endif /* __HAIR__ */
+#    endif  /* __HAIR__ */
 
                return bvh_intersect_shadow_all_motion(kg,
                                                       ray,
@@ -367,7 +367,7 @@ ccl_device_intersect bool scene_intersect_shadow_all(KernelGlobals *kg,
                                                       max_hits,
                                                       num_hits);
        }
-#  endif /* __OBJECT_MOTION__ */
+#  endif  /* __OBJECT_MOTION__ */
 
 #  ifdef __HAIR__
        if(kernel_data.bvh.have_curves) {
@@ -378,7 +378,7 @@ ccl_device_intersect bool scene_intersect_shadow_all(KernelGlobals *kg,
                                                     max_hits,
                                                     num_hits);
        }
-#  endif /* __HAIR__ */
+#  endif  /* __HAIR__ */
 
 #  ifdef __INSTANCING__
        if(kernel_data.bvh.have_instancing) {
@@ -389,7 +389,7 @@ ccl_device_intersect bool scene_intersect_shadow_all(KernelGlobals *kg,
                                                           max_hits,
                                                           num_hits);
        }
-#  endif /* __INSTANCING__ */
+#  endif  /* __INSTANCING__ */
 
        return bvh_intersect_shadow_all(kg,
                                        ray,
@@ -413,20 +413,20 @@ ccl_device_intersect bool scene_intersect_volume(KernelGlobals *kg,
        if(kernel_data.bvh.have_motion) {
                return bvh_intersect_volume_motion(kg, ray, isect, visibility);
        }
-#  endif /* __OBJECT_MOTION__ */
+#  endif  /* __OBJECT_MOTION__ */
 #  ifdef __KERNEL_CPU__
 #    ifdef __INSTANCING__
        if(kernel_data.bvh.have_instancing)
                return bvh_intersect_volume_instancing(kg, ray, isect, visibility);
-#    endif /* __INSTANCING__ */
+#    endif  /* __INSTANCING__ */
        return bvh_intersect_volume(kg, ray, isect, visibility);
-#  else /* __KERNEL_CPU__ */
+#  else  /* __KERNEL_CPU__ */
 #    ifdef __INSTANCING__
        return bvh_intersect_volume_instancing(kg, ray, isect, visibility);
 #    else
        return bvh_intersect_volume(kg, ray, isect, visibility);
-#    endif /* __INSTANCING__ */
-#  endif /* __KERNEL_CPU__ */
+#    endif  /* __INSTANCING__ */
+#  endif  /* __KERNEL_CPU__ */
 }
 #endif  /* __VOLUME__ */
 
@@ -457,11 +457,11 @@ ccl_device_intersect uint scene_intersect_volume_all(KernelGlobals *kg,
        if(kernel_data.bvh.have_motion) {
                return bvh_intersect_volume_all_motion(kg, ray, isect, max_hits, visibility);
        }
-#  endif /* __OBJECT_MOTION__ */
+#  endif  /* __OBJECT_MOTION__ */
 #  ifdef __INSTANCING__
        if(kernel_data.bvh.have_instancing)
                return bvh_intersect_volume_all_instancing(kg, ray, isect, max_hits, visibility);
-#  endif /* __INSTANCING__ */
+#  endif  /* __INSTANCING__ */
        return bvh_intersect_volume_all(kg, ray, isect, max_hits, visibility);
 }
 #endif  /* __VOLUME_RECORD_ALL__ */
index 2b02f45..8364bc3 100644 (file)
@@ -136,7 +136,7 @@ bool BVH_FUNCTION_FULL_NAME(BVH)(KernelGlobals *kg,
                                                               node_addr,
                                                               PATH_RAY_ALL_VISIBILITY,
                                                               dist);
-#else // __KERNEL_SSE2__
+#else  // __KERNEL_SSE2__
                                traverse_mask = NODE_INTERSECT(kg,
                                                               P,
                                                               dir,
@@ -151,7 +151,7 @@ bool BVH_FUNCTION_FULL_NAME(BVH)(KernelGlobals *kg,
                                                               node_addr,
                                                               PATH_RAY_ALL_VISIBILITY,
                                                               dist);
-#endif // __KERNEL_SSE2__
+#endif  // __KERNEL_SSE2__
 
                                node_addr = __float_as_int(cnodes.z);
                                node_addr_child1 = __float_as_int(cnodes.w);
index d525b29..64eb2f3 100644 (file)
@@ -124,7 +124,7 @@ bool BVH_FUNCTION_FULL_NAME(BVH)(KernelGlobals *kg,
                                                               node_addr,
                                                               visibility,
                                                               dist);
-#else // __KERNEL_SSE2__
+#else  // __KERNEL_SSE2__
                                traverse_mask = NODE_INTERSECT(kg,
                                                               P,
                                                               dir,
@@ -139,7 +139,7 @@ bool BVH_FUNCTION_FULL_NAME(BVH)(KernelGlobals *kg,
                                                               node_addr,
                                                               visibility,
                                                               dist);
-#endif // __KERNEL_SSE2__
+#endif  // __KERNEL_SSE2__
 
                                node_addr = __float_as_int(cnodes.z);
                                node_addr_child1 = __float_as_int(cnodes.w);
index e95d240..af9f04d 100644 (file)
@@ -146,7 +146,7 @@ ccl_device_noinline bool BVH_FUNCTION_FULL_NAME(BVH)(KernelGlobals *kg,
                                                                       visibility,
                                                                       dist);
                                }
-#else // __KERNEL_SSE2__
+#else  // __KERNEL_SSE2__
 #  if BVH_FEATURE(BVH_HAIR_MINIMUM_WIDTH)
                                if(difl != 0.0f) {
                                        traverse_mask = NODE_INTERSECT_ROBUST(kg,
@@ -184,7 +184,7 @@ ccl_device_noinline bool BVH_FUNCTION_FULL_NAME(BVH)(KernelGlobals *kg,
                                                                       visibility,
                                                                       dist);
                                }
-#endif // __KERNEL_SSE2__
+#endif  // __KERNEL_SSE2__
 
                                node_addr = __float_as_int(cnodes.z);
                                node_addr_child1 = __float_as_int(cnodes.w);
index 7d03855..12d4c5e 100644 (file)
@@ -120,7 +120,7 @@ bool BVH_FUNCTION_FULL_NAME(BVH)(KernelGlobals *kg,
                                                               node_addr,
                                                               visibility,
                                                               dist);
-#else // __KERNEL_SSE2__
+#else  // __KERNEL_SSE2__
                                traverse_mask = NODE_INTERSECT(kg,
                                                               P,
                                                               dir,
@@ -135,7 +135,7 @@ bool BVH_FUNCTION_FULL_NAME(BVH)(KernelGlobals *kg,
                                                               node_addr,
                                                               visibility,
                                                               dist);
-#endif // __KERNEL_SSE2__
+#endif  // __KERNEL_SSE2__
 
                                node_addr = __float_as_int(cnodes.z);
                                node_addr_child1 = __float_as_int(cnodes.w);
index 3d9b598..6205b9b 100644 (file)
@@ -124,7 +124,7 @@ uint BVH_FUNCTION_FULL_NAME(BVH)(KernelGlobals *kg,
                                                               node_addr,
                                                               visibility,
                                                               dist);
-#else // __KERNEL_SSE2__
+#else  // __KERNEL_SSE2__
                                traverse_mask = NODE_INTERSECT(kg,
                                                               P,
                                                               dir,
@@ -139,7 +139,7 @@ uint BVH_FUNCTION_FULL_NAME(BVH)(KernelGlobals *kg,
                                                               node_addr,
                                                               visibility,
                                                               dist);
-#endif // __KERNEL_SSE2__
+#endif  // __KERNEL_SSE2__
 
                                node_addr = __float_as_int(cnodes.z);
                                node_addr_child1 = __float_as_int(cnodes.w);
index ff238b7..4e7425b 100644 (file)
@@ -232,4 +232,4 @@ ccl_device int bsdf_ashikhmin_shirley_sample(const ShaderClosure *sc, float3 Ng,
 
 CCL_NAMESPACE_END
 
-#endif /* __BSDF_ASHIKHMIN_SHIRLEY_H__ */
+#endif  /* __BSDF_ASHIKHMIN_SHIRLEY_H__ */
index b0bdea7..80fd9ba 100644 (file)
@@ -158,4 +158,4 @@ ccl_device int bsdf_ashikhmin_velvet_sample(const ShaderClosure *sc, float3 Ng,
 
 CCL_NAMESPACE_END
 
-#endif /* __BSDF_ASHIKHMIN_VELVET_H__ */
+#endif  /* __BSDF_ASHIKHMIN_VELVET_H__ */
index ee6d4cd..946c460 100644 (file)
@@ -139,4 +139,4 @@ ccl_device int bsdf_translucent_sample(const ShaderClosure *sc, float3 Ng, float
 
 CCL_NAMESPACE_END
 
-#endif /* __BSDF_DIFFUSE_H__ */
+#endif  /* __BSDF_DIFFUSE_H__ */
index 35bb2fd..ca33a5b 100644 (file)
@@ -103,8 +103,8 @@ ccl_device int bsdf_diffuse_ramp_sample(const ShaderClosure *sc, float3 Ng, floa
        return LABEL_REFLECT|LABEL_DIFFUSE;
 }
 
-#endif /* __OSL__ */
+#endif  /* __OSL__ */
 
 CCL_NAMESPACE_END
 
-#endif /* __BSDF_DIFFUSE_RAMP_H__ */
+#endif  /* __BSDF_DIFFUSE_RAMP_H__ */
index 7b44a23..e1a0cfa 100644 (file)
@@ -277,4 +277,4 @@ ccl_device int bsdf_hair_transmission_sample(const ShaderClosure *sc, float3 Ng,
 
 CCL_NAMESPACE_END
 
-#endif /* __BSDF_HAIR_H__ */
+#endif  /* __BSDF_HAIR_H__ */
index 7205173..68335ee 100644 (file)
@@ -229,7 +229,7 @@ ccl_device int bsdf_principled_hair_setup(ShaderData *sd, PrincipledHairBSDF *bs
        return SD_BSDF|SD_BSDF_HAS_EVAL|SD_BSDF_NEEDS_LCG;
 }
 
-#endif /* __HAIR__ */
+#endif  /* __HAIR__ */
 
 /* Given the Fresnel term and transmittance, generate the attenuation terms for each bounce. */
 ccl_device_inline void hair_attenuation(KernelGlobals *kg,
@@ -499,4 +499,4 @@ ccl_device void bsdf_principled_hair_blur(ShaderClosure *sc, float roughness)
 
 CCL_NAMESPACE_END
 
-#endif /* __BSDF_HAIR_PRINCIPLED_H__ */
+#endif  /* __BSDF_HAIR_PRINCIPLED_H__ */
index e74d5eb..32b6e50 100644 (file)
@@ -1124,4 +1124,4 @@ ccl_device int bsdf_microfacet_beckmann_sample(KernelGlobals *kg, const ShaderCl
 
 CCL_NAMESPACE_END
 
-#endif /* __BSDF_MICROFACET_H__ */
+#endif  /* __BSDF_MICROFACET_H__ */
index e73915d..5d300ef 100644 (file)
@@ -76,7 +76,7 @@ ccl_device_forceinline float3 MF_FUNCTION_FULL_NAME(mf_eval)(
                eval *= -lambda_r / (shadowing_lambda - lambda_r);
        else
                eval *= -lambda_r * beta(-lambda_r, shadowing_lambda+1.0f);
-#else /* MF_MULTI_GLOSSY */
+#else  /* MF_MULTI_GLOSSY */
        const float G2 = 1.0f / (1.0f - (lambda_r + 1.0f) + shadowing_lambda);
        float val = G2 * 0.25f / wi.z;
        if(alpha.x == alpha.y)
@@ -129,7 +129,7 @@ ccl_device_forceinline float3 MF_FUNCTION_FULL_NAME(mf_eval)(
                                phase = mf_eval_phase_glass(wr, lambda_r,  wo,  wo_outside, alpha, eta);
                        else
                                phase = mf_eval_phase_glass(wr, lambda_r, -wo, !wo_outside, alpha, 1.0f/eta);
-#else /* MF_MULTI_GLOSSY */
+#else  /* MF_MULTI_GLOSSY */
                        phase = mf_eval_phase_glossy(wr, lambda_r, wo, alpha) * throughput;
 #endif
                        eval += throughput * phase * mf_G1(wo_outside? wo: -wo, mf_C1((outside == wo_outside)? hr: -hr), shadowing_lambda);
@@ -153,7 +153,7 @@ ccl_device_forceinline float3 MF_FUNCTION_FULL_NAME(mf_eval)(
                        else if(use_fresnel && order > 0) {
                                throughput *= interpolate_fresnel_color(wi_prev, wm, eta, F0, cspec0);
                        }
-#else /* MF_MULTI_GLOSSY */
+#else  /* MF_MULTI_GLOSSY */
                        if(use_fresnel && order > 0) {
                                throughput *= interpolate_fresnel_color(-wr, wm, eta, F0, cspec0);
                        }
@@ -248,7 +248,7 @@ ccl_device_forceinline float3 MF_FUNCTION_FULL_NAME(mf_sample)(
                                        throughput *= t_color;
                        }
                }
-#else /* MF_MULTI_GLOSSY */
+#else  /* MF_MULTI_GLOSSY */
                if(use_fresnel) {
                        float3 t_color = interpolate_fresnel_color(-wr, wm, eta, F0, cspec0);
 
index 6b770fc..3446d16 100644 (file)
@@ -108,4 +108,4 @@ ccl_device int bsdf_oren_nayar_sample(const ShaderClosure *sc, float3 Ng, float3
 
 CCL_NAMESPACE_END
 
-#endif /* __BSDF_OREN_NAYAR_H__ */
+#endif  /* __BSDF_OREN_NAYAR_H__ */
index 91c7803..83da05a 100644 (file)
@@ -135,8 +135,8 @@ ccl_device int bsdf_phong_ramp_sample(const ShaderClosure *sc, float3 Ng, float3
        return LABEL_REFLECT|LABEL_GLOSSY;
 }
 
-#endif /* __OSL__ */
+#endif  /* __OSL__ */
 
 CCL_NAMESPACE_END
 
-#endif /* __BSDF_PHONG_RAMP_H__ */
+#endif  /* __BSDF_PHONG_RAMP_H__ */
index 83be2b3..2f65fd5 100644 (file)
@@ -122,4 +122,4 @@ ccl_device int bsdf_principled_diffuse_sample(const ShaderClosure *sc,
 
 CCL_NAMESPACE_END
 
-#endif /* __BSDF_PRINCIPLED_DIFFUSE_H__ */
+#endif  /* __BSDF_PRINCIPLED_DIFFUSE_H__ */
index 8b7c439..ccdcb1b 100644 (file)
@@ -108,4 +108,4 @@ ccl_device int bsdf_principled_sheen_sample(const ShaderClosure *sc,
 
 CCL_NAMESPACE_END
 
-#endif /* __BSDF_PRINCIPLED_SHEEN_H__ */
+#endif  /* __BSDF_PRINCIPLED_SHEEN_H__ */
index b33b6e3..94f1c28 100644 (file)
@@ -77,4 +77,4 @@ ccl_device int bsdf_reflection_sample(const ShaderClosure *sc, float3 Ng, float3
 
 CCL_NAMESPACE_END
 
-#endif /* __BSDF_REFLECTION_H__ */
+#endif  /* __BSDF_REFLECTION_H__ */
index b181650..abdd01c 100644 (file)
@@ -86,4 +86,4 @@ ccl_device int bsdf_refraction_sample(const ShaderClosure *sc, float3 Ng, float3
 
 CCL_NAMESPACE_END
 
-#endif /* __BSDF_REFRACTION_H__ */
+#endif  /* __BSDF_REFRACTION_H__ */
index 6d8074b..097a56f 100644 (file)
@@ -215,4 +215,4 @@ ccl_device int bsdf_glossy_toon_sample(const ShaderClosure *sc, float3 Ng, float
 
 CCL_NAMESPACE_END
 
-#endif /* __BSDF_TOON_H__ */
+#endif  /* __BSDF_TOON_H__ */
index f788dbc..060dff6 100644 (file)
@@ -106,4 +106,4 @@ ccl_device int bsdf_transparent_sample(const ShaderClosure *sc, float3 Ng, float
 
 CCL_NAMESPACE_END
 
-#endif /* __BSDF_TRANSPARENT_H__ */
+#endif  /* __BSDF_TRANSPARENT_H__ */
index b080e02..4f34536 100644 (file)
@@ -158,4 +158,4 @@ ccl_device_forceinline float3 interpolate_fresnel_color(float3 L, float3 H, floa
 
 CCL_NAMESPACE_END
 
-#endif /* __BSDF_UTIL_H__ */
+#endif  /* __BSDF_UTIL_H__ */
index ba0c6ae..98c7f23 100644 (file)
@@ -499,4 +499,4 @@ ccl_device_forceinline float bssrdf_pdf(const ShaderClosure *sc, float r)
 
 CCL_NAMESPACE_END
 
-#endif /* __KERNEL_BSSRDF_H__ */
+#endif  /* __KERNEL_BSSRDF_H__ */
index f6e474d..4209d69 100644 (file)
@@ -49,4 +49,4 @@ CCL_NAMESPACE_BEGIN
 
 CCL_NAMESPACE_END
 
-#endif /* __FILTER_H__ */
+#endif  /* __FILTER_H__ */
index 1a2f22a..67f4e62 100644 (file)
@@ -68,4 +68,4 @@ typedef struct TileInfo {
 #  define ccl_get_tile_buffer(id) (tile_info->buffers[id])
 #endif
 
-#endif /* __FILTER_DEFINES_H__*/
+#endif  /* __FILTER_DEFINES_H__*/
index 5901429..b6b58b5 100644 (file)
@@ -379,7 +379,7 @@ ccl_device_forceinline bool cardinal_curve_intersect(
                                        float inv_mw_extension = 1.0f/mw_extension;
                                        if(d0 >= 0)
                                                coverage = (min(d1 * inv_mw_extension, 1.0f) - min(d0 * inv_mw_extension, 1.0f)) * 0.5f;
-                                       else // inside
+                                       else  // inside
                                                coverage = (min(d1 * inv_mw_extension, 1.0f) + min(-d0 * inv_mw_extension, 1.0f)) * 0.5f;
                                }
 
index 00ce89a..8c0d0a9 100644 (file)
@@ -146,7 +146,7 @@ ccl_device_noinline float subd_triangle_attribute_float(KernelGlobals *kg, const
                return a;
        }
        else
-#endif /* __PATCH_EVAL__ */
+#endif  /* __PATCH_EVAL__ */
        if(desc.element == ATTR_ELEMENT_FACE) {
                if(dx) *dx = 0.0f;
                if(dy) *dy = 0.0f;
@@ -271,7 +271,7 @@ ccl_device_noinline float3 subd_triangle_attribute_float3(KernelGlobals *kg, con
                return a;
        }
        else
-#endif /* __PATCH_EVAL__ */
+#endif  /* __PATCH_EVAL__ */
        if(desc.element == ATTR_ELEMENT_FACE) {
                if(dx) *dx = make_float3(0.0f, 0.0f, 0.0f);
                if(dy) *dy = make_float3(0.0f, 0.0f, 0.0f);
index aa6b102..6b4fbcb 100644 (file)
@@ -544,7 +544,7 @@ int triangle_intersect8(KernelGlobals *kg,
        return result;
 }
 
-#endif /* __KERNEL_AVX2__ */
+#endif  /* __KERNEL_AVX2__ */
 
 /* Special ray intersection routines for subsurface scattering. In that case we
  * only want to intersect with primitives in the same object, and if case of
index 373324a..1c8c91d 100644 (file)
@@ -63,4 +63,4 @@ void kernel_tex_copy(KernelGlobals *kg,
 
 CCL_NAMESPACE_END
 
-#endif /* __KERNEL_H__ */
+#endif  /* __KERNEL_H__ */
index 990e798..ea478a8 100644 (file)
@@ -35,4 +35,4 @@ ccl_device float linear_rgb_to_gray(KernelGlobals *kg, float3 c)
 
 CCL_NAMESPACE_END
 
-#endif /* __KERNEL_COLOR_H__ */
+#endif  /* __KERNEL_COLOR_H__ */
index aa7a16a..4ee8085 100644 (file)
@@ -153,4 +153,4 @@ typedef vector3<avxf> avx3f;
 
 CCL_NAMESPACE_END
 
-#endif /* __KERNEL_COMPAT_CPU_H__ */
+#endif  /* __KERNEL_COMPAT_CPU_H__ */
index ac63bcf..8ed96bb 100644 (file)
@@ -150,4 +150,4 @@ ccl_device_inline uint ccl_num_groups(uint d)
 #define logf(x) __logf(((float)(x)))
 #define expf(x) __expf(((float)(x)))
 
-#endif /* __KERNEL_COMPAT_CUDA_H__ */
+#endif  /* __KERNEL_COMPAT_CUDA_H__ */
index 3f7e264..21a9509 100644 (file)
 #include "util/util_half.h"
 #include "util/util_types.h"
 
-#endif /* __KERNEL_COMPAT_OPENCL_H__ */
+#endif  /* __KERNEL_COMPAT_OPENCL_H__ */
index 486c61d..ee3b8b8 100644 (file)
@@ -43,7 +43,7 @@ ccl_device_inline void kernel_write_id_slots(ccl_global float *buffer, int num_s
                        atomic_add_and_fetch_float(buffer+slot*2+1, weight);
                        break;
                }
-#else /* __ATOMIC_PASS_WRITE__ */
+#else  /* __ATOMIC_PASS_WRITE__ */
                /* If the loop reaches an empty slot, the ID isn't in any slot yet - so add it! */
                if(id_buffer[slot].x == ID_NONE) {
                        id_buffer[slot].x = id;
@@ -56,7 +56,7 @@ ccl_device_inline void kernel_write_id_slots(ccl_global float *buffer, int num_s
                        id_buffer[slot].y += weight;
                        break;
                }
-#endif /* __ATOMIC_PASS_WRITE__ */
+#endif  /* __ATOMIC_PASS_WRITE__ */
        }
 }
 
index 96391db..a8a43f3 100644 (file)
@@ -25,4 +25,4 @@
 #include "util/util_texture.h"
 #include "util/util_transform.h"
 
-#endif /* __KERNEL_MATH_H__ */
+#endif  /* __KERNEL_MATH_H__ */
index ce68aa1..dde9384 100644 (file)
@@ -282,4 +282,4 @@ ccl_device float3 ensure_valid_reflection(float3 Ng, float3 I, float3 N)
 
 CCL_NAMESPACE_END
 
-#endif /* __KERNEL_MONTECARLO_CL__ */
+#endif  /* __KERNEL_MONTECARLO_CL__ */
index e256a18..80477f9 100644 (file)
@@ -110,7 +110,7 @@ ccl_device_inline void kernel_write_denoising_shadow(KernelGlobals *kg, ccl_glob
        float value = path_total_shaded / max(path_total, 1e-7f);
        kernel_write_pass_float(buffer+2, value*value);
 }
-#endif /* __DENOISING_FEATURES__ */
+#endif  /* __DENOISING_FEATURES__ */
 
 ccl_device_inline void kernel_update_denoising_features(KernelGlobals *kg,
                                                         ShaderData *sd,
@@ -189,7 +189,7 @@ ccl_device_inline void kernel_write_debug_passes(KernelGlobals *kg,
                                        L->debug_data.num_ray_bounces);
        }
 }
-#endif /* __KERNEL_DEBUG__ */
+#endif  /* __KERNEL_DEBUG__ */
 
 #ifdef __KERNEL_CPU__
 #define WRITE_ID_SLOT(buffer, depth, id, matte_weight, name) kernel_write_id_pass_cpu(buffer, depth * 2, id, matte_weight, kg->coverage_##name)
@@ -199,11 +199,11 @@ ccl_device_inline size_t kernel_write_id_pass_cpu(float *buffer, size_t depth, f
                (*map)[id] += matte_weight;
                return 0;
        }
-#else /* __KERNEL_CPU__ */
+#else  /* __KERNEL_CPU__ */
 #define WRITE_ID_SLOT(buffer, depth, id, matte_weight, name) kernel_write_id_slots_gpu(buffer, depth * 2, id, matte_weight) 
 ccl_device_inline size_t kernel_write_id_slots_gpu(ccl_global float *buffer, size_t depth, float id, float matte_weight)
 {
-#endif /* __KERNEL_CPU__ */
+#endif  /* __KERNEL_CPU__ */
        kernel_write_id_slots(buffer, depth, id, matte_weight);
        return depth * 2;
 }
index 5745762..cb1f410 100644 (file)
@@ -266,7 +266,7 @@ ccl_device_forceinline VolumeIntegrateResult kernel_path_volume(
 }
 #endif  /* __VOLUME__ */
 
-#endif /* __SPLIT_KERNEL__ */
+#endif  /* __SPLIT_KERNEL__ */
 
 ccl_device_forceinline bool kernel_path_shader_apply(
        KernelGlobals *kg,
@@ -434,7 +434,7 @@ ccl_device void kernel_path_indirect(KernelGlobals *kg,
                else if(result == VOLUME_PATH_MISSED) {
                        break;
                }
-#endif /* __VOLUME__*/
+#endif  /* __VOLUME__*/
 
                /* Shade background. */
                if(!hit) {
@@ -557,7 +557,7 @@ ccl_device void kernel_path_indirect(KernelGlobals *kg,
 #endif  /* __SUBSURFACE__ */
 }
 
-#endif /* defined(__BRANCHED_PATH__) || defined(__BAKING__) */
+#endif  /* defined(__BRANCHED_PATH__) || defined(__BAKING__) */
 
 ccl_device_forceinline void kernel_path_integrate(
        KernelGlobals *kg,
@@ -605,7 +605,7 @@ ccl_device_forceinline void kernel_path_integrate(
                else if(result == VOLUME_PATH_MISSED) {
                        break;
                }
-#endif /* __VOLUME__*/
+#endif  /* __VOLUME__*/
 
                /* Shade background. */
                if(!hit) {
index feaea15..d2506fc 100644 (file)
@@ -55,7 +55,7 @@ ccl_device_inline void kernel_path_volume_connect_light(
                        }
                }
        }
-#endif /* __EMISSION__ */
+#endif  /* __EMISSION__ */
 }
 
 #ifdef __KERNEL_GPU__
@@ -277,10 +277,10 @@ ccl_device void kernel_branched_path_volume_connect_light(
                        }
                }
        }
-#endif /* __EMISSION__ */
+#endif  /* __EMISSION__ */
 }
-#endif /* __SPLIT_KERNEL__ */
+#endif  /* __SPLIT_KERNEL__ */
 
-#endif /* __VOLUME_SCATTER__ */
+#endif  /* __VOLUME_SCATTER__ */
 
 CCL_NAMESPACE_END
index e32d4bb..de8cc4a 100644 (file)
@@ -145,4 +145,4 @@ ccl_device int dequeue_ray_index(
 
 CCL_NAMESPACE_END
 
-#endif // __KERNEL_QUEUE_H__
+#endif  // __KERNEL_QUEUE_H__
index b33e4eb..61ddf4a 100644 (file)
@@ -50,7 +50,7 @@ ccl_device uint sobol_dimension(KernelGlobals *kg, int index, int dimension)
        return result;
 }
 
-#endif /* __SOBOL__ */
+#endif  /* __SOBOL__ */
 
 
 ccl_device_forceinline float path_rng_1D(KernelGlobals *kg,
index 8a0da6c..fafa3ad 100644 (file)
@@ -446,7 +446,7 @@ ccl_device bool shadow_blocked_transparent_stepped(
 }
 
 #  endif  /* __KERNEL_GPU__ || !__SHADOW_RECORD_ALL__ */
-#endif /* __TRANSPARENT_SHADOWS__ */
+#endif  /* __TRANSPARENT_SHADOWS__ */
 
 ccl_device_inline bool shadow_blocked(KernelGlobals *kg,
                                       ShaderData *sd,
index 14d5ff2..864aa7c 100644 (file)
@@ -615,7 +615,7 @@ typedef ccl_addr_space struct PathRadiance {
 
 #ifdef __KERNEL_DEBUG__
        DebugData debug_data;
-#endif /* __KERNEL_DEBUG__ */
+#endif  /* __KERNEL_DEBUG__ */
 } PathRadiance;
 
 typedef struct BsdfEval {
@@ -1705,4 +1705,4 @@ typedef struct WorkTile {
 
 CCL_NAMESPACE_END
 
-#endif /*  __KERNEL_TYPES_H__ */
+#endif  /*  __KERNEL_TYPES_H__ */
index d71761a..d6d283c 100644 (file)
@@ -87,7 +87,7 @@ ccl_device_inline bool volume_shader_sample(KernelGlobals *kg,
        return true;
 }
 
-#endif /* __VOLUME__ */
+#endif  /* __VOLUME__ */
 
 ccl_device float3 volume_color_transmittance(float3 sigma, float t)
 {
@@ -270,7 +270,7 @@ ccl_device_noinline void kernel_volume_shadow(KernelGlobals *kg,
                kernel_volume_shadow_homogeneous(kg, state, ray, shadow_sd, throughput);
 }
 
-#endif /* __VOLUME__ */
+#endif  /* __VOLUME__ */
 
 /* Equi-angular sampling as in:
  * "Importance Sampling Techniques for Path Tracing in Participating Media" */
@@ -1075,7 +1075,7 @@ ccl_device VolumeIntegrateResult kernel_volume_decoupled_scatter(
 
        return VOLUME_PATH_SCATTERED;
 }
-#endif /* __SPLIT_KERNEL */
+#endif  /* __SPLIT_KERNEL */
 
 /* decide if we need to use decoupled or not */
 ccl_device bool kernel_volume_use_decoupled(KernelGlobals *kg, bool heterogeneous, bool direct, int sampling_method)
@@ -1377,6 +1377,6 @@ ccl_device_inline void kernel_volume_clean_stack(KernelGlobals *kg,
        }
 }
 
-#endif /* __VOLUME__ */
+#endif  /* __VOLUME__ */
 
 CCL_NAMESPACE_END
index b77b735..0a7b765 100644 (file)
@@ -540,4 +540,4 @@ ccl_device float4 kernel_tex_image_interp_3d(KernelGlobals *kg, int id, float x,
 
 CCL_NAMESPACE_END
 
-#endif // __KERNEL_CPU_IMAGE_H__
+#endif  // __KERNEL_CPU_IMAGE_H__
index 5ec1655..759b7e4 100644 (file)
@@ -97,7 +97,7 @@ void KERNEL_FUNCTION_FULL_NAME(path_trace)(KernelGlobals *kg,
        {
                kernel_path_trace(kg, buffer, sample, x, y, offset, stride);
        }
-#endif /* KERNEL_STUB */
+#endif  /* KERNEL_STUB */
 }
 
 /* Film */
@@ -120,7 +120,7 @@ void KERNEL_FUNCTION_FULL_NAME(convert_to_byte)(KernelGlobals *kg,
                                    x, y,
                                    offset,
                                    stride);
-#endif /* KERNEL_STUB */
+#endif  /* KERNEL_STUB */
 }
 
 void KERNEL_FUNCTION_FULL_NAME(convert_to_half_float)(KernelGlobals *kg,
@@ -141,7 +141,7 @@ void KERNEL_FUNCTION_FULL_NAME(convert_to_half_float)(KernelGlobals *kg,
                                          x, y,
                                          offset,
                                          stride);
-#endif /* KERNEL_STUB */
+#endif  /* KERNEL_STUB */
 }
 
 /* Shader Evaluate */
@@ -176,7 +176,7 @@ void KERNEL_FUNCTION_FULL_NAME(shader)(KernelGlobals *kg,
        else {
                kernel_background_evaluate(kg, input, output, i);
        }
-#endif /* KERNEL_STUB */
+#endif  /* KERNEL_STUB */
 }
 
 #else  /* __SPLIT_KERNEL__ */
@@ -208,7 +208,7 @@ void KERNEL_FUNCTION_FULL_NAME(shader)(KernelGlobals *kg,
                ccl_local type locals; \
                kernel_##name(kg, &locals); \
        }
-#endif /* KERNEL_STUB */
+#endif  /* KERNEL_STUB */
 
 DEFINE_SPLIT_KERNEL_FUNCTION(path_init)
 DEFINE_SPLIT_KERNEL_FUNCTION(scene_intersect)
index d9aeb9a..2a50704 100644 (file)
@@ -146,4 +146,4 @@ CCLOSURE_PREPARE_STATIC(bsdf_##lower##_prepare, Upper##Closure)
 
 CCL_NAMESPACE_END
 
-#endif /* __OSL_CLOSURES_H__ */
+#endif  /* __OSL_CLOSURES_H__ */
index 30b2979..88192fb 100644 (file)
@@ -94,4 +94,4 @@ CCL_NAMESPACE_END
 
 #endif
 
-#endif /* __OSL_GLOBALS_H__ */
+#endif  /* __OSL_GLOBALS_H__ */
index 5dcaa4d..712b06b 100644 (file)
@@ -199,4 +199,4 @@ private:
 
 CCL_NAMESPACE_END
 
-#endif /* __OSL_SERVICES_H__  */
+#endif  /* __OSL_SERVICES_H__  */
index 571a3f5..9824f96 100644 (file)
@@ -66,4 +66,4 @@ CCL_NAMESPACE_END
 
 #endif
 
-#endif /* __OSL_SHADER_H__ */
+#endif  /* __OSL_SHADER_H__ */
index 141e5d2..592a8ad 100644 (file)
@@ -92,4 +92,4 @@ float wireframe(string edge_type, float line_width) { return wireframe(edge_type
 float wireframe(string edge_type) { return wireframe(edge_type, 1.0, 1); }
 float wireframe() { return wireframe("polygons", 1.0, 1); }
 
-#endif /* CCL_OSLUTIL_H */
+#endif  /* CCL_OSLUTIL_H */
index f123550..7136c74 100644 (file)
@@ -515,7 +515,7 @@ float smooth_linearstep (float edge0, float edge1, float x_, float eps_) {
         else if (x >= eps && x <= 1.0-eps) result = x;
         else if (x >= 1.0+eps)             result = 1;
         else if (x < eps)                  result = rampup (x+eps, 2.0*eps);
-        else /* if (x < 1.0+eps) */        result = 1.0 - rampup (1.0+eps - x, 2.0*eps);
+        else  /* if (x < 1.0+eps) */        result = 1.0 - rampup (1.0+eps - x, 2.0*eps);
     } else {
         result = step (edge0, x_);
     }
@@ -686,4 +686,4 @@ int getmatrix (string fromspace, output matrix M) {
 #undef PERCOMP2
 #undef PERCOMP2F
 
-#endif /* CCL_STDOSL_H */
+#endif  /* CCL_STDOSL_H */
index 2132c42..666355d 100644 (file)
@@ -78,7 +78,7 @@ ccl_device void kernel_shader_sort(KernelGlobals *kg,
                        }
                }
        }
-#  endif /* __KERNEL_OPENCL__ */
+#  endif  /* __KERNEL_OPENCL__ */
 
        /* copy to destination */
        for(uint i = 0; i < SHADER_SORT_BLOCK_SIZE; i += SHADER_SORT_LOCAL_SIZE) {
@@ -91,7 +91,7 @@ ccl_device void kernel_shader_sort(KernelGlobals *kg,
                        kernel_split_state.queue_data[outi] = (value == (~0)) ? QUEUE_EMPTY_SLOT : kernel_split_state.queue_data[ini];
                }
        }
-#endif /* __KERNEL_CUDA__ */
+#endif  /* __KERNEL_CUDA__ */
 }
 
 CCL_NAMESPACE_END
index 56194d9..83df1e2 100644 (file)
@@ -86,14 +86,14 @@ typedef ccl_global struct SplitBranchedState {
        SPLIT_DATA_ENTRY(ccl_global SubsurfaceIndirectRays, ss_rays, 1)
 #else
 #  define SPLIT_DATA_SUBSURFACE_ENTRIES
-#endif /* __SUBSURFACE__ */
+#endif  /* __SUBSURFACE__ */
 
 #ifdef __VOLUME__
 #  define SPLIT_DATA_VOLUME_ENTRIES \
        SPLIT_DATA_ENTRY(ccl_global PathState, state_shadow, 1)
 #else
 #  define SPLIT_DATA_VOLUME_ENTRIES
-#endif /* __VOLUME__ */
+#endif  /* __VOLUME__ */
 
 #define SPLIT_DATA_ENTRIES \
        SPLIT_DATA_ENTRY(ccl_global float3, throughput, 1) \
index ab69afa..ccb9aef 100644 (file)
@@ -313,7 +313,7 @@ ccl_device_noinline void svm_eval_nodes(KernelGlobals *kg, ShaderData *sd, ccl_a
                        case NODE_LEAVE_BUMP_EVAL:
                                svm_node_leave_bump_eval(kg, sd, stack, node.y);
                                break;
-#      endif /* NODES_FEATURE(NODE_FEATURE_BUMP_STATE) */
+#      endif  /* NODES_FEATURE(NODE_FEATURE_BUMP_STATE) */
 #    endif  /* NODES_FEATURE(NODE_FEATURE_BUMP) */
                        case NODE_HSV:
                                svm_node_hsv(kg, sd, stack, node, &offset);
@@ -497,4 +497,4 @@ ccl_device_noinline void svm_eval_nodes(KernelGlobals *kg, ShaderData *sd, ccl_a
 
 CCL_NAMESPACE_END
 
-#endif /* __SVM_H__ */
+#endif  /* __SVM_H__ */
index 64bf824..e834d75 100644 (file)
@@ -285,7 +285,7 @@ ccl_device void svm_node_closure_bsdf(KernelGlobals *kg, ShaderData *sd, float *
                                                /* setup bsdf */
                                                if(distribution == CLOSURE_BSDF_MICROFACET_GGX_GLASS_ID || roughness <= 0.075f) /* use single-scatter GGX */
                                                        sd->flag |= bsdf_microfacet_ggx_aniso_fresnel_setup(bsdf, sd);
-                                               else /* use multi-scatter GGX */
+                                               else  /* use multi-scatter GGX */
                                                        sd->flag |= bsdf_microfacet_multi_ggx_aniso_fresnel_setup(bsdf, sd);
                                        }
                                }
index 27127b8..41538d1 100644 (file)
@@ -59,4 +59,4 @@ ccl_device void svm_node_hsv(KernelGlobals *kg, ShaderData *sd, float *stack, ui
 
 CCL_NAMESPACE_END
 
-#endif /* __SVM_HSV_H__ */
+#endif  /* __SVM_HSV_H__ */
index a3e4b6e..6f39391 100644 (file)
@@ -108,4 +108,4 @@ ccl_device void svm_node_curves(KernelGlobals *kg, ShaderData *sd, float *stack,
 
 CCL_NAMESPACE_END
 
-#endif /* __SVM_RAMP_H__ */
+#endif  /* __SVM_RAMP_H__ */
index a67689f..847108f 100644 (file)
@@ -95,4 +95,4 @@ ccl_device float float_ramp_lookup(const float *ramp,
 
 CCL_NAMESPACE_END
 
-#endif /* __SVM_RAMP_UTIL_H__ */
+#endif  /* __SVM_RAMP_UTIL_H__ */
index 910537a..0f1dfa4 100644 (file)
@@ -531,4 +531,4 @@ typedef enum ClosureType {
 
 CCL_NAMESPACE_END
 
-#endif /*  __SVM_TYPES_H__ */
+#endif  /*  __SVM_TYPES_H__ */
index 7b60ab6..80b63dc 100644 (file)
@@ -24,7 +24,7 @@ ccl_device_noinline float svm_wave(NodeWaveType type, NodeWaveProfile profile, f
 
        if(type == NODE_WAVE_BANDS)
                n = (p.x + p.y + p.z) * 10.0f;
-       else /* NODE_WAVE_RINGS */
+       else  /* NODE_WAVE_RINGS */
                n = len(p) * 20.0f;
 
        if(distortion != 0.0f)
index 40e5be2..e7438f4 100644 (file)
@@ -172,4 +172,4 @@ public:
 
 CCL_NAMESPACE_END
 
-#endif /* __ATTRIBUTE_H__ */
+#endif  /* __ATTRIBUTE_H__ */
index 3f56ded..17c3eaa 100644 (file)
@@ -59,4 +59,4 @@ public:
 
 CCL_NAMESPACE_END
 
-#endif /* __BACKGROUND_H__ */
+#endif  /* __BACKGROUND_H__ */
index a811eac..fce8f2f 100644 (file)
@@ -83,4 +83,4 @@ private:
 
 CCL_NAMESPACE_END
 
-#endif /* __BAKE_H__ */
+#endif  /* __BAKE_H__ */
index a8f019d..46c3b89 100644 (file)
@@ -146,4 +146,4 @@ public:
 
 CCL_NAMESPACE_END
 
-#endif /* __BUFFERS_H__ */
+#endif  /* __BUFFERS_H__ */
index 323f2c6..9f0830d 100644 (file)
@@ -212,4 +212,4 @@ private:
 
 CCL_NAMESPACE_END
 
-#endif /* __CAMERA_H__ */
+#endif  /* __CAMERA_H__ */
index 26fa4e8..6ec94b0 100644 (file)
@@ -70,4 +70,4 @@ public:
 
 CCL_NAMESPACE_END
 
-#endif /* __CONSTANT_FOLD_H__ */
+#endif  /* __CONSTANT_FOLD_H__ */
index 16176ce..9ee0bce 100644 (file)
@@ -46,4 +46,4 @@ private:
 
 CCL_NAMESPACE_END
 
-#endif /* __COVERAGE_H__ */
+#endif  /* __COVERAGE_H__ */
index 62066d8..3d8611c 100644 (file)
@@ -119,4 +119,4 @@ public:
 
 CCL_NAMESPACE_END
 
-#endif /* __CURVES_H__ */
+#endif  /* __CURVES_H__ */
index 57f1bf4..c597db4 100644 (file)
@@ -95,4 +95,4 @@ public:
 
 CCL_NAMESPACE_END
 
-#endif /* __FILM_H__ */
+#endif  /* __FILM_H__ */
index 4265220..d14a59b 100644 (file)
@@ -293,4 +293,4 @@ protected:
 
 CCL_NAMESPACE_END
 
-#endif /* __GRAPH_H__ */
+#endif  /* __GRAPH_H__ */
index d94ebe5..8367a68 100644 (file)
@@ -164,4 +164,4 @@ private:
 
 CCL_NAMESPACE_END
 
-#endif /* __IMAGE_H__ */
+#endif  /* __IMAGE_H__ */
index f68400a..6a7e205 100644 (file)
@@ -94,4 +94,4 @@ public:
 
 CCL_NAMESPACE_END
 
-#endif /* __INTEGRATOR_H__ */
+#endif  /* __INTEGRATOR_H__ */
index 32a911d..f4dfe0c 100644 (file)
@@ -139,4 +139,4 @@ protected:
 
 CCL_NAMESPACE_END
 
-#endif /* __LIGHT_H__ */
+#endif  /* __LIGHT_H__ */
index 444f03a..8a6629e 100644 (file)
@@ -390,4 +390,4 @@ protected:
 
 CCL_NAMESPACE_END
 
-#endif /* __MESH_H__ */
+#endif  /* __MESH_H__ */
index 28bbe2d..154ae31 100644 (file)
@@ -1161,4 +1161,4 @@ public:
 
 CCL_NAMESPACE_END
 
-#endif /* __NODES_H__ */
+#endif  /* __NODES_H__ */
index 288c3f5..285362f 100644 (file)
@@ -132,4 +132,4 @@ protected:
 
 CCL_NAMESPACE_END
 
-#endif /* __OBJECT_H__ */
+#endif  /* __OBJECT_H__ */
index 496e9d9..3fbc7d3 100644 (file)
@@ -1255,6 +1255,6 @@ void OSLCompiler::parameter_color_array(const char * /*name*/, const array<float
 {
 }
 
-#endif /* WITH_OSL */
+#endif  /* WITH_OSL */
 
 CCL_NAMESPACE_END
index 966fc19..d0542d1 100644 (file)
@@ -171,4 +171,4 @@ private:
 
 CCL_NAMESPACE_END
 
-#endif /* __OSL_H__  */
+#endif  /* __OSL_H__  */
index 7e7afd5..3a744c9 100644 (file)
@@ -68,4 +68,4 @@ public:
 
 CCL_NAMESPACE_END
 
-#endif /* __PARTICLES_H__ */
+#endif  /* __PARTICLES_H__ */
index 543feed..57ea1d4 100644 (file)
@@ -268,4 +268,4 @@ protected:
 
 CCL_NAMESPACE_END
 
-#endif /*  __SCENE_H__ */
+#endif  /*  __SCENE_H__ */
index d2ec13a..56a6991 100644 (file)
@@ -238,4 +238,4 @@ protected:
 
 CCL_NAMESPACE_END
 
-#endif /* __SESSION_H__ */
+#endif  /* __SESSION_H__ */
index 8073138..4c7b2fd 100644 (file)
@@ -224,4 +224,4 @@ protected:
 
 CCL_NAMESPACE_END
 
-#endif /* __SHADER_H__ */
+#endif  /* __SHADER_H__ */
index d38857d..ce7a285 100644 (file)
@@ -28,4 +28,4 @@ void sobol_generate_direction_vectors(uint vectors[][SOBOL_BITS], int dimensions
 
 CCL_NAMESPACE_END
 
-#endif /* __SOBOL_H__ */
+#endif  /* __SOBOL_H__ */
index 72d5f1d..2ff0ec3 100644 (file)
@@ -101,4 +101,4 @@ public:
 
 CCL_NAMESPACE_END
 
-#endif /* __RENDER_STATS_H__ */
+#endif  /* __RENDER_STATS_H__ */
index 44b7eee..b380117 100644 (file)
@@ -266,7 +266,7 @@ int SVMCompiler::stack_assign(ShaderInput *input)
                                add_node(NODE_VALUE_V, input->stack_offset);
                                add_node(NODE_VALUE_V, node->get_float3(input->socket_type));
                        }
-                       else /* should not get called for closure */
+                       else  /* should not get called for closure */
                                assert(0);
                }
        }
index 1d0613b..6a1f244 100644 (file)
@@ -223,4 +223,4 @@ protected:
 
 CCL_NAMESPACE_END
 
-#endif /* __SVM_H__ */
+#endif  /* __SVM_H__ */
index 09d961a..709333c 100644 (file)
@@ -50,4 +50,4 @@ public:
 
 CCL_NAMESPACE_END
 
-#endif /* __TABLES_H__ */
+#endif  /* __TABLES_H__ */
index f72f653..2835c79 100644 (file)
@@ -154,4 +154,4 @@ protected:
 
 CCL_NAMESPACE_END
 
-#endif /* __TILE_H__ */
+#endif  /* __TILE_H__ */
index 4617c78..2bef8d4 100644 (file)
@@ -134,4 +134,4 @@ public:
 
 CCL_NAMESPACE_END
 
-#endif /* __SUBD_DICE_H__ */
+#endif  /* __SUBD_DICE_H__ */
index 64ec8f7..8410013 100644 (file)
@@ -56,4 +56,4 @@ public:
 
 CCL_NAMESPACE_END
 
-#endif /* __SUBD_PATCH_H__ */
+#endif  /* __SUBD_PATCH_H__ */
index 45be705..d96a43a 100644 (file)
@@ -59,4 +59,4 @@ struct PackedPatchTable {
 
 CCL_NAMESPACE_END
 
-#endif /* __SUBD_PATCH_TABLE_H__ */
+#endif  /* __SUBD_PATCH_TABLE_H__ */
index 7a276b3..3368c93 100644 (file)
@@ -56,4 +56,4 @@ public:
 
 CCL_NAMESPACE_END
 
-#endif /* __SUBD_SPLIT_H__ */
+#endif  /* __SUBD_SPLIT_H__ */
index c2f400c..1df5684 100644 (file)
@@ -370,7 +370,7 @@ TEST(util_path_is_relative, relative_windir_on_unix)
        bool is_relative = path_is_relative("tmp\\foo.txt");
        EXPECT_TRUE(is_relative);
 }
-#endif /* !_WIN32 */
+#endif  /* !_WIN32 */
 
 #ifdef _WIN32
 TEST(util_path_is_relative, absolute_windows)
@@ -396,6 +396,6 @@ TEST(util_path_is_relative, relative_unixdir_on_windows)
        bool is_relative = path_is_relative("tmp/foo.txt");
        EXPECT_TRUE(is_relative);
 }
-#endif /* _WIN32 */
+#endif  /* _WIN32 */
 
 CCL_NAMESPACE_END
index eb87471..f9e6476 100644 (file)
@@ -29,4 +29,4 @@ using std::remove;
 
 CCL_NAMESPACE_END
 
-#endif /* __UTIL_ALGORITHM_H__ */
+#endif  /* __UTIL_ALGORITHM_H__ */
index be6f2c2..9fe54b1 100644 (file)
@@ -28,4 +28,4 @@ OIIO_NAMESPACE_USING
 
 CCL_NAMESPACE_END
 
-#endif /* __UTIL_ARGS_H__ */
+#endif  /* __UTIL_ARGS_H__ */
index e17e99d..b139630 100644 (file)
@@ -110,4 +110,4 @@ ccl_device_inline float atomic_compare_and_swap_float(volatile float *dest,
 
 #endif  /* __KERNEL_GPU__ */
 
-#endif /* __UTIL_ATOMIC_H__ */
+#endif  /* __UTIL_ATOMIC_H__ */
index b1bd5be..fe89e39 100644 (file)
@@ -282,4 +282,4 @@ public:
 
 CCL_NAMESPACE_END
 
-#endif /* __UTIL_BOUNDBOX_H__ */
+#endif  /* __UTIL_BOUNDBOX_H__ */
index 826db46..e6efc7d 100644 (file)
@@ -240,4 +240,4 @@ ccl_device float4 color_srgb_to_linear_v4(float4 c)
 
 CCL_NAMESPACE_END
 
-#endif /* __UTIL_COLOR_H__ */
+#endif  /* __UTIL_COLOR_H__ */
index f17f8a5..864089b 100644 (file)
@@ -182,4 +182,4 @@ std::ostream& operator <<(std::ostream &os,
 
 CCL_NAMESPACE_END
 
-#endif /* __UTIL_DEBUG_H__ */
+#endif  /* __UTIL_DEBUG_H__ */
index 8bce4ac..29eab4b 100644 (file)
@@ -128,4 +128,4 @@ template<typename T> static inline T decltype_helper(T x) { return x; }
 #  define util_assert(statement)
 #endif
 
-#endif /* __UTIL_DEFINES_H__ */
+#endif  /* __UTIL_DEFINES_H__ */
index 2a74ff0..fd106d5 100644 (file)
@@ -21,4 +21,4 @@
 
 #define foreach(x, y) for(x : y)
 
-#endif /* __UTIL_FOREACH_H__ */
+#endif  /* __UTIL_FOREACH_H__ */
index f3cc003..72c7ce4 100644 (file)
@@ -36,4 +36,4 @@ using std::placeholders::_9;
 
 CCL_NAMESPACE_END
 
-#endif /* __UTIL_FUNCTION_H__ */
+#endif  /* __UTIL_FUNCTION_H__ */
index 53b7f24..3868509 100644 (file)
@@ -148,4 +148,4 @@ ccl_device_inline half float_to_half(float f)
 
 CCL_NAMESPACE_END
 
-#endif /* __UTIL_HALF_H__ */
+#endif  /* __UTIL_HALF_H__ */
index a8a5076..f343252 100644 (file)
@@ -68,4 +68,4 @@ ccl_device_inline float hash_int_01(uint k)
 
 CCL_NAMESPACE_END
 
-#endif /* __UTIL_HASH_H__ */
+#endif  /* __UTIL_HASH_H__ */
index 5933cb3..663ad64 100644 (file)
@@ -58,4 +58,4 @@ protected:
 
 CCL_NAMESPACE_END
 
-#endif /* __UTIL_IES_H__ */
+#endif  /* __UTIL_IES_H__ */
index 85bdb0d..da5f562 100644 (file)
@@ -102,6 +102,6 @@ inline half util_image_cast_from_float(float value)
 
 CCL_NAMESPACE_END
 
-#endif /* __UTIL_IMAGE_H__ */
+#endif  /* __UTIL_IMAGE_H__ */
 
 #include "util/util_image_impl.h"
index f555b00..fcf8e4f 100644 (file)
@@ -25,4 +25,4 @@ using std::list;
 
 CCL_NAMESPACE_END
 
-#endif /* __UTIL_LIST_H__ */
+#endif  /* __UTIL_LIST_H__ */
index 5c84b65..4a5c3cd 100644 (file)
@@ -62,4 +62,4 @@ std::ostream& operator <<(std::ostream &os,
 
 CCL_NAMESPACE_END
 
-#endif /* __UTIL_LOGGING_H__ */
+#endif  /* __UTIL_LOGGING_H__ */
index 3c92884..1952d33 100644 (file)
@@ -28,4 +28,4 @@ using std::unordered_map;
 
 CCL_NAMESPACE_END
 
-#endif /* __UTIL_MAP_H__ */
+#endif  /* __UTIL_MAP_H__ */
index eafae5f..6167119 100644 (file)
@@ -157,7 +157,7 @@ ccl_device_inline T max4(const T& a, const T& b, const T& c, const T& d)
 {
        return max(max(a,b),max(c,d));
 }
-#endif /* __KERNEL_GPU__ */
+#endif  /* __KERNEL_GPU__ */
 
 ccl_device_inline float min4(float a, float b, float c, float d)
 {
@@ -244,7 +244,7 @@ ccl_device_inline float4 __int4_as_float4(int4 i)
                           __int_as_float(i.w));
 #endif
 }
-#endif /* __KERNEL_OPENCL__ */
+#endif  /* __KERNEL_OPENCL__ */
 
 /* Versions of functions which are safe for fast math. */
 ccl_device_inline bool isnan_safe(float f)
@@ -639,4 +639,4 @@ ccl_device_inline float2 map_to_sphere(const float3 co)
 
 CCL_NAMESPACE_END
 
-#endif /* __UTIL_MATH_H__ */
+#endif  /* __UTIL_MATH_H__ */
index 79643fe..983855e 100644 (file)
@@ -75,4 +75,4 @@ void util_cdf_inverted(const int resolution,
 
 CCL_NAMESPACE_END
 
-#endif /* __UTIL_MATH_H_CDF__ */
+#endif  /* __UTIL_MATH_H_CDF__ */
index 6f9d085..e937509 100644 (file)
@@ -224,4 +224,4 @@ ccl_device_inline float2 interp(const float2& a, const float2& b, float t)
 
 CCL_NAMESPACE_END
 
-#endif /* __UTIL_MATH_FLOAT2_H__ */
+#endif  /* __UTIL_MATH_FLOAT2_H__ */
index 75265c1..a54a3f3 100644 (file)
@@ -419,4 +419,4 @@ ccl_device_inline float3 ensure_finite3(float3 v)
 
 CCL_NAMESPACE_END
 
-#endif /* __UTIL_MATH_FLOAT3_H__ */
+#endif  /* __UTIL_MATH_FLOAT3_H__ */
index 1055470..479ccf2 100644 (file)
@@ -457,4 +457,4 @@ ccl_device_inline float4 load_float4(const float *v)
 
 CCL_NAMESPACE_END
 
-#endif /* __UTIL_MATH_FLOAT4_H__ */
+#endif  /* __UTIL_MATH_FLOAT4_H__ */
index 828c49a..dd401d9 100644 (file)
@@ -74,4 +74,4 @@ ccl_device_inline int2 operator/(const int2 &a, const int2 &b)
 
 CCL_NAMESPACE_END
 
-#endif /* __UTIL_MATH_INT2_H__ */
+#endif  /* __UTIL_MATH_INT2_H__ */
index 81b10f3..2f4752f 100644 (file)
@@ -113,4 +113,4 @@ ccl_device_inline int3 operator-(const int3 &a, const int3 &b)
 
 CCL_NAMESPACE_END
 
-#endif /* __UTIL_MATH_INT3_H__ */
+#endif  /* __UTIL_MATH_INT3_H__ */
index cde366b..763c423 100644 (file)
@@ -156,4 +156,4 @@ ccl_device_inline int4 load_int4(const int *v)
 
 CCL_NAMESPACE_END
 
-#endif /* __UTIL_MATH_INT4_H__ */
+#endif  /* __UTIL_MATH_INT4_H__ */
index b5fbb24..190c2f5 100644 (file)
@@ -219,4 +219,4 @@ ccl_device bool ray_quad_intersect(float3 ray_P, float3 ray_D,
 
 CCL_NAMESPACE_END
 
-#endif /* __UTIL_MATH_INTERSECT_H__ */
+#endif  /* __UTIL_MATH_INTERSECT_H__ */
index 9023cce..f8c0115 100644 (file)
@@ -58,4 +58,4 @@ string util_md5_string(const string& str);
 
 CCL_NAMESPACE_END
 
-#endif /* __UTIL_MD5_H__ */
+#endif  /* __UTIL_MD5_H__ */
index 824ed59..3e7897d 100644 (file)
@@ -27,4 +27,4 @@ float util_hash_to_float(uint32_t hash);
 
 CCL_NAMESPACE_END
 
-#endif /* __UTIL_MURMURHASH_H__ */
+#endif  /* __UTIL_MURMURHASH_H__ */
index 0b5462e..2ca7b7e 100644 (file)
@@ -28,4 +28,4 @@
 #  define mxMakeCurrentContext(x) (x)
 #endif
 
-#endif /* __UTIL_OPENGL_H__ */
+#endif  /* __UTIL_OPENGL_H__ */
index 3b36272..5267bd9 100644 (file)
@@ -68,4 +68,4 @@
 
 #endif
 
-#endif /* __UTIL_OPTIMIZATION_H__ */
+#endif  /* __UTIL_OPTIMIZATION_H__ */
index 246b5cb..4453c66 100644 (file)
@@ -30,4 +30,4 @@ OIIO_NAMESPACE_USING
 
 CCL_NAMESPACE_END
 
-#endif /* __UTIL_PARAM_H__ */
+#endif  /* __UTIL_PARAM_H__ */
index 51b7944..93080a6 100644 (file)
@@ -614,7 +614,7 @@ bool path_exists(const string& path)
                return 0;
        }
        return st.st_mode != 0;
-#endif /* _WIN32 */
+#endif  /* _WIN32 */
 }
 
 bool path_is_directory(const string& path)
index 3ef15c5..453af7d 100644 (file)
@@ -365,4 +365,4 @@ protected:
 
 CCL_NAMESPACE_END
 
-#endif /* __UTIL_PROGRESS_H__ */
+#endif  /* __UTIL_PROGRESS_H__ */
index 26b4843..d1af013 100644 (file)
@@ -169,8 +169,8 @@ ccl_device_inline ProjectionTransform projection_orthographic(float znear, float
        return ProjectionTransform(t);
 }
 
-#endif /* __KERNEL_GPU__ */
+#endif  /* __KERNEL_GPU__ */
 
 CCL_NAMESPACE_END
 
-#endif /* __UTIL_PROJECTION_H__ */
+#endif  /* __UTIL_PROJECTION_H__ */
index 622f4fe..0a2b771 100644 (file)
@@ -25,4 +25,4 @@ using std::queue;
 
 CCL_NAMESPACE_END
 
-#endif /* __UTIL_LIST_H__ */
+#endif  /* __UTIL_LIST_H__ */
index d13baef..389669a 100644 (file)
@@ -69,4 +69,4 @@ ccl_device_inline int rect_size(int4 rect)
 
 CCL_NAMESPACE_END
 
-#endif /* __UTIL_RECT_H__ */
+#endif  /* __UTIL_RECT_H__ */
index 298e1f7..a9c56bb 100644 (file)
@@ -31,4 +31,4 @@ using std::unordered_set;
 
 CCL_NAMESPACE_END
 
-#endif /* __UTIL_SET_H__ */
+#endif  /* __UTIL_SET_H__ */
index cc7f436..565ea76 100644 (file)
@@ -219,9 +219,9 @@ __forceinline size_t __bscf(size_t& v)
   return i;
 }
 
-#endif /* __KERNEL_64_BIT__ */
+#endif  /* __KERNEL_64_BIT__ */
 
-#else /* _WIN32 */
+#else  /* _WIN32 */
 
 __forceinline unsigned int __popcnt(unsigned int in) {
   int r = 0; asm ("popcnt %1,%0" : "=r"(r) : "r"(in)); return r;
@@ -344,7 +344,7 @@ __forceinline size_t __bscf(size_t& v)
 }
 #endif
 
-#endif /* _WIN32 */
+#endif  /* _WIN32 */
 
 /* Test __KERNEL_SSE41__ for MSVC which does not define __SSE4_1__, and test
  * __SSE4_1__ to avoid OpenImageIO conflicts with our emulation macros on other
@@ -442,7 +442,7 @@ __forceinline __m128 _mm_round_ps_emu( __m128 value, const int flags)
   return value;
 }
 
-#endif /* !(defined(__KERNEL_SSE41__) || defined(__SSE4_1__) || defined(__SSE4_2__)) */
+#endif  /* !(defined(__KERNEL_SSE41__) || defined(__SSE4_1__) || defined(__SSE4_2__)) */
 
 #else  /* __KERNEL_SSE2__ */
 
@@ -470,7 +470,7 @@ ccl_device_inline int __bsr(int value)
        return bit;
 }
 
-#endif /* __KERNEL_SSE2__ */
+#endif  /* __KERNEL_SSE2__ */
 
 /* quiet unused define warnings */
 #if defined(__KERNEL_SSE2__)  || \
@@ -484,6 +484,6 @@ ccl_device_inline int __bsr(int value)
 
 CCL_NAMESPACE_END
 
-#endif /* __KERNEL_GPU__ */
+#endif  /* __KERNEL_GPU__ */
 
-#endif /* __UTIL_SIMD_TYPES_H__ */
+#endif  /* __UTIL_SIMD_TYPES_H__ */
index 237e4e6..2e593f5 100644 (file)
@@ -437,6 +437,6 @@ double arhosekskymodel_solar_radiance(ArHosekSkyModelState* state,
                                       double wavelength);
 
 
-#endif // _SKY_MODEL_H_
+#endif  // _SKY_MODEL_H_
 
 CCL_NAMESPACE_END
index dc3cb3f..b1c6c37 100644 (file)
@@ -47,4 +47,4 @@ CCL_NAMESPACE_BEGIN
 
 CCL_NAMESPACE_END
 
-#endif /* __UTIL_STATIC_ASSERT_H__ */
+#endif  /* __UTIL_STATIC_ASSERT_H__ */
index 7667f58..0ba5842 100644 (file)
@@ -44,4 +44,4 @@ public:
 
 CCL_NAMESPACE_END
 
-#endif /* __UTIL_STATS_H__ */
+#endif  /* __UTIL_STATS_H__ */
index 3a4f439..f17112c 100644 (file)
@@ -74,4 +74,4 @@ string string_human_readable_number(size_t num);
 
 CCL_NAMESPACE_END
 
-#endif /* __UTIL_STRING_H__ */
+#endif  /* __UTIL_STRING_H__ */
index 42ad723..241ac89 100644 (file)
@@ -46,4 +46,4 @@ size_t system_physical_ram();
 
 CCL_NAMESPACE_END
 
-#endif /* __UTIL_SYSTEM_H__ */
+#endif  /* __UTIL_SYSTEM_H__ */
index f752e81..233cfe3 100644 (file)
@@ -89,4 +89,4 @@ typedef struct TextureInfo {
 
 CCL_NAMESPACE_END
 
-#endif /* __UTIL_TEXTURE_H__ */
+#endif  /* __UTIL_TEXTURE_H__ */
index f39fcfb..f7d2d45 100644 (file)
@@ -138,4 +138,4 @@ protected:
 
 CCL_NAMESPACE_END
 
-#endif /* __UTIL_THREAD_H__ */
+#endif  /* __UTIL_THREAD_H__ */
index 6bdf56f..e4cadd3 100644 (file)
@@ -495,4 +495,4 @@ OPENCL_TRANSFORM_ADDRSPACE_DECLARE(transform_direction_transposed)
 
 CCL_NAMESPACE_END
 
-#endif /* __UTIL_TRANSFORM_H__ */
+#endif  /* __UTIL_TRANSFORM_H__ */
index 96c549b..535048d 100644 (file)
@@ -156,4 +156,4 @@ CCL_NAMESPACE_END
 #endif
 #endif
 
-#endif /* __UTIL_TYPES_H__ */
+#endif  /* __UTIL_TYPES_H__ */
index 0b33221..9770199 100644 (file)
@@ -336,4 +336,4 @@ protected:
 
 CCL_NAMESPACE_END
 
-#endif /* __UTIL_VECTOR_H__ */
+#endif  /* __UTIL_VECTOR_H__ */
index 112255f..980c5a2 100644 (file)
@@ -34,4 +34,4 @@ CCL_NAMESPACE_BEGIN
 
 CCL_NAMESPACE_END
 
-#endif /* __UTIL_VERSION_H__ */
+#endif  /* __UTIL_VERSION_H__ */
index e603e60..a757b56 100644 (file)
@@ -40,4 +40,4 @@ void view_redraw();
 
 CCL_NAMESPACE_END
 
-#endif /*__UTIL_VIEW_H__*/
+#endif  /*__UTIL_VIEW_H__*/
index 3b23ce8..9b9268f 100644 (file)
@@ -56,4 +56,4 @@ CCL_NAMESPACE_END
 
 #endif  /* WIN32 */
 
-#endif /* __UTIL_WINDOWS_H__ */
+#endif  /* __UTIL_WINDOWS_H__ */
index 6f06f17..c8a3a49 100644 (file)
@@ -38,4 +38,4 @@ using PUGIXML_NAMESPACE::xml_parse_result;
 
 CCL_NAMESPACE_END
 
-#endif /* __UTIL_XML_H__ */
+#endif  /* __UTIL_XML_H__ */