summaryrefslogtreecommitdiff
path: root/libavutil/mathematics.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2009-12-27 12:20:06 +0000
committerMichael Niedermayer <michaelni@gmx.at>2009-12-27 12:20:06 +0000
commit03703cb3d10b03f3ac8d599c9935a5285b411966 (patch)
treeb353031539b27df7e6a38c3371a3f543a803b0d9 /libavutil/mathematics.h
parenta69be798dce4ee20ae78765da2530e6f1199aab5 (diff)
Document av_gcd().
Originally committed as revision 20935 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/mathematics.h')
-rw-r--r--libavutil/mathematics.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavutil/mathematics.h b/libavutil/mathematics.h
index cb3591051a..852e2bf290 100644
--- a/libavutil/mathematics.h
+++ b/libavutil/mathematics.h
@@ -56,6 +56,11 @@ enum AVRounding {
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);
/**