Mercurial > libavutil.hg
comparison mathematics.h @ 939:1acef06f2739 libavutil
Fix av_compare_mod() doxy.
author | stefano |
---|---|
date | Sun, 13 Jun 2010 09:06:50 +0000 |
parents | 93bd29f34e99 |
children | e34e8d654ded |
comparison
equal
deleted
inserted
replaced
938:693dea8b44f1 | 939:1acef06f2739 |
---|---|
93 * @return -1 if ts_a is before ts_b, 1 if ts_a is after ts_b or 0 if they represent the same position | 93 * @return -1 if ts_a is before ts_b, 1 if ts_a is after ts_b or 0 if they represent the same position |
94 */ | 94 */ |
95 int av_compare_ts(int64_t ts_a, AVRational tb_a, int64_t ts_b, AVRational tb_b); | 95 int av_compare_ts(int64_t ts_a, AVRational tb_a, int64_t ts_b, AVRational tb_b); |
96 | 96 |
97 /** | 97 /** |
98 * Compare 2 integers modulo mod. | 98 * Compares 2 integers modulo mod. |
99 * That is we compare integers a and b for which only the least significant log2(mod) bits are known | 99 * That is we compare integers a and b for which only the least |
100 * significant log2(mod) bits are known. | |
101 * | |
100 * @param mod must be a power of 2 | 102 * @param mod must be a power of 2 |
101 * @returns a negative value if a is smaller than b | 103 * @return a negative value if a is smaller than b |
102 * a positiv value if a is greater than b | 104 * a positive value if a is greater than b |
103 * 0 if a equals b | 105 * 0 if a equals b |
104 */ | 106 */ |
105 int64_t av_compare_mod(uint64_t a, uint64_t b, uint64_t mod); | 107 int64_t av_compare_mod(uint64_t a, uint64_t b, uint64_t mod); |
106 | 108 |
107 #endif /* AVUTIL_MATHEMATICS_H */ | 109 #endif /* AVUTIL_MATHEMATICS_H */ |