]> granicus.if.org Git - imagemagick/commitdiff
one less flop in computation of Jinc
authornicolas <nicolas@git.imagemagick.org>
Thu, 7 Oct 2010 00:11:32 +0000 (00:11 +0000)
committernicolas <nicolas@git.imagemagick.org>
Thu, 7 Oct 2010 00:11:32 +0000 (00:11 +0000)
magick/resize.c

index 70623275e6529278eeabbf0fbe02226bae1ebcc5..03ded99c054f5592febb28bbd6141799897dcec0 100644 (file)
@@ -147,8 +147,8 @@ static MagickRealType Jinc(const MagickRealType x,
     But really it is more accurately named "Jinc".
   */
   if (x == 0.0)
-    return(0.25*MagickPIL);
-  return(BesselOrderOne(MagickPIL*x)/(x+x));
+    return(0.5*MagickPIL);
+  return(BesselOrderOne(MagickPIL*x)/x);
 }
 
 static MagickRealType Blackman(const MagickRealType x,