From c856894456e1261ad77eee89fc8a1f26a5765954 Mon Sep 17 00:00:00 2001 From: heckflosse Date: Wed, 10 May 2017 16:04:02 +0200 Subject: [PATCH] MLmicrocontrast: eliminated SGN() --- rtengine/ipsharpen.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtengine/ipsharpen.cc b/rtengine/ipsharpen.cc index 7514a7eb4..cb98fe907 100644 --- a/rtengine/ipsharpen.cc +++ b/rtengine/ipsharpen.cc @@ -672,7 +672,7 @@ BENCHFUN for(int row = j + k, n = SQR(2*k+1) - 1; row >= j - k; row--) { for(int offset2 = row * width + i + k; offset2 >= row * width + i - k; offset2--) { - if((LM[offset2] - temp) * SGN(v - LM[offset2]) > 0.f) { + if((LM[offset2] - temp) * (v - LM[offset2]) > 0.f) { temp = intp(0.75f, temp, LM[offset2]); goto breakout; }