MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / av_cmp_i

Function av_cmp_i

libavutil/integer.c:82–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82int av_cmp_i(AVInteger a, AVInteger b){
83 int i;
84 int v= (int16_t)a.v[AV_INTEGER_SIZE-1] - (int16_t)b.v[AV_INTEGER_SIZE-1];
85 if(v) return (v>>16)|1;
86
87 for(i=AV_INTEGER_SIZE-2; i>=0; i--){
88 int v= a.v[i] - b.v[i];
89 if(v) return (v>>16)|1;
90 }
91 return 0;
92}
93
94AVInteger av_shr_i(AVInteger a, int s){
95 AVInteger out;

Callers 1

av_mod_iFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected