]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 14 Oct 2012 22:17:01 +0000 (22:17 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 14 Oct 2012 22:17:01 +0000 (22:17 +0000)
MagickCore/pixel-private.h

index 9614017c080d00e83cb459d8e674e7c22296d2a5..5f37e4454486993727448441bdd4d5171aaf08d1 100644 (file)
@@ -24,10 +24,13 @@ extern "C" {
 
 static inline double MagickEpsilonReciprocal(const double x)
 {
-  double sign = x < (double) 0.0 ? (double) -1.0 : 
-    (double) 1.0;
-  return((sign*x) >= MagickEpsilon ? (double) 1.0/x : sign*(
-    (double) 1.0/MagickEpsilon));
+  double
+    sign;
+
+  sign=x < (double) 0.0 ? (double) -1.0 : (double) 1.0;
+  if ((sign*x) >= MagickEpsilon)
+    return(1.0/x);
+  return(sign*((double) 1.0/MagickEpsilon));
 }
 
 #if defined(__cplusplus) || defined(c_plusplus)