Mercurial > libavutil.hg
comparison integer.c @ 273:1907c66098b0 libavutil
Move av_shr_i()'s unaltered comments to the header file.
author | takis |
---|---|
date | Sun, 04 Mar 2007 23:18:44 +0000 |
parents | 2bf3b2fee71a |
children | 57262361a75c |
comparison
equal
deleted
inserted
replaced
272:2bf3b2fee71a | 273:1907c66098b0 |
---|---|
97 if(v) return (v>>16)|1; | 97 if(v) return (v>>16)|1; |
98 } | 98 } |
99 return 0; | 99 return 0; |
100 } | 100 } |
101 | 101 |
102 /** | |
103 * bitwise shift. | |
104 * @param s the number of bits by which the value should be shifted right, may be negative for shifting left | |
105 */ | |
106 AVInteger av_shr_i(AVInteger a, int s){ | 102 AVInteger av_shr_i(AVInteger a, int s){ |
107 AVInteger out; | 103 AVInteger out; |
108 int i; | 104 int i; |
109 | 105 |
110 for(i=0; i<AV_INTEGER_SIZE; i++){ | 106 for(i=0; i<AV_INTEGER_SIZE; i++){ |