Mercurial > libavcodec.hg
comparison smacker.c @ 4283:d6f83e2f8804 libavcodec
rename always_inline to av_always_inline and move to common.h
author | mru |
---|---|
date | Fri, 08 Dec 2006 00:35:08 +0000 |
parents | c8c591fe26f8 |
children | 05e932ddaaa9 |
comparison
equal
deleted
inserted
replaced
4282:9d64f6eacc7b | 4283:d6f83e2f8804 |
---|---|
318 } | 318 } |
319 | 319 |
320 return 0; | 320 return 0; |
321 } | 321 } |
322 | 322 |
323 static always_inline void last_reset(int *recode, int *last) { | 323 static av_always_inline void last_reset(int *recode, int *last) { |
324 recode[last[0]] = recode[last[1]] = recode[last[2]] = 0; | 324 recode[last[0]] = recode[last[1]] = recode[last[2]] = 0; |
325 } | 325 } |
326 | 326 |
327 /* get code and update history */ | 327 /* get code and update history */ |
328 static always_inline int smk_get_code(GetBitContext *gb, int *recode, int *last) { | 328 static av_always_inline int smk_get_code(GetBitContext *gb, int *recode, int *last) { |
329 register int *table = recode; | 329 register int *table = recode; |
330 int v, b; | 330 int v, b; |
331 | 331 |
332 b = get_bits_count(gb); | 332 b = get_bits_count(gb); |
333 while(*table & SMK_NODE) { | 333 while(*table & SMK_NODE) { |