]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 24 May 2015 22:30:01 +0000 (22:30 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 24 May 2015 22:30:01 +0000 (22:30 +0000)
MagickCore/pixel-accessor.h

index 89195209617ed59e97ffe7e722377f24cf743581..83697698550c5a0fc046c0020dbfc4d1d265cb66 100644 (file)
@@ -31,20 +31,6 @@ extern "C" {
 
 #undef index
 
-static inline double PerceptibleReciprocal(const double x)
-{
-  double
-    sign;
-
-  /*
-    Return 1/x where x is perceptible (not unlimited or infinitesimal).
-  */
-  sign=x < 0.0 ? -1.0 : 1.0;
-  if ((sign*x) >= MagickEpsilon)
-    return(1.0/x);
-  return(sign/MagickEpsilon);
-}
-
 static inline Quantum ClampPixel(const MagickRealType value)
 { 
   if (value < 0.0f)
@@ -221,6 +207,20 @@ static inline MagickRealType GetPixelInfoChannel(
   }
 }
 
+static inline double PerceptibleReciprocal(const double x)
+{
+  double
+    sign;
+
+  /*
+    Return 1/x where x is perceptible (not unlimited or infinitesimal).
+  */
+  sign=x < 0.0 ? -1.0 : 1.0;
+  if ((sign*x) >= MagickEpsilon)
+    return(1.0/x);
+  return(sign/MagickEpsilon);
+}
+
 static inline MagickRealType GetPixelInfoLuma(const PixelInfo *restrict pixel)
 {
   MagickRealType