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.
This commit is contained in:
Thomas Dinges
2013-06-02 20:39:32 +00:00
parent 834492489a
commit c5ed6765b9
22 changed files with 74 additions and 75 deletions

View File

@@ -74,7 +74,7 @@ int DiagSplit::T(Patch *patch, float2 Pstart, float2 Pend)
float3 P = project(patch, Pstart + t*(Pend - Pstart));
if(i > 0) {
float L = len(P - Plast);
float L = length(P - Plast);
Lsum += L;
Lmax = max(L, Lmax);
}