comparison avr32/bswap.h @ 993:f8db9a2bae05 libavutil

Add av_ prefix to bswap macros
author mru
date Sat, 10 Jul 2010 22:12:30 +0000
parents 4d9ad0ed07d0
children
comparison
equal deleted inserted replaced
992:a13125b5be3a 993:f8db9a2bae05
23 #include "config.h" 23 #include "config.h"
24 #include "libavutil/attributes.h" 24 #include "libavutil/attributes.h"
25 25
26 #if HAVE_INLINE_ASM 26 #if HAVE_INLINE_ASM
27 27
28 #define bswap_16 bswap_16 28 #define av_bswap16 av_bswap16
29 static av_always_inline av_const uint16_t bswap_16(uint16_t x) 29 static av_always_inline av_const uint16_t av_bswap16(uint16_t x)
30 { 30 {
31 __asm__ ("swap.bh %0" : "+r"(x)); 31 __asm__ ("swap.bh %0" : "+r"(x));
32 return x; 32 return x;
33 } 33 }
34 34
35 #define bswap_32 bswap_32 35 #define av_bswap32 av_bswap32
36 static av_always_inline av_const uint32_t bswap_32(uint32_t x) 36 static av_always_inline av_const uint32_t av_bswap32(uint32_t x)
37 { 37 {
38 __asm__ ("swap.b %0" : "+r"(x)); 38 __asm__ ("swap.b %0" : "+r"(x));
39 return x; 39 return x;
40 } 40 }
41 41