Go to the documentation of this file.
28 #ifndef AVUTIL_INTEGER_H
29 #define AVUTIL_INTEGER_H
34 #define AV_INTEGER_SIZE 8
AVInteger av_add_i(AVInteger a, AVInteger b) av_const
AVInteger av_int2i(int64_t a) av_const
Convert the given int64_t to an AVInteger.
int av_cmp_i(AVInteger a, AVInteger b) av_const
Return 0 if a==b, 1 if a>b and -1 if a<b.
int64_t av_i2int(AVInteger a) av_const
Convert the given AVInteger to an int64_t.
AVInteger av_mul_i(AVInteger a, AVInteger b) av_const
AVInteger av_div_i(AVInteger a, AVInteger b) av_const
Return a/b.
AVInteger av_shr_i(AVInteger a, int s) av_const
bitwise shift
AVInteger av_mod_i(AVInteger *quot, AVInteger a, AVInteger b)
Return a % b.
The reader does not expect b to be semantically here and if the code is changed by maybe adding a a division or other the signedness will almost certainly be mistaken To avoid this confusion a new type was SUINT is the C unsigned type but it holds a signed int to use the same example SUINT a
uint16_t v[AV_INTEGER_SIZE]
int av_log2_i(AVInteger a) av_const
Return the rounded-down value of the base 2 logarithm of the given AVInteger.
AVInteger av_sub_i(AVInteger a, AVInteger b) av_const