26 #define c1 1.38703984532214752434 27 #define c2 1.30656296487637657577 28 #define c3 1.17587560241935884520 29 #define c4 1.00000000000000000000 30 #define c5 0.78569495838710234903 31 #define c6 0.54119610014619712324 32 #define c7 0.27589937928294311353 34 static const float even_table[]
__attribute__ ((aligned(8))) = {
41 static const float odd_table[]
__attribute__ ((aligned(8))) = {
56 #define load_matrix(table) \ 58 const float *t = table; \ 75 __asm__ volatile("ftrv xmtrx,fv0" \ 76 : "+f"(fr0),"+f"(fr1),"+f"(fr2),"+f"(fr3)); 79 register float fr0 __asm__("fr0"); \ 80 register float fr1 __asm__("fr1"); \ 81 register float fr2 __asm__("fr2"); \ 82 register float fr3 __asm__("fr3") 84 #define DESCALE(x,n) (x)*(1.0f/(1<<(n))) 96 float tblock[8*8],*fblock;
142 *--fblock = t0 - fr0;
143 *--fblock = t1 - fr1;
144 *--fblock = t2 - fr2;
145 *--fblock = t3 - fr3;
146 *--fblock = t3 + fr3;
147 *--fblock = t2 + fr2;
148 *--fblock = t1 + fr1;
149 *--fblock = t0 + fr0;
160 ofs1 =
sizeof(float)*2*8;
161 ofs2 =
sizeof(float)*4*8;
162 ofs3 =
sizeof(float)*6*8;
166 #define OA(fblock,ofs) *(float*)((char*)fblock + ofs) 170 fr1 =
OA(fblock,ofs1);
171 fr2 =
OA(fblock,ofs2);
172 fr3 =
OA(fblock,ofs3);
175 OA(fblock,ofs1) = fr1;
176 OA(fblock,ofs2) = fr2;
177 OA(fblock,ofs3) = fr3;
188 t1 =
OA(fblock,ofs1);
189 t2 =
OA(fblock,ofs2);
190 t3 =
OA(fblock,ofs3);
193 fr1 =
OA(fblock,ofs1);
194 fr2 =
OA(fblock,ofs2);
195 fr3 =
OA(fblock,ofs3);
198 block[8*0] =
DESCALE(t0 + fr0,3);
199 block[8*7] =
DESCALE(t0 - fr0,3);
200 block[8*1] =
DESCALE(t1 + fr1,3);
201 block[8*6] =
DESCALE(t1 - fr1,3);
202 block[8*2] =
DESCALE(t2 + fr2,3);
203 block[8*5] =
DESCALE(t2 - fr2,3);
204 block[8*3] =
DESCALE(t3 + fr3,3);
205 block[8*4] =
DESCALE(t3 - fr3,3);
#define load_matrix(table)
static const float even_table[] __attribute__((aligned(8)))
void ff_idct_sh4(int16_t *block)
synthesis window for stochastic i
#define fp_single_leave(fpscr)
#define fp_single_enter(fpscr)