Revision 15919ee4

View differences:

libavutil/x86/bswap.h
29 29
#include "libavutil/attributes.h"
30 30

  
31 31
#define av_bswap16 av_bswap16
32
static av_always_inline av_const uint16_t av_bswap16(uint16_t x)
32
static av_always_inline av_const unsigned av_bswap16(unsigned x)
33 33
{
34
    __asm__("rorw $8, %0" : "+r"(x));
34
    __asm__("rorw $8, %w0" : "+r"(x));
35 35
    return x;
36 36
}
37 37

  

Also available in: Unified diff