]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 29 Aug 2012 13:54:45 +0000 (13:54 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 29 Aug 2012 13:54:45 +0000 (13:54 +0000)
MagickCore/colorspace.c

index 049c6ead99b981906a5d5339e89028b4c8fae7ba..c3272f1180b30ac498e61a274df2bcbfcba64233 100644 (file)
@@ -1682,16 +1682,16 @@ static inline void ConvertLabToXYZ(const double L,const double a,const double b,
   y=(100.0*L+16.0)/116.0;
   x=y+255.0*(a-0.5)/500.0;
   z=y-255.0*(b-0.5)/200.0;
-  if (pow(x,3.0) > CIEEpsilon)
-    x=pow(x,3.0);
+  if ((x*x*x) > CIEEpsilon)
+    x=(x*x*x);
   else
     x=(116.0*x-16.0)/CIEK;
-  if (pow(y,3.0) > CIEEpsilon)
-    y=pow(y,3.0);
+  if ((y*y*y) > CIEEpsilon)
+    y=(y*y*y);
   else
     y=(100.0*L)/CIEK;
-  if (pow(z,3.0) > CIEEpsilon)
-    z=pow(z,3.0);
+  if ((z*z*z) > CIEEpsilon)
+    z=(z*z*z);
   else
     z=(116*z-16.0)/CIEK;
   *X=D65X*x;