This source file includes following definitions.
- main
#include <stdint.h>
#include "libavutil/avassert.h"
#include "libavutil/integer.h"
#include "libavutil/intmath.h"
int main(void){
int64_t a,b;
for(a=7; a<256*256*256; a+=13215){
for(b=3; b<256*256*256; b+=27118){
AVInteger ai= av_int2i(a);
AVInteger bi= av_int2i(b);
av_assert0(av_i2int(ai) == a);
av_assert0(av_i2int(bi) == b);
av_assert0(av_i2int(av_add_i(ai,bi)) == a+b);
av_assert0(av_i2int(av_sub_i(ai,bi)) == a-b);
av_assert0(av_i2int(av_mul_i(ai,bi)) == a*b);
av_assert0(av_i2int(av_shr_i(ai, 9)) == a>>9);
av_assert0(av_i2int(av_shr_i(ai,-9)) == a<<9);
av_assert0(av_i2int(av_shr_i(ai, 17)) == a>>17);
av_assert0(av_i2int(av_shr_i(ai,-17)) == a<<17);
av_assert0(av_log2_i(ai) == av_log2(a));
av_assert0(av_i2int(av_div_i(ai,bi)) == a/b);
}
}
return 0;
}