comparison sh4/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
26 26
27 #include <stdint.h> 27 #include <stdint.h>
28 #include "config.h" 28 #include "config.h"
29 #include "libavutil/attributes.h" 29 #include "libavutil/attributes.h"
30 30
31 #define bswap_16 bswap_16 31 #define av_bswap16 av_bswap16
32 static av_always_inline av_const uint16_t bswap_16(uint16_t x) 32 static av_always_inline av_const uint16_t av_bswap16(uint16_t x)
33 { 33 {
34 __asm__("swap.b %0,%0" : "+r"(x)); 34 __asm__("swap.b %0,%0" : "+r"(x));
35 return x; 35 return x;
36 } 36 }
37 37
38 #define bswap_32 bswap_32 38 #define av_bswap32 av_bswap32
39 static av_always_inline av_const uint32_t bswap_32(uint32_t x) 39 static av_always_inline av_const uint32_t av_bswap32(uint32_t x)
40 { 40 {
41 __asm__("swap.b %0,%0\n" 41 __asm__("swap.b %0,%0\n"
42 "swap.w %0,%0\n" 42 "swap.w %0,%0\n"
43 "swap.b %0,%0\n" 43 "swap.b %0,%0\n"
44 : "+r"(x)); 44 : "+r"(x));