summaryrefslogtreecommitdiff
path: root/libavcodec/bitstream.h
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2008-07-15 18:43:26 +0000
committerMåns Rullgård <mans@mansr.com>2008-07-15 18:43:26 +0000
commit29c8b6263aa72728f5cd63077bdb1a9696f9456c (patch)
treef4a3bacd43c9e8a7f1d81f812ad18b594d207761 /libavcodec/bitstream.h
parentb1e12f99a2008f970480f2b5137a942b5192cfc3 (diff)
Remove dead code in bitstream.h
Originally committed as revision 14238 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/bitstream.h')
-rw-r--r--libavcodec/bitstream.h32
1 files changed, 0 insertions, 32 deletions
diff --git a/libavcodec/bitstream.h b/libavcodec/bitstream.h
index a90d48df53..f48f1ee944 100644
--- a/libavcodec/bitstream.h
+++ b/libavcodec/bitstream.h
@@ -176,38 +176,6 @@ typedef struct RL_VLC_ELEM {
#define UNALIGNED_STORES_ARE_BAD
#endif
-/* used to avoid misaligned exceptions on some archs (alpha, ...) */
-#if defined(ARCH_X86)
-# define unaligned16(a) (*(const uint16_t*)(a))
-# define unaligned32(a) (*(const uint32_t*)(a))
-# define unaligned64(a) (*(const uint64_t*)(a))
-#else
-# ifdef __GNUC__
-# define unaligned(x) \
-static inline uint##x##_t unaligned##x(const void *v) { \
- struct Unaligned { \
- uint##x##_t i; \
- } __attribute__((packed)); \
- \
- return ((const struct Unaligned *) v)->i; \
-}
-# elif defined(__DECC)
-# define unaligned(x) \
-static inline uint##x##_t unaligned##x(const void *v) { \
- return *(const __unaligned uint##x##_t *) v; \
-}
-# else
-# define unaligned(x) \
-static inline uint##x##_t unaligned##x(const void *v) { \
- return *(const uint##x##_t *) v; \
-}
-# endif
-unaligned(16)
-unaligned(32)
-unaligned(64)
-#undef unaligned
-#endif /* defined(ARCH_X86) */
-
#ifndef ALT_BITSTREAM_WRITER
static inline void put_bits(PutBitContext *s, int n, unsigned int value)
{