Mercurial > libavutil.hg
diff integer.h @ 277:d25ab70c93c4 libavutil
Move av_log2_i()'s unaltered comments to the header file.
author | takis |
---|---|
date | Sun, 04 Mar 2007 23:26:53 +0000 |
parents | 0df0d9771d02 |
children | f21d1907d47c |
line wrap: on
line diff
--- a/integer.h Sun Mar 04 23:26:01 2007 +0000 +++ b/integer.h Sun Mar 04 23:26:53 2007 +0000 @@ -37,6 +37,11 @@ AVInteger av_add_i(AVInteger a, AVInteger b); AVInteger av_sub_i(AVInteger a, AVInteger b); + +/** + * returns the rounded down value of the logarithm of base 2 of the given AVInteger. + * this is simply the index of the most significant bit which is 1. Or 0 of all bits are 0 + */ int av_log2_i(AVInteger a); AVInteger av_mul_i(AVInteger a, AVInteger b);