Cycles / Math functions:
authorThomas Dinges <blender@dingto.org>
Sun, 2 Jun 2013 20:39:32 +0000 (20:39 +0000)
committerThomas Dinges <blender@dingto.org>
Sun, 2 Jun 2013 20:39:32 +0000 (20:39 +0000)
commitc5ed6765b9c46630579be5e43cab74965f0be9da
tree0ca3bee53bec86f5bb63a005aa4cbfb04e6735a6
parent834492489ab9cea37ff32166895b6a298d7225e9
Cycles / Math functions:
* Rename some math functions:
len -> length
len_squared -> length_squared
normalize_len -> normalize_length

* This way OpenCL uses its inbuilt length() function, rather than our own. The other two functions have been renamed for consistency.
* Tested CPU, CUDA and OpenCL compile, should be no functional changes.
22 files changed:
intern/cycles/blender/blender_curves.cpp
intern/cycles/blender/blender_mesh.cpp
intern/cycles/bvh/bvh.cpp
intern/cycles/kernel/kernel_bvh.h
intern/cycles/kernel/kernel_camera.h
intern/cycles/kernel/kernel_curve.h
intern/cycles/kernel/kernel_emission.h
intern/cycles/kernel/kernel_light.h
intern/cycles/kernel/kernel_path.h
intern/cycles/kernel/kernel_subsurface.h
intern/cycles/kernel/svm/svm_camera.h
intern/cycles/kernel/svm/svm_math.h
intern/cycles/kernel/svm/svm_texture.h
intern/cycles/kernel/svm/svm_wave.h
intern/cycles/kernel/svm/svm_wireframe.h
intern/cycles/render/light.cpp
intern/cycles/render/mesh.cpp
intern/cycles/render/object.cpp
intern/cycles/subd/subd_dice.cpp
intern/cycles/subd/subd_split.cpp
intern/cycles/util/util_math.h
intern/cycles/util/util_transform.h