aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/sinewin.c
diff options
context:
space:
mode:
authorPeter Meerwald <pmeerw@pmeerw.net>2015-02-20 01:35:33 +0100
committerLuca Barbato <lu_zero@gentoo.org>2015-02-21 00:54:40 +0100
commitbf07d813f6c88b5a76980f321cf7272d799c4216 (patch)
tree66ce339793e2f781c08155fb45c44c4e6ac5d896 /libavcodec/sinewin.c
parent3fe26bb60858951710a42065c8183cce100d632a (diff)
downloadffmpeg-bf07d813f6c88b5a76980f321cf7272d799c4216.tar.gz
libavutil: Add av_clip_intp2
there already is a function, av_clip_uintp2() that clips a signed integer to an unsigned power-of-two range, i.e. 0,2^p-1 this patch adds a function av_clip_intp2() that clips a signed integer to a signed power-of-two range, i.e. -(2^p),(2^p-1) the new function can be used as a special case for av_clip(), e.g. av_clip(x, -8192, 8191) can be rewritten as av_clip_intp2(x, 13) there are ARM instructions, usat and ssat resp., which map nicely to these functions (see next patch) Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavcodec/sinewin.c')
0 files changed, 0 insertions, 0 deletions