Originally committed as revision 19660 to svn://svn.ffmpeg.org/ffmpeg/trunk
| ... | ... |
@@ -52,19 +52,19 @@ static inline void AV_WN32(void *p, uint32_t v) |
| 52 | 52 |
static inline uint64_t AV_RN64(const void *p) |
| 53 | 53 |
{
|
| 54 | 54 |
uint64_t v; |
| 55 |
- __asm__ ("lwl %0, %1 \n\t"
|
|
| 56 |
- "lwr %0, %2 \n\t" |
|
| 55 |
+ __asm__ ("ldl %0, %1 \n\t"
|
|
| 56 |
+ "ldr %0, %2 \n\t" |
|
| 57 | 57 |
: "=&r"(v) |
| 58 |
- : "m"(*(const uint64_t *)((const uint8_t *)p+3*!HAVE_BIGENDIAN)), |
|
| 59 |
- "m"(*(const uint64_t *)((const uint8_t *)p+3*HAVE_BIGENDIAN))); |
|
| 58 |
+ : "m"(*(const uint64_t *)((const uint8_t *)p+7*!HAVE_BIGENDIAN)), |
|
| 59 |
+ "m"(*(const uint64_t *)((const uint8_t *)p+7*HAVE_BIGENDIAN))); |
|
| 60 | 60 |
return v; |
| 61 | 61 |
} |
| 62 | 62 |
|
| 63 | 63 |
#define AV_WN64 AV_WN64 |
| 64 | 64 |
static inline void AV_WN64(void *p, uint64_t v) |
| 65 | 65 |
{
|
| 66 |
- __asm__ ("swl %2, %0 \n\t"
|
|
| 67 |
- "swr %2, %1 \n\t" |
|
| 66 |
+ __asm__ ("sdl %2, %0 \n\t"
|
|
| 67 |
+ "sdr %2, %1 \n\t" |
|
| 68 | 68 |
: "=m"(*(uint64_t *)((uint8_t *)p+7*!HAVE_BIGENDIAN)), |
| 69 | 69 |
"=m"(*(uint64_t *)((uint8_t *)p+7*HAVE_BIGENDIAN)) |
| 70 | 70 |
: "r"(v)); |