diff options
author | Måns Rullgård <mans@mansr.com> | 2009-08-16 18:43:36 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2009-08-16 18:43:36 +0000 |
commit | 9dc6bb7b9fdda6cd1a856db79088c5f239cecb0f (patch) | |
tree | 7d2a7d3a772a0c38c97e07de136cb8e60a096587 | |
parent | 4a051891f6a786d9adf72c38fb58b2993b8ec873 (diff) | |
download | ffmpeg-9dc6bb7b9fdda6cd1a856db79088c5f239cecb0f.tar.gz |
MIPS: 100L: fix AV_[RW]N64 on MIPS64
Originally committed as revision 19660 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavutil/mips/intreadwrite.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libavutil/mips/intreadwrite.h b/libavutil/mips/intreadwrite.h index 56df931d96..6ee51dfa4e 100644 --- a/libavutil/mips/intreadwrite.h +++ b/libavutil/mips/intreadwrite.h @@ -52,19 +52,19 @@ static inline void AV_WN32(void *p, uint32_t v) static inline uint64_t AV_RN64(const void *p) { uint64_t v; - __asm__ ("lwl %0, %1 \n\t" - "lwr %0, %2 \n\t" + __asm__ ("ldl %0, %1 \n\t" + "ldr %0, %2 \n\t" : "=&r"(v) - : "m"(*(const uint64_t *)((const uint8_t *)p+3*!HAVE_BIGENDIAN)), - "m"(*(const uint64_t *)((const uint8_t *)p+3*HAVE_BIGENDIAN))); + : "m"(*(const uint64_t *)((const uint8_t *)p+7*!HAVE_BIGENDIAN)), + "m"(*(const uint64_t *)((const uint8_t *)p+7*HAVE_BIGENDIAN))); return v; } #define AV_WN64 AV_WN64 static inline void AV_WN64(void *p, uint64_t v) { - __asm__ ("swl %2, %0 \n\t" - "swr %2, %1 \n\t" + __asm__ ("sdl %2, %0 \n\t" + "sdr %2, %1 \n\t" : "=m"(*(uint64_t *)((uint8_t *)p+7*!HAVE_BIGENDIAN)), "=m"(*(uint64_t *)((uint8_t *)p+7*HAVE_BIGENDIAN)) : "r"(v)); |