[GEM-dev] pix_gain mmx code