code cleanup: quiet all warnings about double promotion (either by changing the type or explicitly casting).

This commit is contained in:
Campbell Barton
2012-06-09 17:45:22 +00:00
parent 0fbb6bff27
commit 43361487ba
11 changed files with 28 additions and 28 deletions

View File

@@ -191,7 +191,7 @@ __device float noise_basis_hard(float3 p, NodeNoiseBasis basis, int hard)
__device float noise_wave(NodeWaveBasis wave, float a)
{
if(wave == NODE_WAVE_SINE) {
return 0.5f + 0.5f*sin(a);
return 0.5f + 0.5f * sinf(a);
}
else if(wave == NODE_WAVE_SAW) {
float b = 2.0f*M_PI_F;
@@ -234,7 +234,7 @@ __device_noinline float noise_turbulence(float3 p, NodeNoiseBasis basis, float o
fscale *= 2.0f;
}
float rmd = octaves - floor(octaves);
float rmd = octaves - floorf(octaves);
if(rmd != 0.0f) {
float t = noise_basis(fscale*p, basis);