diff --git a/rtengine/iplocallab.cc b/rtengine/iplocallab.cc index 5b7160b83..7bca595ea 100644 --- a/rtengine/iplocallab.cc +++ b/rtengine/iplocallab.cc @@ -1647,13 +1647,6 @@ static void calcLocalParams(int sp, int oW, int oH, const LocallabParams& locall lp.hlcomp = locallab.spots.at(sp).hlcompr; lp.hlcompthr = locallab.spots.at(sp).hlcomprthresh; lp.expcomp = LIM(locallab.spots.at(sp).expcomp, -2.0, 4.0); //to prevent crash with Old pp3 with integer - //increase sensitivity for low values - float proexp = lp.expcomp; - if (std::fabs(proexp) < 0.6f) { - float interm = std::fabs(proexp) / 0.6f; - interm = pow(interm, 3.f); - lp.expcomp = proexp * interm; - } lp.expchroma = locallab.spots.at(sp).expchroma / 100.; lp.sensex = local_sensiex; lp.war = local_warm; diff --git a/rtengine/opthelper.h b/rtengine/opthelper.h index f431c0ec9..8de3b781b 100644 --- a/rtengine/opthelper.h +++ b/rtengine/opthelper.h @@ -20,7 +20,7 @@ //////////////////////////////////////////////////////////////// #pragma once -#define pow_F(a,b) (xexpf(b*xlogf(a))) +#define pow_F(a,b) (xexpf((b)*xlogf(a))) #ifdef __SSE2__ #include "sleefsseavx.h" diff --git a/rtengine/sleef.h b/rtengine/sleef.h index 8611e2fc7..e630d882d 100644 --- a/rtengine/sleef.h +++ b/rtengine/sleef.h @@ -26,7 +26,6 @@ #define L2U .69314718055966295651160180568695068359375 #define L2L .28235290563031577122588448175013436025525412068e-12 #define R_LN2 1.442695040888963407359924681001892137426645954152985934135449406931 -#define pow_F(a,b) (xexpf(b*xlogf(a))) __inline int64_t doubleToRawLongBits(double d) { union {