]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 2 Feb 2014 20:51:55 +0000 (20:51 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 2 Feb 2014 20:51:55 +0000 (20:51 +0000)
MagickCore/compare.c
MagickCore/feature.c

index c32abad3e8fee39b6ea5ad370584d1dcb071c99e..ebab64c3ccb0fa57615c2455c81ab7ec2be48216 100644 (file)
@@ -1090,10 +1090,8 @@ static MagickBooleanType GetPeakAbsoluteDistortion(const Image *image,
 
 static inline double MagickLog10(const double x)
 {
-#define Log10Epsilon  (1.0e-26)
-
- if (fabs(x) < Log10Epsilon)
-   return(log10(fabs(Log10Epsilon)));
+ if (fabs(x) < (1.0/MagickHuge))
+   return(log10(1.0/MagickHuge));
  return(log10(fabs(x)));
 }
 
index 3b8dee700dc33c2c87371ff4a3af5f9ab3774823..b51899027fab866b69b8b0600fa004acebecf617 100644 (file)
@@ -138,10 +138,8 @@ static inline ssize_t MagickAbsoluteValue(const ssize_t x)
 
 static inline double MagickLog10(const double x)
 {
-#define Log10Epsilon  (1.0e-26)
-
- if (fabs(x) < Log10Epsilon)
-   return(log10(fabs(Log10Epsilon)));
+ if (fabs(x) < (1.0/MagickHuge))
+   return(log10(1.0/MagickHuge));
  return(log10(fabs(x)));
 }