From e3103ea06f62eda3afd3e8eb2202e54871dc0e93 Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Sat, 8 May 2010 02:32:45 +0300 Subject: intreadwrite.h: disable optimizations Disable arch/compiler specific optimizations in the MPlayer version of intreadwrite.h. All the uses in MPlayer should be irrelevant for performance. --- ffmpeg_files/intreadwrite.h | 42 ------------------------------------------ 1 file changed, 42 deletions(-) (limited to 'ffmpeg_files/intreadwrite.h') diff --git a/ffmpeg_files/intreadwrite.h b/ffmpeg_files/intreadwrite.h index bc61ccceb7..ff4e917e46 100644 --- a/ffmpeg_files/intreadwrite.h +++ b/ffmpeg_files/intreadwrite.h @@ -23,46 +23,6 @@ #include "config.h" #include "bswap.h" -/* - * Arch-specific headers can provide any combination of - * AV_[RW][BLN](16|32|64) macros. Preprocessor symbols must be - * defined, even if these are implemented as inline functions. - */ - -#if ARCH_ARM -# include "arm/intreadwrite.h" -#elif ARCH_MIPS -# include "mips/intreadwrite.h" -#elif ARCH_PPC -# include "ppc/intreadwrite.h" -#endif - -/* - * Define AV_[RW]N helper macros to simplify definitions not provided - * by per-arch headers. - */ - -#if defined(__GNUC__) - -struct unaligned_64 { uint64_t l; } __attribute__((packed)); -struct unaligned_32 { uint32_t l; } __attribute__((packed)); -struct unaligned_16 { uint16_t l; } __attribute__((packed)); - -# define AV_RN(s, p) (((const struct unaligned_##s *) (p))->l) -# define AV_WN(s, p, v) (((struct unaligned_##s *) (p))->l) = (v) - -#elif defined(__DECC) - -# define AV_RN(s, p) (*((const __unaligned uint##s##_t*)(p))) -# define AV_WN(s, p, v) *((__unaligned uint##s##_t*)(p)) = (v) - -#elif HAVE_FAST_UNALIGNED - -# define AV_RN(s, p) (*((const uint##s##_t*)(p))) -# define AV_WN(s, p, v) *((uint##s##_t*)(p)) = (v) - -#else - #ifndef AV_RB16 #define AV_RB16(x) ((((const uint8_t*)(x))[0] << 8) | \ ((const uint8_t*)(x))[1]) @@ -163,8 +123,6 @@ struct unaligned_16 { uint16_t l; } __attribute__((packed)); # define AV_WN(s, p, v) AV_WL##s(p, v) #endif -#endif /* HAVE_FAST_UNALIGNED */ - #ifndef AV_RN16 # define AV_RN16(p) AV_RN(16, p) #endif -- cgit v1.2.3