# HG changeset patch # User mru # Date 1230419520 0 # Node ID 2c7e8fe5fc6a07e04baf1d6585b4e6bfa621379d # Parent 927f0ee6e4adfd721063d7a3bb7ad9be94554526 Replace UNALIGNED_STORES_ARE_BAD with !HAVE_FAST_UNALIGNED diff -r 927f0ee6e4ad -r 2c7e8fe5fc6a bitstream.h --- a/bitstream.h Sat Dec 27 16:25:36 2008 +0000 +++ b/bitstream.h Sat Dec 27 23:12:00 2008 +0000 @@ -179,10 +179,6 @@ uint8_t run; } RL_VLC_ELEM; -#if defined(ARCH_SPARC) || defined(ARCH_ARM) || defined(ARCH_MIPS) || defined(ARCH_BFIN) -#define UNALIGNED_STORES_ARE_BAD -#endif - #ifndef ALT_BITSTREAM_WRITER static inline void put_bits(PutBitContext *s, int n, unsigned int value) { @@ -200,7 +196,7 @@ #ifdef BITSTREAM_WRITER_LE bit_buf |= value << (32 - bit_left); if (n >= bit_left) { -#ifdef UNALIGNED_STORES_ARE_BAD +#ifndef HAVE_FAST_UNALIGNED if (3 & (intptr_t) s->buf_ptr) { s->buf_ptr[0] = bit_buf ; s->buf_ptr[1] = bit_buf >> 8; @@ -221,7 +217,7 @@ } else { bit_buf<<=bit_left; bit_buf |= value >> (n - bit_left); -#ifdef UNALIGNED_STORES_ARE_BAD +#ifndef HAVE_FAST_UNALIGNED if (3 & (intptr_t) s->buf_ptr) { s->buf_ptr[0] = bit_buf >> 24; s->buf_ptr[1] = bit_buf >> 16;