From: cristy Date: Sun, 24 May 2015 22:30:01 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~1002 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c79addbbfcd6d3b66f08b564696b969fa7c7d6eb;p=imagemagick --- diff --git a/MagickCore/pixel-accessor.h b/MagickCore/pixel-accessor.h index 891952096..836976985 100644 --- a/MagickCore/pixel-accessor.h +++ b/MagickCore/pixel-accessor.h @@ -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