postproc: Replaced inline asm for prefetching with prefetch functions
authorTucker DiNapoli <t.dinapoli42@gmail.com>
Wed, 22 Apr 2015 20:27:26 +0000 (16:27 -0400)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 22 Apr 2015 21:32:35 +0000 (23:32 +0200)
commit6264b6227c779af9d2520722f6acb45a2c51cdfd
treed9f6dada4bb2b2774c1c9344f85001a3d703793c
parent748d4816d92c735f662c7ac299e79ff0f6fe252e
postproc: Replaced inline asm for prefetching with prefetch functions

Prefetching functions are defined in postprocess_template using the
RENAME macro so that prefetching is used when available. For x86
targets inline asm is used and the functions are non-empty only for
cpus where prefetching is available. For non x86 targets the gcc bultin
prefetch is used if it is available, otherwise no prefetching is done.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libpostproc/postprocess.c
libpostproc/postprocess_template.c