From: nicolas Date: Thu, 7 Oct 2010 00:11:32 +0000 (+0000) Subject: one less flop in computation of Jinc X-Git-Tag: 7.0.1-0~8736 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5a36f341278c05f8f31b4520edba1d5960418443;p=imagemagick one less flop in computation of Jinc --- diff --git a/magick/resize.c b/magick/resize.c index 70623275e..03ded99c0 100644 --- a/magick/resize.c +++ b/magick/resize.c @@ -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,