1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
From: ImageMagick Packaging Team
<pkg-gmagick-im-team@lists.alioth.debian.org>
Date: Sun, 7 Sep 2025 16:52:31 +0200
Subject: Private alias for easing backport
origin: backport, https://github.com/ImageMagick/ImageMagick/commit/7e5d87fe6e92b6cc3e96d5175974626317512dd9
---
MagickCore/statistic-private.h | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/MagickCore/statistic-private.h b/MagickCore/statistic-private.h
index f873a47..5e84b30 100644
--- a/MagickCore/statistic-private.h
+++ b/MagickCore/statistic-private.h
@@ -29,6 +29,16 @@ static inline double MagickLog10(const double x)
return(log10(fabs(x)));
}
+static inline double MagickSafeLog10(const double x) {
+ return MagickLog10(x);
+}
+
+static inline double MagickSafeReciprocal(const double x)
+{
+ if ((x > -MagickEpsilon) && (x < MagickEpsilon))
+ return(1.0/MagickEpsilon);
+ return(1.0/x);
+}
#if defined(__cplusplus) || defined(c_plusplus)
}
#endif
|