I downloaded and built libpng from svn and was getting some missing references for pow and powf. I fixed the powf by adding mf to the list of libraries but I couldnt find pow anywhere in the ps2sdk. Does it exist?
As a workaround I disabled the floating point support in libpng. Is libpng still able to open all variations?
png and pow
It seems the floating point unit in the ps2 only handles single precision floats. So what is a good strategy for handling double precision float functions like 'pow'. Would it be ok to just call the single precision version?
ie
ie
Code: Select all
double pow(double x, double y)
{
return powf(x, y);
}