X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavutil%2Fmathematics.h;h=57c44f845d58c77d4e07d9c2f0bbaca4ac8aadc6;hb=4613b4df31f6d5190d76cd1ac0f353e2b4968170;hp=ac94488729fe0478b0b540ccb74fb637a796ba91;hpb=8dde5dc05ae2fc4d4a5adc0a718631673b2af0f7;p=ffmpeg diff --git a/libavutil/mathematics.h b/libavutil/mathematics.h index ac94488729f..57c44f845d5 100644 --- a/libavutil/mathematics.h +++ b/libavutil/mathematics.h @@ -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);