~ubuntu-branches/ubuntu/lucid/ffmpeg/lucid-updates

« back to all changes in this revision

Viewing changes to libavcodec/x86/dsputil_mmx.c

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2009-02-05 21:45:05 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20090205214505-fvn0jkiv3lrkaaq4
Tags: 3:0.svn20090204-2ubuntu1+unstripped1
rebuild using a clean, uncrippled ffmpeg tarball

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * MMX optimized DSP utils
3
 
 * Copyright (c) 2000, 2001 Fabrice Bellard.
 
3
 * Copyright (c) 2000, 2001 Fabrice Bellard
4
4
 * Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>
5
5
 *
6
6
 * This file is part of FFmpeg.
2491
2491
static int32_t scalarproduct_int16_sse2(int16_t * v1, int16_t * v2, int order, int shift)
2492
2492
{
2493
2493
    int res = 0;
2494
 
    DECLARE_ALIGNED_16(int64_t, sh);
 
2494
    DECLARE_ALIGNED_16(xmm_reg, sh);
2495
2495
    x86_reg o = -(order << 1);
2496
2496
 
2497
2497
    v1 += order;
2498
2498
    v2 += order;
2499
 
    sh = shift;
 
2499
    sh.a = shift;
2500
2500
    __asm__ volatile(
2501
2501
        "pxor      %%xmm7,  %%xmm7        \n\t"
2502
2502
        "1:                               \n\t"