diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2009-01-17 11:13:33 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2009-01-17 11:13:33 +0000 |
commit | 9ce6c1387988bf3cdb631f3844e99a0c9bea43f2 (patch) | |
tree | bba423b9738e537a19c595ea0d78537dbe540991 /libavutil/mathematics.h | |
parent | 3194b004793b31b89445e7a15d06c9e4acbd2e55 (diff) | |
download | ffmpeg-9ce6c1387988bf3cdb631f3844e99a0c9bea43f2.tar.gz |
export gcd function as av_gcd()
Originally committed as revision 16653 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/mathematics.h')
-rw-r--r-- | libavutil/mathematics.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavutil/mathematics.h b/libavutil/mathematics.h index 74385274b3..3098862364 100644 --- a/libavutil/mathematics.h +++ b/libavutil/mathematics.h @@ -49,6 +49,8 @@ enum AVRounding { AV_ROUND_NEAR_INF = 5, ///< round to nearest and halfway cases away from zero }; +int64_t av_const av_gcd(int64_t a, int64_t b); + /** * rescale a 64bit integer with rounding to nearest. * a simple a*b/c isn't possible as it can overflow |