Go to the documentation of this file.
19 #ifndef AVUTIL_ARM_BSWAP_H
20 #define AVUTIL_ARM_BSWAP_H
26 #ifdef __ARMCC_VERSION
29 #define av_bswap32 av_bswap32
39 #define av_bswap16 av_bswap16
42 __asm__(
"rev16 %0, %0" :
"+r"(x));
47 #if !AV_GCC_VERSION_AT_LEAST(4,5)
48 #define av_bswap32 av_bswap32
52 __asm__(
"rev %0, %0" :
"+r"(x));
55 __asm__ (
"eor %1, %0, %0, ror #16 \n\t"
56 "bic %1, %1, #0xFF0000 \n\t"
57 "mov %0, %0, ror #8 \n\t"
58 "eor %0, %0, %1, lsr #8 \n\t"