changeset 7255:34b5a0b12558

The ALT_BITSTREAM_READER code does not work on SPARC, because the code accesses 32-bit works from unaligned addresses. For now, disable ALT_BITSTREAM_READER on SPARC.
author jkeil
date Tue, 03 Sep 2002 17:15:08 +0000
parents fed038dd80ea
children ec6dd0a29d93
files liba52/bitstream.h
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/liba52/bitstream.h	Tue Sep 03 17:13:08 2002 +0000
+++ b/liba52/bitstream.h	Tue Sep 03 17:15:08 2002 +0000
@@ -21,8 +21,16 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
+#ifdef __sparc__
+/*
+ * the alt bitstream reader performs unaligned memory accesses; that doesn't work
+ * on sparc.  For now, disable ALT_BITSTREAM_READER.
+ */
+#undef	ALT_BITSTREAM_READER
+#else
 // alternative (faster) bitstram reader (reades upto 3 bytes over the end of the input)
 #define ALT_BITSTREAM_READER
+#endif
  
 /* (stolen from the kernel) */
 #ifdef WORDS_BIGENDIAN