berathebrain

What is better

Discussion created by berathebrain on Jul 24, 2008
Latest reply on Jul 24, 2008 by MicahVillmow

I was wondering from the point of GPU is it better to write this:

kernel void log10f_gpu_ati(float inY<>,out float Y<>{
    const float log10=2.3025850929940456840179914546844;
    Y = log(inY)/log10;
}

or this:

kernel void log10f_gpu_ati(float inY<>,out float Y<>{
    Y = log(inY)/2.3025850929940456840179914546844;
}

Outcomes