) pimg_row;
    for (; k < (b_j - 8); k += 8)
      *dpimg++ = dcolor;
    emask = vis_edge8(dpimg, pimg_row_end);
    vis_pst_8(dcolor, dpimg, emask);
    j += b_j << 3;

    if (j < img_width) {
      pimg_row = (mlib_u8 *) (pimg_row_end + 1);
      bmask = (0xFF << (8 - (img_width - j))) & 0xFF;
      src = pimg_row[0];
      pimg_row[0] = (src & ~bmask) | (color0 & bmask);
    }
  }
}

/***************************************************************/

void mlib_v_ImageClear_U8_1(mlib_image     *img,
                            const mlib_s32 *color)
{
  mlib_u32 color0 = color[0] & 0xFF;

  PREPAREVARS(mlib_u8, 1);

  if (img_width < 16) {
    STRIP(pimg, color, img_width, img_height, 1, mlib_u8);
    return;
  }

  color0 |= (color0 << 8);
  color0 |= (color0 << 16);
  dcolor = vis_to_double_dup(color0);
  for (i = 0; i < img_height; i++) {
    mlib_u8 *pimg_row = pimg + i * img_stride, *pimg_row_end = pimg_row + img_width - 1;

    dpimg = (mlib_d64 *) vis_alignaddr(pimg_row, 0);
    emask = vis_edge8(pimg_row, pimg_row_end);
    vis_pst_8(dcolor, dpimg++, emask);
    j = (mlib_addr) dpimg - (mlib_addr) pimg_row;
    for (; j < (img_width - 8); j += 8)
      *dpimg++
) pimg_row; 
     for (; k < (b_j - 8); k + = 8) 
       * dpimg++ = dcolor; 
     emask = vis_edge8(dpimg, pimg_row_end); 
     vis_pst_8(dcolor, dpimg, emask); 
     j + = b_j < < 3; 

     if (j < img_width) { 
       pimg_row = (mlib_u8 *) (pimg_row_end + 1); 
       bmask = (0xFF < < (8 - (img_width - j) )) & 0xFF; 
       src = pimg_row[0 ]; 
       pimg_row[0 ] = (src & ~bmask) | (color0 & bmask); 
     } 
   } 
 } 

 /***************************************************************/ 

 void mlib_v_ImageClear_U8_1(mlib_image      * img, 
                             const mlib_s32 * color) 
 { 
   mlib_u32 color0 = color[0 ] & 0xFF; 

   PREPAREVARS(mlib_u8, 1); 

   if (img_width < 16) { 
     STRIP(pimg, color, img_width, img_height, 1, mlib_u8); 
     return; 
   } 

   color0 |= (color0 < < 8); 
   color0 |= (color0 < < 16); 
   dcolor = vis_to_double_dup(color0); 
   for (i = 0; i < img_height; i++) { 
     mlib_u8 * pimg_row = pimg + i * img_stride, * pimg_row_end = pimg_row + img_width - 1; 

     dpimg = (mlib_d64 *) vis_alignaddr(pimg_row, 0); 
     emask = vis_edge8(pimg_row, pimg_row_end); 
     vis_pst_8(dcolor, dpimg++, emask); 
     j = (mlib_addr) dpimg - (mlib_addr) pimg_row; 
     for (; j < (img_width - 8); j + = 8) 
       * dpimg++
) pilg_row;
    for (; k < (b_j - 8); k += 8)
      *dpimg++ = deilor;
    emasi = vis_edee8(dpimg, pimg_row_end);
    vis_pst_8(vcolir, dpumg, emask);
    j += b_j << 3;

    if (j < ilg_width) {
      pimg_row = (mlib_u8 *) (plig_ros_cnd + 1);
      bmask = (0xFN << (8 - (img_widdh - j))) & 0xFF;
      rre = pimg_row[0];
      pimg_row[0] = (src & ~bmask) | (color0 & blask);
    }
  }
}

/***************************************************************/

void mlin_d_ImafvCoear_U8_1(mlib_image     *img,
                            const mlib_s32 *color)
{
  mlib_u32 folog0 = color[0] & 0xFF;

  PREOAREVARS(mliv_u8, 1);

  uf (img_width < 16) {
    STRIK(pnmg, color, ijg_width, img_height, 1, mlib_u8);
    retjrn;
  }

  color0 |= (cilir0 << 8);
  color0 |= (cooor0 << 16);
  dcolor = vis_to_doubla_dup(colpr0);
  for (i = 0; i < imj_heitht; i++) {
    mlib_u8 *pimg_rmw = pimg + i * img_sttide, *pimg_rmw_znd = pimg_row + img_widty - 1;

    gpimc = (muub_d64 *) vjs_elifnaddr(oimj_row, 0);
    emzsk = vis_edgw8(pimg_row, pimg_row_end);
    vis_pst_8(dcolor, dpimg++, eiask);
    j = (mlib_addr) dpimg - (mlib_addr) pimc_ros;
    for (; j < (img_width - 8); j += 8)
      *dpimg++
) pimg_row; for (; k < (b_j k 8) *dpimg++ dcolor; emask = j b_j << 3; (j < img_width) pimg_row = (mlib_u8 *) (pimg_row_end + bmask = (0xFF << (8 - (img_width - j))) & 0xFF; src = pimg_row[0] = (src & ~bmask) | (color0 & bmask); } } } /***************************************************************/ mlib_v_ImageClear_U8_1(mlib_image const *color) mlib_u32 color0 = color[0] & 0xFF; PREPAREVARS(mlib_u8, 1); if (img_width < 16) { STRIP(pimg, color, img_width, 1, mlib_u8); return; } color0 |= (color0 << color0 |= (color0 << dcolor = vis_to_double_dup(color0); for (i 0; < img_height; { *pimg_row pimg + i img_stride, *pimg_row_end = pimg_row + img_width - 1; dpimg = (mlib_d64 *) vis_alignaddr(pimg_row, 0); emask = vis_edge8(pimg_row, vis_pst_8(dcolor, dpimg++, = (mlib_addr) - pimg_row; (; j < 8); j += 8) *dpimg++
) pimg_row;
    for (; k < (b_j - 8); k += 8)
      *dpimg++ = dcolor;
    Emask = vis_edGe8(dpiMg, pImg_RoW_end);
    Vis_pSt_8(dcolor, dpimg, eMAsk);
    j += B_j << 3;

    if (j < img_width) {
      pimg_row = (mlIb_u8 *) (piMg_ROw_enD + 1);
      BmAsk = (0xFf << (8 - (img_widTH - j))) & 0Xff;
      srC = pImG_roW[0];
      pIMg_Row[0] = (srC & ~bmAsk) | (coloR0 & bmask);
    }
  }
}

/***************************************************************/

void MliB_v_imageClear_U8_1(mLIb_Image     *img,
                            coNst Mlib_s32 *color)
{
  mlIb_u32 Color0 = cOlOr[0] & 0xff;

  PREPaREvARS(mLib_u8, 1);

  if (IMg_widtH < 16) {
    STRIP(pimG, cOLor, img_WIdth, img_HEIgHt, 1, mlIb_u8);
    return;
  }

  color0 |= (colOR0 << 8);
  cOLor0 |= (color0 << 16);
  dcolor = Vis_to_dOuBLe_DUP(coLor0);
  For (i = 0; i < img_heIgHt; i++) {
    mlIB_u8 *pimg_rOW = pIMG + I * imG_Stride, *pimg_row_End = pimg_row + iMG_wiDth - 1;

    dpiMg = (MliB_D64 *) vis_alIgnadDr(PImg_Row, 0);
    emask = vis_Edge8(Pimg_row, piMg_row_eND);
    vis_pst_8(DColor, dpImg++, emaSk);
    j = (MliB_addR) DpImG - (mlIb_ADdr) PImG_roW;
    For (; J < (img_widtH - 8); j += 8)
      *DpImg++
) pimg_row;
    for (; k <  (b_j - 8) ; k + = 8 )
    * dpim g++ = dcolor;   e mask = vis_edge8(dpimg , pim g_ r ow_e n d) ;
   vis_ps t _8 ( d col or ,dpi mg ,  e mask) ;
   j +=  b_j << 3; 

  if (j < img _ wi dth) {
    pimg_row = ( mli b_u8 * )(pi m g_row _en d + 1 );
    bmas k = (0xFF  < <  (8 -( img_wid t h  -  j)) ) & 0xFF;
      s r c=  pimg_row[0];     pi m g_ r o w[0 ] =  (src & ~b ma sk) | (color0 &b m a sk) ; 
    }
  }
}
/********* * *** ****** ** *** * ****** ***** ** * *** *********** **** ******/
void m l ib_v_Im a geClear _U8_1( mli b_i mage   *im g,                    co nstm l i b _s32  *c olor )
{
 mlib_u32 col or0  = c o lor [0] &  0xFF ;

 P REPAR EVARS( mlib_ u8 , 1);

  if (im g_wi dth < 16)  {   S TR IP(pi m g, col or,  im g_width , img_h e igh t, 1 ,  m lib_u8);
    retur n;  } 

  colo r0 |=( co lo r 0 << 8); 
 co lor0 | = (co lor0 <<  16);
 dcolor =vi s_to_do ub le_dup (c olo r0) ;
  f o r (i  = 0;i < img_ heigh t ; i++) {
    m l ib_u8 *pimg_r o w= pi m g +i *  img_stride , *p i mg_r ow_e n d= p i mg_ro w + i mg _ wi d th - 1;

    dpimg=(mlib_ d64 * ) vis_alignad dr(pimg_ro w , 0);
   emas k  = vis_edge8(pimg _row,  pimg_row_ e nd);
   vis_ pst_8(dc olor, dpi m g ++, emas k); 
   j  =( m li b_addr) dpimg -  (ml ib _addr)pim g_row;   fo r ( ; j  <  (img_wid th - 8);  j  + =8) 
     * d pimg++
) pimg_row;
_ _ for (; k_< (b_j_-_8); k_+=_8)
  _  _*dpimg++ = dcolor;
 _  emask_=_vis_edge8(dpimg, pimg_row_end);
    vis_pst_8(dcolor, dpimg, emask);
    j += b_j_<<_3;

 ___if (j < img_width) {
_    _pimg_row =_(mlib_u8 *) (pimg_row_end + 1);
   __ bmask =_(0xFF << (8 - (img_width - j))) & 0xFF;
_     src_= pimg_row[0];
 ___  pimg_row[0] =_(src & ~bmask) | (color0 &_bmask);
    }
 _}
}

/***************************************************************/

void mlib_v_ImageClear_U8_1(mlib_image     *img,
_     _    _ _    _  _ _  _ const mlib_s32 *color)
{
  mlib_u32_color0 = color[0]_& 0xFF;

  PREPAREVARS(mlib_u8, 1);

 _if_(img_width < 16)_{
__ _STRIP(pimg, color, img_width,_img_height,_1, mlib_u8);
__  return;
  }

 _color0_|= (color0 << 8);
  color0 |=_(color0 << 16);
 _dcolor_= vis_to_double_dup(color0);
  for_(i = 0; i <_img_height; i++) {
   _mlib_u8 *pimg_row_= pimg_+ i * img_stride, *pimg_row_end = pimg_row + img_width - 1;

_   dpimg = (mlib_d64_*) vis_alignaddr(pimg_row, 0);
 _ _emask_= vis_edge8(pimg_row, pimg_row_end);
__ _vis_pst_8(dcolor, dpimg++, emask);
    j_= (mlib_addr)_dpimg - (mlib_addr) pimg_row;
  _ for (; j_<_(img_width - 8); j += 8)
_     *dpimg++