21 #ifndef AVUTIL_MIPS_INTREADWRITE_H
22 #define AVUTIL_MIPS_INTREADWRITE_H
27 #if ARCH_MIPS64 && HAVE_INLINE_ASM && !HAVE_MIPS64R6
29 #define AV_RN32 AV_RN32
32 struct __attribute__((packed)) u32 { uint32_t v; };
34 const struct u32 *pl = (
const struct u32 *)(q + 3 * !HAVE_BIGENDIAN);
35 const struct u32 *pr = (
const struct u32 *)(q + 3 * HAVE_BIGENDIAN);
37 __asm__ (
"lwl %0, %1 \n\t"
40 :
"m"(*pl),
"m"(*pr));