Lines Matching refs:SCALE
49 #ifndef SCALE
50 #define SCALE(x, y) (((x) + (1 <<((y)-1))) >> (y)) macro
221 in0 = SCALE(in[0], DCTII_8_SHIFT_IN); in dct2_8()
222 in1 = SCALE(in[1], DCTII_8_SHIFT_IN); in dct2_8()
223 in2 = SCALE(in[2], DCTII_8_SHIFT_IN); in dct2_8()
224 in3 = SCALE(in[3], DCTII_8_SHIFT_IN); in dct2_8()
225 in4 = SCALE(in[4], DCTII_8_SHIFT_IN); in dct2_8()
226 in5 = SCALE(in[5], DCTII_8_SHIFT_IN); in dct2_8()
227 in6 = SCALE(in[6], DCTII_8_SHIFT_IN); in dct2_8()
228 in7 = SCALE(in[7], DCTII_8_SHIFT_IN); in dct2_8()
259 out[0] = (OI_INT16)SCALE(L00, DCTII_8_SHIFT_0); in dct2_8()
260 out[4] = (OI_INT16)SCALE(L01, DCTII_8_SHIFT_4); in dct2_8()
263 out[6] = (OI_INT16)SCALE(L02, DCTII_8_SHIFT_6); in dct2_8()
264 out[2] = (OI_INT16)SCALE(L03, DCTII_8_SHIFT_2); in dct2_8()
289 out[3] = (OI_INT16)SCALE(L04, DCTII_8_SHIFT_3-1); in dct2_8()
290 out[5] = (OI_INT16)SCALE(L05, DCTII_8_SHIFT_5-1); in dct2_8()
293 out[7] = (OI_INT16)SCALE(L06, DCTII_8_SHIFT_7-1); in dct2_8()
294 out[1] = (OI_INT16)SCALE(L07, DCTII_8_SHIFT_1-1); in dct2_8()