From 6178ec0af7f714a91b09c741a64a28a846264865 Mon Sep 17 00:00:00 2001 From: cristy Date: Sun, 2 Feb 2014 15:10:22 +0000 Subject: [PATCH] --- MagickCore/compare.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/MagickCore/compare.c b/MagickCore/compare.c index 7be23e66d..7763cd1ee 100644 --- a/MagickCore/compare.c +++ b/MagickCore/compare.c @@ -72,11 +72,6 @@ #include "MagickCore/utility.h" #include "MagickCore/version.h" -/* - Define declarations. -*/ -#define LogEpsilon (1.0e-15) - /* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % @@ -1097,9 +1092,7 @@ static inline double MagickLog10(const double x) { #define Log10Epsilon (1.0e-20) - if (fabs(x) < Log10Epsilon) - return(log10(fabs(Log10Epsilon))); - return(log10(fabs(x))); + return(log10(fabs(x)+Log10Epsilon)); } static MagickBooleanType GetPeakSignalToNoiseRatio(const Image *image, -- 2.40.0