Mercurial > libavcodec.hg
comparison unary.h @ 5607:5b80d560cdca libavcodec
add get_unary_0_33() to help gcc with inlining
author | aurel |
---|---|
date | Sun, 26 Aug 2007 22:38:57 +0000 |
parents | 0bc48f6f78a2 |
children | cf88751d8ab7 |
comparison
equal
deleted
inserted
replaced
5606:0bc48f6f78a2 | 5607:5b80d560cdca |
---|---|
36 | 36 |
37 for(i = 0; i < len && get_bits1(gb) != stop; i++); | 37 for(i = 0; i < len && get_bits1(gb) != stop; i++); |
38 return i; | 38 return i; |
39 } | 39 } |
40 | 40 |
41 /** | |
42 * Get unary code terminated by a 0 with a maximum length of 33 | |
43 * @param gb GetBitContext | |
44 * @return Unary length/index | |
45 */ | |
46 static inline int get_unary_0_33(GetBitContext *gb) | |
47 { | |
48 return get_unary(gb, 0, 33); | |
49 } | |
50 | |
41 #endif /* AVCODEC_UNARY_H */ | 51 #endif /* AVCODEC_UNARY_H */ |