Mercurial > libavutil.hg
comparison avr32/intreadwrite.h @ 993:f8db9a2bae05 libavutil
Add av_ prefix to bswap macros
author | mru |
---|---|
date | Sat, 10 Jul 2010 22:12:30 +0000 |
parents | f849545df4e5 |
children |
comparison
equal
deleted
inserted
replaced
992:a13125b5be3a | 993:f8db9a2bae05 |
---|---|
104 { | 104 { |
105 __asm__ ("st.w %0, %1" : "=m"(*(uint32_t*)p) : "r"(v)); | 105 __asm__ ("st.w %0, %1" : "=m"(*(uint32_t*)p) : "r"(v)); |
106 } | 106 } |
107 | 107 |
108 /* These two would be defined by generic code, but we need them sooner. */ | 108 /* These two would be defined by generic code, but we need them sooner. */ |
109 #define AV_RL32(p) bswap_32(AV_RB32(p)) | 109 #define AV_RL32(p) av_bswap32(AV_RB32(p)) |
110 #define AV_WL32(p, v) AV_WB32(p, bswap_32(v)) | 110 #define AV_WL32(p, v) AV_WB32(p, av_bswap32(v)) |
111 | 111 |
112 #define AV_WB64 AV_WB64 | 112 #define AV_WB64 AV_WB64 |
113 static av_always_inline void AV_WB64(void *p, uint64_t v) | 113 static av_always_inline void AV_WB64(void *p, uint64_t v) |
114 { | 114 { |
115 union { uint64_t v; uint32_t hl[2]; } vv = { v }; | 115 union { uint64_t v; uint32_t hl[2]; } vv = { v }; |