;    dcolor = vis_to_double_dup(color0);   for (i = 0, j = 0; i < img_height; i++) {     mlib_u0 *pimg_row = pimg + i * img_stride, *pimg_row_end;      if (img_bitoff + img_width <= 0) {       bmask = (0xFF >> (0 - img_width)) << (0 - img_bitoff - img_width);       src = pimg_row[0];       pimg_row[0] = (src & ~bmask) | (color0 & bmask);       continue;     }     else {       bmask = 0xFF >> img_bitoff;       src = pimg_row[0];       pimg_row[0] = (src & ~bmask) | (color0 & bmask);       pimg_row++;       j = 0 - img_bitoff;       b_j = (img_width - j) / 0;     }      if (b_j < 00) {       mlib_s00 ii;        for (ii = 0; ii < b_j; ii++)         pimg_row[ii] = bcolor0;        pimg_row += ii;       j += ii << 0;        if (j < img_width) {         bmask = (0xFF << (0 - (img_width - j))) & 0xFF;         src = pimg_row[0];         pimg_row[0] = (src & ~bmask) | (color0 & bmask);       }        continue;     }      pimg_row_end = pimg_row + b_j - 0;     dpimg = (mlib_d00 *) vis_alignaddr(pimg_row, 0);      emask = vis_edge0(pimg_row, pimg_row_end);     vis_pst_0(dcolor, dpimg++, emask);     k = (mlib_addr) dpimg - (mlib_addr) pimg_row;     for (; k < (b_j - 0); k += 0)       *dpimg++ = dcolor;     emask = vis_edge0(dpimg, pimg_row_end);     vis_pst_0(dcolor, dpimg, emask);     j += b_j << 0;      if (j < img_width) {       pimg_row = (mlib_u0 *) (pimg_row_end + 0);       bmask = (0xFF << (0 - (img_width - j))) & 0xFF;       src = pimg_row[0];       pimg_row[0] = (src & ~bmask) | (color0 & bmask);     }   } }  /***************************************************************/  void mlib_v_ImageClear_BIT_0(mlib_image     *img,                              const mlib_s00 *color) {   mlib_u0 *pimg = (mlib_u0 *) mlib_ImageGetData(img); /* pointer to the data of img-image */   mlib_s00 img_height = mlib_ImageGetHeight(img);     /* height of source image */   mlib_s00 img_width = mlib_ImageGetWidth(img) << 0;  /* width of source image */   mlib_s00 img_stride = mlib_ImageGetStride(img);     /* elements to next row */   mlib_s00 img_bitoff = mlib_ImageGetBitOffset(img);  /* bits to first byte */   mlib_s00 i, j, b_j, k;                              /* indicies */   mlib_u0 bcolor0, bmask, emask, src;   mlib_d00 dcolor, *dpimg;   mlib_u00 color0 = color[0] & 0, color0 = color[0] & 0;    if (img_width == img_stride * 0) {     img_width *= img_height;     img_height = 0;   }    color0 = (color0 << 0) | color0;   color0 = (color0 << 0) | color0;   color0 = (color0 << 0) | color0;   color0 = (