curexp 1004 drivers/media/usb/gspca/cpia1.c #define COMPGAIN(base, curexp, newexp) \ curexp 1005 drivers/media/usb/gspca/cpia1.c (u8) ((((float) base - 128.0) * ((float) curexp / (float) newexp)) + 128.5) curexp 1006 drivers/media/usb/gspca/cpia1.c #define EXP_FROM_COMP(basecomp, curcomp, curexp) \ curexp 1007 drivers/media/usb/gspca/cpia1.c (u16)((float)curexp * (float)(u8)(curcomp + 128) / \ curexp 1011 drivers/media/usb/gspca/cpia1.c #define COMPGAIN(base, curexp, newexp) \ curexp 1012 drivers/media/usb/gspca/cpia1.c (u8)(128 + (((u32)(2*(base-128)*curexp + newexp)) / (2 * newexp))) curexp 1013 drivers/media/usb/gspca/cpia1.c #define EXP_FROM_COMP(basecomp, curcomp, curexp) \ curexp 1014 drivers/media/usb/gspca/cpia1.c (u16)(((u32)(curexp * (u8)(curcomp + 128)) / (u8)(basecomp - 128)))