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

@@ -201,7 +201,7 @@ __device void subsurface_scatter_step(KernelGlobals *kg, ShaderData *sd, int sta
/* create ray */
Ray ray;
ray.P = p1;
ray.D = normalize_len(p2 - p1, &ray.t);
ray.D = normalize_length(p2 - p1, &ray.t);
ray.dP = sd->dP;
ray.dD = differential3_zero();
ray.time = sd->time;