diff options
author | Martin Storsjö <martin@martin.st> | 2013-04-20 00:14:44 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2013-04-23 23:30:17 +0300 |
commit | 486f76f0298aa5002fb0b51616a6aca1e99bddd3 (patch) | |
tree | ee690d68525acf72481176c068dcecb4832bae53 /libavcodec/x86/dsputil_rnd_template.c | |
parent | feec9349d35b3a46d0c6a05e3b23626050b76a77 (diff) | |
download | ffmpeg-486f76f0298aa5002fb0b51616a6aca1e99bddd3.tar.gz |
x86: Get rid of duplication between *_rnd_template.c
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavcodec/x86/dsputil_rnd_template.c')
-rw-r--r-- | libavcodec/x86/dsputil_rnd_template.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/x86/dsputil_rnd_template.c b/libavcodec/x86/dsputil_rnd_template.c index d441950fc1..2ff77d7579 100644 --- a/libavcodec/x86/dsputil_rnd_template.c +++ b/libavcodec/x86/dsputil_rnd_template.c @@ -91,6 +91,8 @@ static void DEF(put, pixels8_xy2)(uint8_t *block, const uint8_t *pixels, ptrdiff :REG_a, "memory"); } +// avg_pixels +#ifndef NO_RND // in case more speed is needed - unroling would certainly help static void DEF(avg, pixels8)(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h) { @@ -110,6 +112,7 @@ static void DEF(avg, pixels8)(uint8_t *block, const uint8_t *pixels, ptrdiff_t l } while (--h); } +#endif /* NO_RND */ static void DEF(avg, pixels16)(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h) { |