Replaced powf calls with the optimized pow_F macro (which also works for the non-SSE2 case).

This commit is contained in:
rom9 2019-06-27 23:01:51 +02:00
parent a3004bb2b8
commit 938fc63dd0

View File

@ -1253,9 +1253,9 @@ IImage8* Thumbnail::processImage (const procparams::ProcParams& params, eSensorT
}
#endif
for (; j < rwidth; ++j) {
rline[j] = CLIP(rmult * powf(rline[j], rexp));
gline[j] = CLIP(gmult * powf(gline[j], gexp));
bline[j] = CLIP(bmult * powf(bline[j], bexp));
rline[j] = CLIP(rmult * pow_F(rline[j], rexp));
gline[j] = CLIP(gmult * pow_F(gline[j], gexp));
bline[j] = CLIP(bmult * pow_F(bline[j], bexp));
}
}
}