~medibuntu-maintainers/mplayer/medibuntu.precise

« back to all changes in this revision

Viewing changes to ffmpeg/libavcodec/arm/neon.S

  • Committer: Package Import Robot
  • Author(s): Reinhard Tartler
  • Date: 2012-01-12 22:23:28 UTC
  • mfrom: (0.4.7 sid)
  • mto: This revision was merged to the branch mainline in revision 76.
  • Revision ID: package-import@ubuntu.com-20120112222328-8jqdyodym3p84ygu
Tags: 2:1.0~rc4.dfsg1+svn34540-1
* New upstream snapshot
* upload to unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (c) 2008 Mans Rullgard <mans@mansr.com>
 
3
 *
 
4
 * This file is part of Libav.
 
5
 *
 
6
 * Libav is free software; you can redistribute it and/or
 
7
 * modify it under the terms of the GNU Lesser General Public
 
8
 * License as published by the Free Software Foundation; either
 
9
 * version 2.1 of the License, or (at your option) any later version.
 
10
 *
 
11
 * Libav is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
14
 * Lesser General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU Lesser General Public
 
17
 * License along with Libav; if not, write to the Free Software
 
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 
19
 */
 
20
 
 
21
.macro  transpose_8x8   r0, r1, r2, r3, r4, r5, r6, r7
 
22
        vtrn.32         \r0, \r4
 
23
        vtrn.32         \r1, \r5
 
24
        vtrn.32         \r2, \r6
 
25
        vtrn.32         \r3, \r7
 
26
        vtrn.16         \r0, \r2
 
27
        vtrn.16         \r1, \r3
 
28
        vtrn.16         \r4, \r6
 
29
        vtrn.16         \r5, \r7
 
30
        vtrn.8          \r0, \r1
 
31
        vtrn.8          \r2, \r3
 
32
        vtrn.8          \r4, \r5
 
33
        vtrn.8          \r6, \r7
 
34
.endm
 
35
 
 
36
.macro  transpose_4x4   r0, r1, r2, r3
 
37
        vtrn.16         \r0, \r2
 
38
        vtrn.16         \r1, \r3
 
39
        vtrn.8          \r0, \r1
 
40
        vtrn.8          \r2, \r3
 
41
.endm
 
42
 
 
43
.macro  swap4           r0, r1, r2, r3, r4, r5, r6, r7
 
44
        vswp            \r0, \r4
 
45
        vswp            \r1, \r5
 
46
        vswp            \r2, \r6
 
47
        vswp            \r3, \r7
 
48
.endm
 
49
 
 
50
.macro  transpose16_4x4 r0, r1, r2, r3, r4, r5, r6, r7
 
51
        vtrn.32         \r0, \r2
 
52
        vtrn.32         \r1, \r3
 
53
        vtrn.32         \r4, \r6
 
54
        vtrn.32         \r5, \r7
 
55
        vtrn.16         \r0, \r1
 
56
        vtrn.16         \r2, \r3
 
57
        vtrn.16         \r4, \r5
 
58
        vtrn.16         \r6, \r7
 
59
.endm