jdk/src/share/native/sun/awt/medialib/mlib_ImageLookUp_64.c
changeset 6814 c6e347fb5b20
parent 5506 202f599c92aa
child 7668 d4a77089c587
--- a/jdk/src/share/native/sun/awt/medialib/mlib_ImageLookUp_64.c	Thu Oct 07 12:25:23 2010 +0400
+++ b/jdk/src/share/native/sun/awt/medialib/mlib_ImageLookUp_64.c	Fri Oct 15 10:42:39 2010 +0400
@@ -558,10 +558,11 @@
                               const mlib_d64 **table)
 {
   const mlib_d64 *table_base[4];
+  mlib_u32 shift = TABLE_SHIFT_S32;
   mlib_s32 c;
 
   for (c = 0; c < csize; c++) {
-    table_base[c] = &table[c][TABLE_SHIFT_S32];
+    table_base[c] = &table[c][shift];
   }
 
   MLIB_C_IMAGELOOKUP(mlib_d64, mlib_s32, table_base);
@@ -1039,10 +1040,11 @@
                                 const mlib_d64 **table)
 {
   const mlib_d64 *table_base[4];
+  mlib_u32 shift = TABLE_SHIFT_S32;
   mlib_s32 c;
 
   for (c = 0; c < csize; c++) {
-    table_base[c] = &table[c][TABLE_SHIFT_S32];
+    table_base[c] = &table[c][shift];
   }
 
   MLIB_C_IMAGELOOKUPSI(mlib_d64, mlib_s32, table_base);