]> git.sesse.net Git - ffmpeg/blobdiff - libavutil/mathematics.h
Merge commit '3edac01f79a08635d8d2c08e9410651d9a330d61'
[ffmpeg] / libavutil / mathematics.h
index ac94488729fe0478b0b540ccb74fb637a796ba91..57c44f845d58c77d4e07d9c2f0bbaca4ac8aadc6 100644 (file)
@@ -77,9 +77,10 @@ enum AVRounding {
 };
 
 /**
- * Return the greatest common divisor of a and b.
- * If both a and b are 0 or either or both are <0 then behavior is
- * undefined.
+ * Compute the greatest common divisor of a and b.
+ *
+ * @return gcd of a and b up to sign; if a >= 0 and b >= 0, return value is >= 0;
+ * if a == 0 and b == 0, returns 0.
  */
 int64_t av_const av_gcd(int64_t a, int64_t b);