comparison bfin/bswap.h @ 993:f8db9a2bae05 libavutil

Add av_ prefix to bswap macros
author mru
date Sat, 10 Jul 2010 22:12:30 +0000
parents 0795a743bda1
children
comparison
equal deleted inserted replaced
992:a13125b5be3a 993:f8db9a2bae05
28 28
29 #include <stdint.h> 29 #include <stdint.h>
30 #include "config.h" 30 #include "config.h"
31 #include "libavutil/attributes.h" 31 #include "libavutil/attributes.h"
32 32
33 #define bswap_32 bswap_32 33 #define av_bswap32 av_bswap32
34 static av_always_inline av_const uint32_t bswap_32(uint32_t x) 34 static av_always_inline av_const uint32_t av_bswap32(uint32_t x)
35 { 35 {
36 unsigned tmp; 36 unsigned tmp;
37 __asm__("%1 = %0 >> 8 (V); \n\t" 37 __asm__("%1 = %0 >> 8 (V); \n\t"
38 "%0 = %0 << 8 (V); \n\t" 38 "%0 = %0 << 8 (V); \n\t"
39 "%0 = %0 | %1; \n\t" 39 "%0 = %0 | %1; \n\t"