24 #ifndef AVCODEC_BFIN_DSPUTIL_BFIN_H
25 #define AVCODEC_BFIN_DSPUTIL_BFIN_H
30 #if defined(__FDPIC__) && CONFIG_SRAM
31 #define attribute_l1_text __attribute__ ((l1_text))
32 #define attribute_l1_data_b __attribute__((l1_data_B))
34 #define attribute_l1_text
35 #define attribute_l1_data_b
71 static double Telem[16];
72 static char *TelemNames[16];
75 #define PROF(lab,e) { int xx_e = e; char*xx_lab = lab; uint64_t xx_t0 = read_time();
76 #define EPROF() xx_t0 = read_time()-xx_t0; Telem[xx_e] = Telem[xx_e] + xx_t0; TelemNames[xx_e] = xx_lab; }
78 static void prof_report (
void)
85 v = Telem[i]/TelemCnt;
91 "total",s/TelemCnt,s/TelemCnt/64,s,TelemCnt);
97 if (!init) atexit (prof_report);