26 # define dct32 ff_dct32_float
27 # define FIXHR(x) ((float)(x))
28 # define MULH3(x, y, s) ((s)*(y)*(x))
29 # define INTFLOAT float
31 # define dct32 ff_dct32_fixed
32 # define FIXHR(a) ((int)((a) * (1LL<<32) + 0.5))
33 # define MULH3(x, y, s) MULH((s)*(x), y)
42 #define COS0_0 FIXHR(0.50060299823519630134/2)
43 #define COS0_1 FIXHR(0.50547095989754365998/2)
44 #define COS0_2 FIXHR(0.51544730992262454697/2)
45 #define COS0_3 FIXHR(0.53104259108978417447/2)
46 #define COS0_4 FIXHR(0.55310389603444452782/2)
47 #define COS0_5 FIXHR(0.58293496820613387367/2)
48 #define COS0_6 FIXHR(0.62250412303566481615/2)
49 #define COS0_7 FIXHR(0.67480834145500574602/2)
50 #define COS0_8 FIXHR(0.74453627100229844977/2)
51 #define COS0_9 FIXHR(0.83934964541552703873/2)
52 #define COS0_10 FIXHR(0.97256823786196069369/2)
53 #define COS0_11 FIXHR(1.16943993343288495515/4)
54 #define COS0_12 FIXHR(1.48416461631416627724/4)
55 #define COS0_13 FIXHR(2.05778100995341155085/8)
56 #define COS0_14 FIXHR(3.40760841846871878570/8)
57 #define COS0_15 FIXHR(10.19000812354805681150/32)
59 #define COS1_0 FIXHR(0.50241928618815570551/2)
60 #define COS1_1 FIXHR(0.52249861493968888062/2)
61 #define COS1_2 FIXHR(0.56694403481635770368/2)
62 #define COS1_3 FIXHR(0.64682178335999012954/2)
63 #define COS1_4 FIXHR(0.78815462345125022473/2)
64 #define COS1_5 FIXHR(1.06067768599034747134/4)
65 #define COS1_6 FIXHR(1.72244709823833392782/4)
66 #define COS1_7 FIXHR(5.10114861868916385802/16)
68 #define COS2_0 FIXHR(0.50979557910415916894/2)
69 #define COS2_1 FIXHR(0.60134488693504528054/2)
70 #define COS2_2 FIXHR(0.89997622313641570463/2)
71 #define COS2_3 FIXHR(2.56291544774150617881/8)
73 #define COS3_0 FIXHR(0.54119610014619698439/2)
74 #define COS3_1 FIXHR(1.30656296487637652785/4)
76 #define COS4_0 FIXHR(M_SQRT1_2/2)
79 #define BF(a, b, c, s)\
81 tmp0 = val##a + val##b;\
82 tmp1 = val##a - val##b;\
84 val##b = MULH3(tmp1, c, 1<<(s));\
87 #define BF0(a, b, c, s)\
89 tmp0 = tab[a] + tab[b];\
90 tmp1 = tab[a] - tab[b];\
92 val##b = MULH3(tmp1, c, 1<<(s));\
95 #define BF1(a, b, c, d)\
102 #define BF2(a, b, c, d)\
104 BF(a, b, COS4_0, 1);\
105 BF(c, d,-COS4_0, 1);\
112 #define ADD(a, b) val##a += val##b
119 INTFLOAT val0 , val1 , val2 , val3 , val4 , val5 , val6 , val7 ,
120 val8 , val9 , val10, val11, val12, val13, val14, val15,
121 val16, val17, val18, val19, val20, val21, val22, val23,
122 val24, val25, val26, val27, val28, val29, val30, val31;
260 out[ 1] = val16 + val24;
261 out[17] = val17 + val25;
262 out[ 9] = val18 + val26;
263 out[25] = val19 + val27;
264 out[ 5] = val20 + val28;
265 out[21] = val21 + val29;
266 out[13] = val22 + val30;
267 out[29] = val23 + val31;
268 out[ 3] = val24 + val20;
269 out[19] = val25 + val21;
270 out[11] = val26 + val22;
271 out[27] = val27 + val23;
272 out[ 7] = val28 + val18;
273 out[23] = val29 + val19;
274 out[15] = val30 + val17;
static const struct twinvq_data tab