< prev index next >

src/java.desktop/share/native/libmlib_image/mlib_ImageConv_u16ext.c

Print this page
rev 59106 : imported patch client

@@ -187,11 +187,10 @@
   dll = mlib_ImageGetStride(dst) / sizeof(type);                \
   adr_src = (type *)mlib_ImageGetData(src);                     \
   adr_dst = (type *)mlib_ImageGetData(dst)
 
 /***************************************************************/
-#ifndef __sparc
 #if IMG_TYPE == 1
 
 /*
  * Test for the presence of any "1" bit in bits
    8 to 31 of val. If present, then val is either

@@ -231,11 +230,10 @@
     dst = MLIB_U16_MIN;                                         \
   else                                                          \
     dst = (mlib_u16)val
 
 #endif /* IMG_TYPE == 1 */
-#endif /* __sparc */
 
 /***************************************************************/
 #define MAX_KER   7
 #define MAX_N    15
 #define BUFF_SIZE   1600

@@ -958,12 +956,10 @@
 
   FREE_AND_RETURN_STATUS;
 }
 
 /***************************************************************/
-#ifndef __sparc /* for x86, using integer multiplies is faster */
-
 #define STORE_RES(res, x)                                       \
   x >>= shift2;                                                 \
   CLAMP_STORE(res, x)
 
 mlib_status CONV_FUNC_MxN_I

@@ -1437,8 +1433,6 @@
   if (k != k_locl) mlib_free(k);
 
   return MLIB_SUCCESS;
 }
 
-#endif /* __sparc ( for x86, using integer multiplies is faster ) */
-
 /***************************************************************/
< prev index next >