RGB_LOW_BITS_MASK = 0x010101;
int Init_2xSaI(u32 BitFormat){  if(systemColorDepth == 16) {    if (BitFormat == 565) {      colorMask = 0xF7DEF7DE;      lowPixelMask = 0x08210821;      qcolorMask = 0xE79CE79C;      qlowpixelMask = 0x18631863;      redblueMask = 0xF81F;      greenMask = 0x7E0;      qRGB_COLOR_MASK[0] = qRGB_COLOR_MASK[1] = 0xF7DEF7DE;      hq2x_init(16);    } else if (BitFormat == 555) {      colorMask = 0x7BDE7BDE;      lowPixelMask = 0x04210421;      qcolorMask = 0x739C739C;      qlowpixelMask = 0x0C630C63;      redblueMask = 0x7C1F;      greenMask = 0x3E0;      qRGB_COLOR_MASK[0] = qRGB_COLOR_MASK[1] = 0x7BDE7BDE;      hq2x_init(15);    } else {      return 0;    }  } else if(systemColorDepth == 32) {    colorMask = 0xfefefe;    lowPixelMask = 0x010101;    qcolorMask = 0xfcfcfc;    qlowpixelMask = 0x030303;    qRGB_COLOR_MASK[0] = qRGB_COLOR_MASK[1] = 0xfefefe;    hq2x_init(32);  } else    return 0;#ifdef MMX    Init_2xSaIMMX (BitFormat);#endif    return 1;}