xine-lib: xine-lib-1.2.13/src/post/deinterlace/speedtools.h Source File

xine-lib 1.2.13-20230125hg15249

speedtools.h
Go to the documentation of this file.
1
19#ifndef SPEEDTOOLS_H_INCLUDED
20#define SPEEDTOOLS_H_INCLUDED
21
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 ); \
28 pfetcha += 256; \
29 prefetchnta( pfetcha ); \
30 prefetchnta( pfetcha + 64 ); \
31 prefetchnta( pfetcha + 128 ); \
32 prefetchnta( pfetcha + 192 ); }
33
34 static inline unsigned int read_pf(volatile unsigned int *addr)
35{
36 return *addr;
37}
38
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); \
45 pfetcha += 256; \
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); }
50
51#endif /* SPEEDTOOLS_H_INCLUDED */
read_pf
static unsigned int read_pf(volatile unsigned int *addr)
Definition speedtools.h:34