# HG changeset patch # User stefano # Date 1239459549 0 # Node ID 9a1c34f662e41a35a27c2026b8936bcff9e00d36 # Parent 5921cf626a4a8c3bef2b21393ea5b8b7e7236d58 Factorize declaration for the two variants of put_bits(). diff -r 5921cf626a4a -r 9a1c34f662e4 bitstream.h --- a/bitstream.h Sat Apr 11 14:16:30 2009 +0000 +++ b/bitstream.h Sat Apr 11 14:19:09 2009 +0000 @@ -195,8 +195,8 @@ uint8_t run; } RL_VLC_ELEM; +static inline void put_bits(PutBitContext *s, int n, unsigned int value) #ifndef ALT_BITSTREAM_WRITER -static inline void put_bits(PutBitContext *s, int n, unsigned int value) { unsigned int bit_buf; int bit_left; @@ -246,11 +246,7 @@ s->bit_buf = bit_buf; s->bit_left = bit_left; } -#endif - - -#ifdef ALT_BITSTREAM_WRITER -static inline void put_bits(PutBitContext *s, int n, unsigned int value) +#else /* ALT_BITSTREAM_WRITER defined */ { # ifdef ALIGNED_BITSTREAM_WRITER # if ARCH_X86