19 #ifndef SPEEDTOOLS_H_INCLUDED 20 #define SPEEDTOOLS_H_INCLUDED 22 #define PREFETCH_2048(x) \ 23 { int *pfetcha = (int *) x; \ 24 prefetchnta( pfetcha ); \ 25 prefetchnta( pfetcha + 64 ); \ 26 prefetchnta( pfetcha + 128 ); \ 27 prefetchnta( pfetcha + 192 ); \ 29 prefetchnta( pfetcha ); \ 30 prefetchnta( pfetcha + 64 ); \ 31 prefetchnta( pfetcha + 128 ); \ 32 prefetchnta( pfetcha + 192 ); } 34 static inline unsigned int read_pf(
volatile unsigned int *addr)
39 #define READ_PREFETCH_2048(x) \ 40 { int * pfetcha = (int *) x; \ 41 read_pf(pfetcha); read_pf(pfetcha + 16); read_pf(pfetcha + 32); read_pf(pfetcha + 48); \ 42 read_pf(pfetcha + 64); read_pf(pfetcha + 80); read_pf(pfetcha + 96); read_pf(pfetcha + 112); \ 43 read_pf(pfetcha + 128); read_pf(pfetcha + 144); read_pf(pfetcha + 160); read_pf(pfetcha + 176); \ 44 read_pf(pfetcha + 192); read_pf(pfetcha + 208); read_pf(pfetcha + 224); read_pf(pfetcha + 240); \ 46 read_pf(pfetcha); read_pf(pfetcha + 16); read_pf(pfetcha + 32); read_pf(pfetcha + 48); \ 47 read_pf(pfetcha + 64); read_pf(pfetcha + 80); read_pf(pfetcha + 96); read_pf(pfetcha + 112); \ 48 read_pf(pfetcha + 128); read_pf(pfetcha + 144); read_pf(pfetcha + 160); read_pf(pfetcha + 176); \ 49 read_pf(pfetcha + 192); read_pf(pfetcha + 208); read_pf(pfetcha + 224); read_pf(pfetcha + 240); }