Mercurial > libavutil.hg
changeset 802:485faa6e1728 libavutil
Document av_gcd().
author | michael |
---|---|
date | Sun, 27 Dec 2009 12:20:06 +0000 |
parents | 0f0768396e60 |
children | e6e8b4319086 |
files | mathematics.h |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mathematics.h Mon Dec 14 01:15:02 2009 +0000 +++ b/mathematics.h Sun Dec 27 12:20:06 2009 +0000 @@ -56,6 +56,11 @@ AV_ROUND_NEAR_INF = 5, ///< Round to nearest and halfway cases away from zero. }; +/** + * Returns the greatest common divisor of a and b. + * If either a or b are 0 or either or both are <0 then behavior is + * undefined. + */ int64_t av_const av_gcd(int64_t a, int64_t b); /**