~ubuntu-branches/ubuntu/utopic/ffmpeg-debian/utopic

« back to all changes in this revision

Viewing changes to libavutil/x86/bswap.h

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2009-01-20 09:20:53 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090120092053-izz63p40hc98qfgp
Tags: 3:0.svn20090119-1ubuntu1
* merge from debian. LP: #318501
* new version fixes CVE-2008-3230, LP: #253767

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
#define bswap_32 bswap_32
39
39
static av_always_inline av_const uint32_t bswap_32(uint32_t x)
40
40
{
41
 
#ifdef HAVE_BSWAP
 
41
#if HAVE_BSWAP
42
42
    __asm__("bswap   %0" : "+r" (x));
43
43
#else
44
44
    __asm__("rorw    $8,  %w0 \n\t"
49
49
    return x;
50
50
}
51
51
 
52
 
#ifdef ARCH_X86_64
 
52
#if ARCH_X86_64
53
53
#define bswap_64 bswap_64
54
54
static inline uint64_t av_const bswap_64(uint64_t x)
55
55
{